Another problem is how to index the fields. I tried it with arrays:
Outer forms 1 dimension, middle forms 2 dimension and inner forms 3
dimension and used the row IDs of the corresponding FlexTable as
indices, but this doesn't work because the row IDs are always changing
when I add new form blocks at any position.

On Aug 22, 7:52 pm, Tobe <tobias.jungnic...@googlemail.com> wrote:
> The next problem is how to evaluate this nested form? Is there any
> good way to structure the fields and evaluate the complete form
> together with GWT?
>
> On Aug 18, 2:42 pm,Tobe<tobias.jungnic...@googlemail.com> wrote:
>
>
>
> > I had AbsolutePanels with other Widgets added to it, but now I just
> > have one Widget in each. In other cases I used VerticalPanels instead
> > of AbsolutePanels to get access to the different Widgets in the rows.
> > Unfortunately I can't get the Widget of a Widget e. g. when I have a
> > ListBox inside a VerticalPanel and the VerticalPanel inside a
> > FlexTable by using flextable.getWidget(1,0).getWidget(0);, but it
> > works when I get the Widgets step by step and cast it in each step.
>
> > On Aug 17, 11:48 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
>
> > > You should only ever have one widget in the cell. The method setWidget(int
> > > row, int column, Widget widget) removes any existing widget.
> > > I think you might need a design review ;-)
>
> > > Ian
>
> > >http://examples.roughian.com
>
> > > 2009/8/17Tobe<tobias.jungnic...@googlemail.com>
>
> > > > Ok, but in this case inside the (1,0) there can be some more Elements
> > > > and always the last one is the nested FlexTable I need. I
> > > > tried .getElement().getLastChild() but can't cast the received Node to
> > > > a FlexTable.
>
> > > > On Aug 17, 6:41 pm, Ian Bambury <ianbamb...@gmail.com> wrote:
> > > > > Can we try this in words, not html :-)
> > > > > You have an outer table with 'Insert' buttons in the even rows
> > > > (0,2,4,...)
> > > > > and child tables in the first column of the odd rows (1,3,...)
>
> > > > > To access the first child table, you use
>
> > > > > FlexTable inner = (FlexTable)outer.getWidget(1, 0);
>
> > > > > Ian
>
> > > > >http://examples.roughian.com
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to