[ 
http://www.stripesframework.org/jira/browse/STS-577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11422#action_11422
 ] 

John Newman commented on STS-577:
---------------------------------

I think this is the same thing as STS-476 

My users have complained about this as well.  I understand why stripes does 
what it does, and apart from this case where you want to remove an item by 
blanking it out, I think it is the correct behavior.  But maybe it isn't 
correct, or it should be configurable application wide or field specific.  This 
is something we should discuss.

It is weird when you do what Mohammed is describing, only to come back to the 
page and see that the old values are still there.  What I currently have done 
is added a little trash can icon next to the indexed items to fire an ajax 
event to remove them.  This might be what we are supposed to do to remove items 
 - should we expect  "" and "" to mean delete it?  But if not shouldn't the 
empty string at least replace whatever was stored there before?

A lot to talk about here, I'm not sure if this is a bug or if it is indeed a 
feature. 

> Indexed properties fail to be set to null or empty 
> (DefaultActionBeanPropertyBinder problem)  
> ----------------------------------------------------------------------------------------------
>
>                 Key: STS-577
>                 URL: http://www.stripesframework.org/jira/browse/STS-577
>             Project: Stripes
>          Issue Type: Bug
>          Components: Validation
>    Affects Versions: Release 1.4
>         Environment: Windows, Java 1.5, Tomcat 6
>            Reporter: Mohammed Shafiq
>
> Hi,
> When using indexed properties in the JSP, these cannot be set to empty as 
> this is ignored and no binding to the property. 
> The problem points to the following class 
> DefaultActionBeanPropertyBinder.validateRequiredFields(...).  This method 
> removes any indexed properties where value is set to null or empty. Therefore 
> the resulting binding to the property never occurs and the value is 
> unaffected.
> Thanks
> Shaf.

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

Reply via email to