[
http://www.stripesframework.org/jira/browse/STS-855?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12425#comment-12425
]
Karl Kirch commented on STS-855:
--------------------------------
Hmm.... it seems to be happening where theres more than one value per request
variable.
Looking at the code for InputHiddenTag.java it creates a tag for each value or
values from the default population strategy.
This seems to be correct behavior after looking at the population strategy
code, I guess its probably something in my code thats causing that url variable
to be set in the request more than once.
Weird thing is url is a String. One would think that the default population
strategy would recognize that the action bean only exposes that variable as a
single object and would populate accordingly. I'm going to try to add this
support in a custom population strategy class.
> Multiple hidden fields created when using stripes hidden field tag
> ------------------------------------------------------------------
>
> Key: STS-855
> URL: http://www.stripesframework.org/jira/browse/STS-855
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5.6
> Environment: Windows XP, Solaris, Linux
> Java 1.6_24
> Reporter: Karl Kirch
> Labels: stripes.tld, taglib
>
> When using the stripes hidden tag helper, it will put out multiple copies of
> the hidden tag.
> Examples:
> jsp:
> <stripes:hidden name="url" />
> output
> <input name="url" value="http%3A%2F%2Fgoogle.com" type="hidden" /><input
> name="url" value="http%3A%2F%2Fgoogle.com" type="hidden" />
> jsp:
> <stripes:hidden name="orgId" value="${actionBean.orgView.orgId}" />
> output:
> <input name="orgId" value="1399" type="hidden" /><input name="orgId"
> value="1399" type="hidden" />
> This however is not consistant, not every hidden tag outputs two copies.
> Here's examples where it doesn't output two copies
> jsp:
> <stripes:hidden name="orgView.orgId" />
> output:
> <input name="orgView.orgId" value="1399" type="hidden" />
> jsp:
> <stripes:hidden name="usesSCM" />
> output:
> <input name="usesSCM" value="false" type="hidden" />
> This effects both GET and POST forms.
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development