Hi,
I have a GWT form and I submit the form to a spring controller. The
form submit should open in new window. I have a hiddenvalue in form
that I submit with form. My issue is that form opens a new window but
when i do request.getParameter("...") I dont get my hidden value. Can
somebody please help?
final FormPanel form = new FormPanel("_blank");
form.setAction( hostPrefix + "/someform/" );
form.setMethod( FormPanel.METHOD_GET );
Panel rfpMainPanel = new FlowPanel();
rfpMainPanel.add( form );
Panel rfpPanel = new VerticalPanel();
form.setWidget(rfpPanel);
final Hidden hiddenValue = new Hidden("multiple", "testValue");
rfpPanel.add( hiddenValue );
form.addFormHandler( new FormHandler() {
public void onSubmit(FormSubmitEvent event) {
Window.alert( hiddenValue.getValue() );
}
public void onSubmitComplete(FormSubmitCompleteEvent event) {
}
});
Image goToRfpForm = new Image();
goToRfpForm.addClickListener( new ClickListener() {
public void onClick( Widget sender )
{
form.submit();
}
} );
rfpPanel.add( goToRfpForm );
Thanks
Bharat
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---