[
https://jira.jboss.org/jira/browse/JBSEAM-4261?page=com.atlassian.jira.pl...
]
Gino Miceli updated JBSEAM-4261:
--------------------------------
Affects Version/s: 2.1.1.GA
2.1.0.GA
Description:
Seam component:
@Name("test")
public class Wrapper {
@Unwrap
public String getAString() {
return null;
}
}
JSF page:
<html
xmlns="http://www.w3.org/1999/xhtml">
<body>
#{empty test ? 'test is null' : test.class.name}
</body>
</html>
Outputs
Wrapper_$$_javassist_seam_2
Confirmed in 2.1.2.GA, 2.1.1.GA and 2.1.0.GA
was:
Seam component:
@Name("test")
public class Wrapper {
@Unwrap
public String getAString() {
return null;
}
}
JSF page:
<html
xmlns="http://www.w3.org/1999/xhtml">
<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.
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.0.GA, 2.1.1.GA, 2.1.2.GA
Reporter: Gino Miceli
Seam component:
@Name("test")
public class Wrapper {
@Unwrap
public String getAString() {
return null;
}
}
JSF page:
<html
xmlns="http://www.w3.org/1999/xhtml">
<body>
#{empty test ? 'test is null' : test.class.name}
</body>
</html>
Outputs
Wrapper_$$_javassist_seam_2
Confirmed in 2.1.2.GA, 2.1.1.GA and 2.1.0.GA
--
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