[
http://www.stripesframework.org/jira/browse/STS-579?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11424#action_11424
]
Michael Day commented on STS-579:
---------------------------------
I just discovered the this bug has other side effects. For example, on my
<stripes:label> element, the "class" attribute is lost by the time the page is
rendered. So I cannot apply a CSS class to my <label>.
> multiple <stripes:radio> tags with same name attribute causes NPE
> -----------------------------------------------------------------
>
> Key: STS-579
> URL: http://www.stripesframework.org/jira/browse/STS-579
> Project: Stripes
> Issue Type: Bug
> Components: Tag Library
> Affects Versions: Release 1.5
> Reporter: Michael Day
>
> Seems when I have two radios with the same name, I get NPE. One difference I
> found between 1.4.3 and 1.5rc1 is that all of the attributes except for
> "type" are cleared out in InputTagSupport#doEndTag(). When I remove that bit
> of code, everything seems to work...
> HTML code example:
> <stripes:radio name="response" value="1" />
> <stripes:radio name="response" value="2" />
> java.lang.NullPointerException
> at
> java.util.concurrent.ConcurrentHashMap.hash(ConcurrentHashMap.java:157)
> at
> java.util.concurrent.ConcurrentHashMap.get(ConcurrentHashMap.java:730)
> at
> net.sourceforge.stripes.util.bean.PropertyExpression.getExpression(PropertyExpression.java:84)
> at
> net.sourceforge.stripes.util.bean.BeanUtil.getEvaluation(BeanUtil.java:112)
> at
> net.sourceforge.stripes.util.bean.BeanUtil.getPropertyValue(BeanUtil.java:62)
> at
> net.sourceforge.stripes.tag.DefaultPopulationStrategy.getValueFromActionBean(DefaultPopulationStrategy.java:127)
> at
> net.sourceforge.stripes.tag.DefaultPopulationStrategy.getValue(DefaultPopulationStrategy.java:70)
> at
> net.sourceforge.stripes.tag.InputTagSupport.getOverrideValueOrValues(InputTagSupport.java:90)
> at
> net.sourceforge.stripes.tag.InputTagSupport.getSingleOverrideValue(InputTagSupport.java:103)
> at
> net.sourceforge.stripes.tag.InputRadioButtonTag.doEndInputTag(InputRadioButtonTag.java:108)
> at
> net.sourceforge.stripes.tag.InputTagSupport.doEndTag(InputTagSupport.java:442)
> ...
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development