Update of
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/typehandler
In directory james.mmbase.org:/tmp/cvs-serv18845
Modified Files:
AbstractTypeHandler.java
Log Message:
MMB-1709
See also:
http://cvs.mmbase.org/viewcvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/typehandler
See also: http://www.mmbase.org/jira/browse/MMB-1709
Index: AbstractTypeHandler.java
===================================================================
RCS file:
/var/cvs/applications/taglib/src/org/mmbase/bridge/jsp/taglib/typehandler/AbstractTypeHandler.java,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -b -r1.65 -r1.66
--- AbstractTypeHandler.java 25 Jul 2008 12:24:26 -0000 1.65
+++ AbstractTypeHandler.java 18 Aug 2008 15:35:44 -0000 1.66
@@ -29,7 +29,7 @@
* @author Gerard van de Looi
* @author Michiel Meeuwissen
* @since MMBase-1.6
- * @version $Id: AbstractTypeHandler.java,v 1.65 2008/07/25 12:24:26 michiel
Exp $
+ * @version $Id: AbstractTypeHandler.java,v 1.66 2008/08/18 15:35:44 michiel
Exp $
*/
public abstract class AbstractTypeHandler implements TypeHandler {
@@ -166,12 +166,14 @@
//}
/**
- * Returns the field value as specified by the client's post.
+ * Returns the field value as specified by the client's post. This is only
<code>null</code> if
+ * the client didn't post a thing. It can be empty if the client means
<code>null</code>
+ * (depending on the value of [EMAIL PROTECTED] #interpretEmptyAsNull}).
* @param node This parameter could be used if the client does not fully
specify the field's value (possible e.g. with Date fields). The existing
specification could be used then.
*/
protected Object getFieldValue(Node node, Field field) throws
JspTagException {
Object found =
tag.getContextProvider().getContextContainer().find(tag.getPageContext(),
prefix(field.getName()));
- if (interpretEmptyAsNull(field) && "".equals(found)) found = null;
+ //if (interpretEmptyAsNull(field) && "".equals(found)) found = null;
return found;
}
_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs