Try this . It worked for me
form.setEncoding(FormPanel.ENCODING_URLENCODED);//ENCODING_MULTIPART);

Thanks
Sam

On Dec 31 2008, 8:35 am, "bharat.j...@gmail.com"
<bharat.j...@gmail.com> wrote:
> Hi,
>  I have a GWT form and Isubmitthe form to a spring controller. The
> formsubmitshould open in new window. I have a hiddenvalue in form
> that Isubmitwith 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?
>
> finalFormPanelform = newFormPanel("_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 Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to