Hi,
Try putting the setEnabled/setVisible calls in a block like this:
DeferredCommand.addCommand(new Command() {
public void execute() {
myObj.setEnabled(true);
}
}
also make sure when building the panel you show the item even if it is
just onLoad of your widget.
If de building of your panel completes you then disable/make it
invisible.
This migth seem odd to your users, so try some type of overlaying
loading panel while building a panel.
And close this overlay once every component is in the state you want
to view.
Hope this helps
On 23 feb, 18:07, "seven.reeds" <[email protected]> wrote:
> Hi,
>
> I am using a FileUpload widget for the first time. It is in a place
> where I want to allow the visitor to either do the FileUpload or enter
> a URL in a TextBox. I have set up a RadioButton group to toggle
> between the two choices. In the onClick method for the RadioButtons I
> can setEnabled or setVisible the TextBox to true/false as needed.
>
> The FileUpload widget just seems to ignore these requests. Should it?
>
> I will add that the FileUpload Button and TextBox components both stay
> visible in any "set" state. The button always stays Enabled the
> TextBox always appears to be grey'd out/disabled.
>
> ideas?
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.