I would appreciate if someone would be able to confirm if this happens to
them. The situation is as follows:

Any form that has more than one hidden input with the same name seems to
duplicate the inputs to the form on a validation error. For instance, if
you add these fields to any form:

<s:hidden name="test" value="testValue1" />
<s:hidden name="test" value="testValue2" />

And then submit the form with validation errors, in the returned form
source you should see:

<s:hidden name="test" value="testValue1" />
<s:hidden name="test" value="testValue2" />
<s:hidden name="test" value="testValue1" />
<s:hidden name="test" value="testValue2" />

And this doubles every time you submit with an error. After a couple more
times your browser is likely to crash. It doesn't matter whether its a
stripes input or a vanilla input tag. Can anyone confirm if this happens to
their forms as well? I originally thought it was something going on with
ajax but it happens on regular form submissions as well. Here is my form:

                     <s:form
beanclass="com.imadp.web.page.account.LoginPage">
<s:errors />
 <s:label for="loginAction.username">Username or Email</s:label>
<s:text name="loginAction.username"
value="${actionBean.loginAction.username}"/>
 <s:label for="loginAction.password">Password</s:label>
<s:password name="loginAction.password"/>
 <s:submit name="login" />
        <s:hidden name="test" value="testValue1" />
<s:hidden name="test" value="testValue2" />
 </s:form>

Thanks,
Anthony
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Stripes-users mailing list
Stripes-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to