--
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-we...@googlegroups.com.
To unsubscribe from this group, send email to google-web-tool...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
I fail to see how that code replaces FlexTable and what UiBinder has
to do with any of that??
The purpose of FlexTable is to provide an easy way of having tables of
arbitrary length so as...well rows can be added to them.
How are you going to replace that with hardcoded HTML? I don't see how
changing the contents of an HTML panel serve this purpose in a
fruitfull way.
Of course i may be missing something, so could you please provide some
pointers because i am trying to find the best way to use a flextalbe
with UiBinder.
On Dec 10 2009, 8:35 am, Craigo <craig...@gmail.com> wrote:
> I was trying to do this also. Then I slapped myself in the head and
> realised, with theUiBinder, we can now just use plain html.
>
> So we can do stuff like this:
> <g:HTMLPanel>
> <table>
> <tr><td>Info:</td><td><g:TextBox ui:field="infoTextBox"/></
> td></tr>
> </table>
> </g:HTMLPanel>
>
> ...there maybe a good reason you want to use aFlexTablein
> the .ui.xml file, but I can't think of it.
>
> On Dec 10, 1:40 pm, FKereki <fker...@gmail.com> wrote:
>
>
>
> > Hi! Is it possible to include aFlexTableor Grid withUiBinder? How
On 5 jan, 12:24, nvrs <nvior...@gmail.com> wrote:
> Hi,
>
> I fail to see how that code replaces FlexTable and what UiBinder has
> to do with any of that??
> The purpose of FlexTable is to provide an easy way of having tables of
> arbitrary length so as...well rows can be added to them.
Many people also use FlexTable and Grid for layout, FlexTable having
the ability to colspan and/or rowspan cells.
> How are you going to replace that with hardcoded HTML? I don't see how
> changing the contents of an HTML panel serve this purpose in a
> fruitfull way.
> Of course i may be missing something, so could you please provide some
> pointers because i am trying to find the best way to use a flextalbe
> with UiBinder.
There's only a single way currently: instanciate an empty FlexTable in
UiBinder and then populate it in your Java code.
Well, there's another: wrap your FlexTable code in a Composite and use
the Composite in the UiBinder, but that's the same in the end.
> There's only a single way currently: instanciate an empty FlexTable in
> UiBinder and then populate it in your Java code.
> Well, there's another: wrap your FlexTable code in a Composite and use
> the Composite in the UiBinder, but that's the same in the end.
I figured that out alright but it's sweeter than i originally thought.
As a matter of fact, if you instantiate a list of Widgets and a
FlexTable using UiBinder and then on the init code add the widgets to
the FlexTable, the Widgets show up in the FlexTable rows and not on
their container/parent!
Good thinking imho
Cheers,
Alistair