tag:blogger.com,1999:blog-3646845225376270865.post2335318368224110209..comments2024-03-29T08:14:10.154+01:00Comments on Java, the Programming, and Everything: GWT table row as UiBinderAnonymoushttp://www.blogger.com/profile/18266250262860035187noreply@blogger.comBlogger6125tag:blogger.com,1999:blog-3646845225376270865.post-26333074492308567522016-11-02T16:33:47.845+01:002016-11-02T16:33:47.845+01:00Hey Anonymous 29 August, 2012 20:00
Yes it's ...Hey Anonymous 29 August, 2012 20:00<br /><br />Yes it's true, the handler functionality is lost this way.<br />Instead, you could just write your own CustomTableElement class. (TableElement, doc.createTableElement(), ...)<br /><br />Then, instead of<br />table.getElement().appendChild(trView.getElement());<br /><br />you could just add your TableRowView as a Widget, rather than as an Element:<br />customTable.add(trView);<br /><br />and the handlers still work.Anonymoushttps://www.blogger.com/profile/13304656870072811291noreply@blogger.comtag:blogger.com,1999:blog-3646845225376270865.post-84085759063107218502012-08-29T20:01:41.216+02:002012-08-29T20:01:41.216+02:00ups, the code was lost somehow... instead of eleme...ups, the code was lost somehow... instead of element="tr" you have to use tag="tr"Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3646845225376270865.post-90815484727294216642012-08-29T20:00:50.680+02:002012-08-29T20:00:50.680+02:00 does not work for me. Syntactically is working, ... does not work for me. Syntactically is working, but that gives a runtime error.<br /><br />In the above solution, how can you make sure that GWT widgets do not loose their functionality? For me, all the handlers get lost for example.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3646845225376270865.post-59500959756823438832012-08-17T23:03:13.863+02:002012-08-17T23:03:13.863+02:00Anonymous
I'm new to GWT. Are you saying tha...Anonymous <br /><br />I'm new to GWT. Are you saying that by using your approach, that I can dynamically add rows to the HTMLPANEL?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3646845225376270865.post-40379628980585738102012-06-01T20:25:16.087+02:002012-06-01T20:25:16.087+02:00(Yes, I realize this is an old post, but I've ...(Yes, I realize this is an old post, but I've only stumbled upon it today.)<br /><br />You do not need to create a new subclass of ComplexPanel.<br /><br />Instead, simply use an HTMLPanel, but which will render to a tr element:<br /><br /><g:HTMLPanel element="tr"><br /> <td>Something</td><br /></g:HTMLPanel><br /><br />There you go ! One less class in your project, it's already simpler to understand !Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-3646845225376270865.post-13853780830286087152011-08-19T23:48:53.760+02:002011-08-19T23:48:53.760+02:00Hi,
Great article. I am new to GWT and I think I w...Hi,<br />Great article. I am new to GWT and I think I want which your code does.<br /><br />But I could not understand the following lines:<br />TableRowView trView = new TableRowView();<br />table.getElement().appendChild(trView.getElement());<br /><br />I could not find the TableRowView.<br /><br />Basically what I am looking for is I need to create a flextable using UIBinder and have columns declared in UIBinder XML file. But through activity class (using places and activities) I am populating the body of the flextable with the data I get from the RPC call. <br /><br />Can you help me here?TS75noreply@blogger.com