PDA

View Full Version : gxt 2.1: ComboBox setValue shows dialogs/forms/etc before they should be shown



kht
4 Dec 2009, 8:49 AM
hi dev team!

i run into a problem with comboboxes.
i have a modal dialog with a buttonbar containing a combobox.
the value of the combobox is set before the dialog is shown.

this causes the dialog to be rendered visibly on screen during method:
setValue(..) -> setRawValue(String value) -> calling:
getInputEl().setValue(text);

this method is inside El:
public El setValue(String value) {
dom.setPropertyString("value", value);
return this;
}

the dom.setPropertyString makes my dialog appear during it is not yet initialized, centered, layouted correctly,.... looks ugly.
the same is true for forms etc. if i use comboboxes inside and set their value, they get rendered before i have any chance to layout them...

i tried many many workarounds.
but i think it should be fixed inside gxt.

regards, kht

sven
4 Dec 2009, 8:51 AM
The method you copied here does not do any rendering. Please read the bugforum guidelines and post a fully working testcase. Moving this to the help forum for now.

kht
4 Dec 2009, 9:41 AM
seems to be a firefox (i am using 3.5.5) only problem.
on safari it works.
yes, this method should not do any rendering. but it does on firefox. i try provide a testcase with a dialog and a combo in buttonbar where i set the value before i show the dialog.

regards, kht