On 21 juin, 13:41, Blessed Geek <[email protected]> wrote:
> I am feeling intrigued why FormPanel
> - has a getTarget method
> - but not setTarget method
>
> ???!!!
>
> Is this deficit due to another programming-style-paternalism or simply
> an overlooked absent feature due to be rectified in a later released
> later? Why can't I be allowed to change the target in the midst of the
> game, or am I compelled to declare my handicap before teeing off?

The thing is, if you do not create the FormPanel with a NamedFrame (or
naming the target), it creates a hiden IFrame for "AJAX-style" form
submission (I gues this is how most of us use FormPanel). It's not
clear to me how setTarget should behave in this case...

> How do I set target of a Form?
> Should I attempt the convoluted route of squeezing its FormElement out
> of a FormPanel?

Er, convoluted?
   FormElement.as(formPanel.getElement()).setTarget(newTarget);
or
   formPanel.getElement().<FormElement>cast().setTarget(newTarget);


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to