How does a composite component set a property in it's client's backing bean?

前端 未结 2 2045
再見小時候
再見小時候 2021-02-04 18:08

I have a composite component with an interface that contains this:



        
2条回答
  •  北荒
    北荒 (楼主)
    2021-02-04 19:02

    what about the attribute "default" ? It seam that it is not implemented when using the backing component implementation.

    xhtml :

    
        
    
    
        TEST : #{cc.attrs.test}
    
    

    Java backing implementation :

     testValue = (Boolean) getAttributes().get("test");
    

    if the test attribute is set in the main xhtml no problem : both xhtml and java backing have the same value. But when not set the default value is only on xhtml : The html contains

    TEST : false 
    

    But testValue is null in backing

提交回复
热议问题