Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Re: [S2] Possible issue with remote form submission

Dariusz Wojtas

2007-01-07

Replies:

Hi Musachy,

I have a form of this type:

<s:form theme="ajax" id=".." action=".." method="POST" >
...
<s:submit theme="ajax" value=".." type="submit" targets=".." cssClass=".." />
<s:/form>

And this one gets submitted, but IE seems to post it without parameters.
At the same time FF posts it with parameters.
In both browsers targetting of the submission form works, but IE does
not pass params.

If this could help, I have a form with some custom tabular structure inside.
Also some dojo scripts do not get loaded with current S2 - this could
also be the reason ...

Best regards
Dariusz Wojtas


On 1/7/07, Musachy Barroso <mbarroso@(protected):
> Hi Dariusz
>
> The remote forms example(and probably the tag) are broken right now. The
> easiest way to submit forms asynchronously, that I know is working like
>
> <s:form ....>
>  <s:submit theme="ajax"/>
> <s:/form>
>
> check the ajaxtags doc for examples:
>
> http://struts.apache.org/2.x/docs/ajax-tags.html
>
> musachy
>
> Dariusz Wojtas wrote:
> > Using S2 trunk.
> > I have noticed that in some cases remote form submission does not pass
> > form data to the url.
> > This may be reproduced with the showcase:
> >  /struts2-showcase/ajax/remoteforms/
> > where some of the samples do workand pass parameters, while some
> > others do not.
> > The same behavious in IE, FF and Opera 9
> >
> > Has anyone lse noticed this?
> >
> > Also some of the forms on that page uses 'afterLoading',
> > 'beforeLoading' attributes that do not let this page compile by
> > default.
> >
> > Best regards
> > Dariusz Wojtas

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.