Thanks Thomas Widgets are now adding by implementing HasWidgets interface. But I need to do a little more. As there are tags in DockLayoutPanel -- <g:north>, <g:west>, in the same way, I want to create my own customized tags like <my:left>,<my:right> etc so that I can arrange my layout accordingly. Can it be possible. If it is, kindly let me know as it will be a great help for me to design my UI with more flexibility.
Regards Rick On Mon, Dec 21, 2009 at 8:14 PM, Thomas Broyer <t.bro...@gmail.com> wrote: > > > On Dec 21, 12:13 pm, Rick <rick4...@gmail.com> wrote: > > Hi all > > > > As GWT is adding widgets in Horizontal panel, in the same way I want > > to get element in my composite widgets so that I can manage their > > layout in onAttach means I want to get label and html in RComposite > > widget's on attach. > > > > ui.xml > > <ui:UiBinder xmlns:ui='urn:ui:com.google.gwt.uibinder' > > xmlns:g='urn:import:com.google.gwt.user.client.ui' > > xmlns:my='urn:import:gwt.testui.client'> > > > > <my:RCompositeWidget> > > > > <g:Label>My Widgets</g:Label> > > <g:HTML>in a row</g:HTML> > > > > </my:RCompositeWidget> > > > > </ui:UiBinder> > > -->RCompositeWidget > > public class RCompositeWidget extends Composite { > > public RCompositeWidget() { > > HorizontalPanel hp = new HorizontalPanel(); > > initWidget(hp); > > } > > > > } > > > > But I am getting following exception: > > In com.google.gwt.uibinder.rebind.xmlelemen...@870aad, found > > unexpected child "<g:Label>" > > RCompositeWidget has to implement HasWidgets if it's meant to be a > widget container, otherwise how would UiBinder add the widgets to it? > Actually, UiBinder does not know that RCompositeWidget internally uses > an HorizontalPanel. > > -- > > 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-tool...@googlegroups.com. > To unsubscribe from this group, send email to > google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/google-web-toolkit?hl=en. > > > -- 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-tool...@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.