View Full Version : Why force the use of FormLayout?

1 Sep 2010, 6:20 AM
Why does one have to use a FormLayout to have things like ComboBox, TextField, etc... display the field name? Why is the display of the Field name tied to a layout? Why do these components behave so differently based on the Layout?

I find myself writing tons of nested LayoutContainer wrappers to make the components render how I want because i have to use a FormLayout to make my component display the field name.

1 Sep 2010, 6:21 AM
This was designed this way long ago (in ExtJS). GXT simlpe adopted the same behaviour. We will go away from this in GXT3

2 Sep 2010, 4:48 AM
What are you planning to go away from? Field objects? Or the restriction that they are parented by a FormLayout in order to be rendered properly? We're using Field objects very heavily and before we write the other 80% of the UI code for this project, I'd switch away from them if you're going to eliminate them in the next major release.

2 Sep 2010, 4:51 AM
We will remove setFieldLabel from the field class as it only works in a FormLayout. It will be handled differently.