[
http://jira.jboss.com/jira/browse/JBSEAM-1737?page=comments#action_12370709 ]
Pete Muir commented on JBSEAM-1737:
-----------------------------------
According to the spec in section 1.18 - "Every expression is evaluated in the context
of an expected type" and 1.18.2, if a string is null, return "". Therefore
I don't think this is fixable.
JBoss EL sends null as blank
----------------------------
Key: JBSEAM-1737
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1737
Project: JBoss Seam
Issue Type: Bug
Components: EL
Affects Versions: 2.0.0.BETA1
Environment: Jboss 4.2 GA, Mac 10.4.8
Reporter: Damian Harvey
Assigned To: Pete Muir
If you have a method call from a JSF page that passes a null string, this will be blank
rather than null in the method.
eg. the page:
<s:link action="#{testNull.test(null)}" value="Send Null"/>
and in the method:
public void test(String str) {
log.info("String : #0. Is null? #1", str, str==null);
}
the result is : "String : . Is null? false"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira