[ 
http://www.stripesframework.org/jira/browse/STS-870?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ben Gunter resolved STS-870.
----------------------------

    Resolution: Not a Bug
      Assignee: Ben Gunter

This behavior is actually expected. As documented in the Taglib documentation, 
the stripes:hidden tag will generate one hidden input for each parameter value 
found in the request under the given name. So if you have two of them with the 
same name, then they will each generate one input for each parameter by that 
name.

To achieve what you want, you should just regular HTML input tags instead.

> Stripes will duplicate hidden inputs on validation errors if there are more 
> than 1 input with the same name
> -----------------------------------------------------------------------------------------------------------
>
>                 Key: STS-870
>                 URL: http://www.stripesframework.org/jira/browse/STS-870
>             Project: Stripes
>          Issue Type: Bug
>          Components: Validation
>    Affects Versions: Release 1.5.6
>         Environment: Windows 7, Java 7
>            Reporter: Anthony DePalma
>            Assignee: Ben Gunter
>             Fix For: Release 1.5.7
>
>
> Stripes seems to be duplicating input fields on validation errors if more 
> than one have the same name. For example, simply modify the QuickStart 
> calculator application an add the following hidden fields to the form:
> <stripes:form action="/examples/quickstart/Calculator.action" focus="">
>       <stripes:errors/>
>       <stripes:hidden name="test" value="testValue1" />
>       <stripes:hidden name="test" value="testValue2" />
> Then click submit a couple of times to fail validation and view the source 
> that is returned. The inputs increase exponentially and can crash a browser 
> after a few times. I'm guessing something in the form tag is writing these 
> fields out?

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to