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

Ben Gunter closed STS-84.
-------------------------


> checkbox tag fails without specifying the value attribute
> ---------------------------------------------------------
>
>                 Key: STS-84
>                 URL: http://www.stripesframework.org/jira/browse/STS-84
>             Project: Stripes
>          Issue Type: Bug
>          Components: Tag Library
>    Affects Versions: Release 1.0.2
>         Environment: Using the stripes 1.0.2 download although the directory 
> within the zip file says 1.0.1.
>            Reporter: James Stangler
>            Assignee: Tim Fennell
>             Fix For: Release 1.1
>
>
> A checkbox tag like <stripes:checkbox name="displayingActivities" /> fails 
> with the following stack trace:
> 13:53:20,640 ERROR [[StripesDispatcher]] Servlet.service() for servlet 
> StripesDispatcher threw exception
> java.lang.NullPointerException
>       at 
> net.sourceforge.stripes.tag.InputTagSupport.format(InputTagSupport.java:226)
>       at 
> net.sourceforge.stripes.tag.InputCheckBoxTag.doEndInputTag(InputCheckBoxTag.java:115)
>       at 
> net.sourceforge.stripes.tag.InputTagSupport.doEndTag(InputTagSupport.java:310)
> It appears to fail because the value attribute isn't specified and is never 
> populated in the InputCheckBoxTag class.  The method "doEndInputTag" invokes 
> "getAttributes().put("value", format(this.value))", but value is never set 
> unless explicitly set in the jsp tag.
> Also, even if the value is explicitly specified, it seems like it always 
> marks the checkbox as checked for boolean items.  The "doEndInputTag" method 
> gets the value of the item in the bean using "getOverrideValueOrValues()" - 
> in my case the value is false - and then promptly sets the checked list to be 
> the same value.

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

        

------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and, 
should the need arise, upgrade to a full multi-node Oracle RAC database 
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to