Revision: 618
http://stripes.svn.sourceforge.net/stripes/?rev=618&view=rev
Author: bengunter
Date: 2007-11-08 19:07:00 -0800 (Thu, 08 Nov 2007)
Log Message:
-----------
Reverted the fix for STS-227. Discussion on the user list led to a consensus
that keys should not be removed from a map if the submitted value is null.
Instead the key should be added with a null value.
Modified Paths:
--------------
trunk/stripes/src/net/sourceforge/stripes/util/bean/MapPropertyAccessor.java
Modified:
trunk/stripes/src/net/sourceforge/stripes/util/bean/MapPropertyAccessor.java
===================================================================
---
trunk/stripes/src/net/sourceforge/stripes/util/bean/MapPropertyAccessor.java
2007-11-06 19:00:11 UTC (rev 617)
+++
trunk/stripes/src/net/sourceforge/stripes/util/bean/MapPropertyAccessor.java
2007-11-09 03:07:00 UTC (rev 618)
@@ -56,13 +56,7 @@
*/
@SuppressWarnings("unchecked")
public void setValue(NodeEvaluation evaluation, Map map, Object value) {
- Object key = getKey(evaluation);
- if (value == null) {
- map.remove(key);
- }
- else {
- map.put(key, value);
- }
+ map.put(getKey(evaluation), value);
}
/**
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development