UIComponent attribute defaults are not used when bound to managed bean property 
by EL, even if the managed bean property is null
--------------------------------------------------------------------------------------------------------------------------------

                 Key: MYFACES-2915
                 URL: https://issues.apache.org/jira/browse/MYFACES-2915
             Project: MyFaces Core
          Issue Type: Improvement
          Components: JSR-314
    Affects Versions: 2.0.1
            Reporter: Hanspeter Dünnenberger


As asked by Leonardo I open this issue in relation to issue 
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1805 on mojarra to 
check if MyFaces can do the same. For full description see issue above, short 
description below:

Assigning a UIComponent attribute with EL expression disables the default value 
handling that some attribute feature (e.g. rendered==null is the same as 
rendered==true). Since EL expression never evaluates to null an expression like 
rendered="#{bean.rendered} with bean.rendered=null will evaluate to False, 
since for the rendered attribute the expected type for the ValueExpression is 
Boolean. 
The proposed change would be to use Object as expected type to allow null 
evaluation from EL and convert to the really expected type later in 
TagValueExpression. For details see original issue 1805 on mojarra.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to