PDA

View Full Version : newbie: FieldSet collapse ?



alawi
1 Sep 2008, 7:18 PM
Hello guys,

The fieldSet collapse function is not doing anything for me.

FieldSet fs= new FieldSet();
fs.setLayout(new FormLayout());
fs.setWidth(ClientConstants.FORMS_WIDTH);
fs.setCollapsible(true);
fs.collapse(); //<--- Does nothing ;(
fs.setHeading("please work!");
add(fs);

Also the name collapse is really confusing, something like setCollapsed(boolean collapsed); would have been better... Anyone?

Regards,
Ali

gslender
1 Sep 2008, 8:01 PM
FieldSet is new (alpha) and seems to have a few bugs, one of which is that whilst collapse() sets the flag to say that the container is collapsed, at render time it doesn't do anything to show that its collapsed

for the moment (until its fixed) collapse will only work post-render so you'll need to set it in a deferred command to apply post render

please raise the bug in the right forum regarding the above bug