Re: HTML ids for widgets generated in a celltable
Just curious, but why do you need ID's? Xelibrety's solution should work but you should be able to add any behavior you want to the objects through GWT without the need for an ID. If you have JavaScript that needs IDs to access them, you might as well just port Xelibrety's code over the JavaScript in question. On Jun 22, 6:50 am, nirav patani wrote: > Hi, > > Is there a way to add html ids to widgets generated in a > celltable. for instance i have cell table whose one column contains > only buttons. i wantto set HTML ids for those buttons. > > Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: HTML ids for widgets generated in a celltable
The simplest way to add an id to a cell widget is to use the render method. A more complex (and ugly) way is to add an loading state changed handler to the cell list and wait until the table is fully rendered. Then navigate to the specific cell and modify the element. cellList.addLoadingStateChangeHandler(new LoadingStateChangeEvent.Handler() { @Override public void onLoadingStateChanged( LoadingStateChangeEvent event) { if (event.getLoadingState().equals( LoadingStateChangeEvent.LoadingState.LOADED)) { //pseudo code Element.as(cellList.getRowElement(ROW_OF_YOUR_BUTTON).getFirstChildElement().getChild(XXX)).setId("myButtonId"); } } }); -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
HTML ids for widgets generated in a celltable
Hi, Is there a way to add html ids to widgets generated in a celltable. for instance i have cell table whose one column contains only buttons. i wantto set HTML ids for those buttons. Thanks. -- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group. To post to this group, send email to google-web-toolkit@googlegroups.com. To unsubscribe from this group, send email to google-web-toolkit+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.