[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-4261) When an @Unwrap annotated method returns null, JSF EL returns the wrapper itself

Gino Miceli (JIRA) jira-events at lists.jboss.org
Tue Jun 23 05:04:08 EDT 2009


When an @Unwrap annotated method returns null, JSF EL returns the wrapper itself
--------------------------------------------------------------------------------

                 Key: JBSEAM-4261
                 URL: https://jira.jboss.org/jira/browse/JBSEAM-4261
             Project: Seam
          Issue Type: Bug
          Components: Core
    Affects Versions: 2.1.2.GA
            Reporter: Gino Miceli


Seam component:

@Name("test")
public class Wrapper {
    @Unwrap
    public String getAString() {
        return null;
    }
}

JSF page:
 
<html>
<head xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html">
    <title>Unwrap test</title>
</head>
<body>
#{empty test ? 'test is null' : test.class.name}
</body>
</html> 
 
 
 Outputs 
 
Wrapper_$$_javassist_seam_2 

This behavior appeared after updating from 2.1.1.GA to 2.1.2.GA.

Similar to JBSEAM-283

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list