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

Ben Gunter closed STS-100.
--------------------------


> Unable to clear fields once they're set
> ---------------------------------------
>
>                 Key: STS-100
>                 URL: http://www.stripesframework.org/jira/browse/STS-100
>             Project: Stripes
>          Issue Type: Bug
>          Components: ActionBean Dispatching
>    Affects Versions: Release 1.1
>            Reporter: James Stangler
>            Assignee: Tim Fennell
>             Fix For: Release 1.1.1
>
>
> Once a field is set, there's no way to remove its value.  The method that 
> converts the values from Strings to their real property types, 
> OgnlActionBeanPropertyBinder.convert(), discards empty strings.  When this 
> method is called from the bind() method, the List of converted objects is 
> empty and the setter is never called.
> Checkboxes also have this problem but have an additional issue in that 
> browsers don't send the parameter at all if it isn't checked so there's no 
> way to detect that a checkbox has been cleared from the parameters.  A 
> possible solution might be to generate a hidden field in the html for every 
> checkbox group name.  The submission of this hidden field could check to see 
> if the real checkbox field had any values submitted and if not clear the 
> value in the data object (either boolean or a list/array structure).

-- 
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