How to pass the node value as the attribute in Composite Component in JSF 2.0

后端 未结 1 1147
北恋
北恋 2021-01-22 01:41

I am developing a JSF 2.0 composite component. I am trying to create a box component to which my required HTML will be set as attribute.

Some thing like..



        
1条回答
  •  悲&欢浪女
    2021-01-22 02:05

    You aren't passing it as tag attribute. You are just passing it as child in the tag body. In that case you need to use to insert it. So, instead of

    #{cc.attrs.value}
    

    you should be doing

    
    

    Or if you actually want to use #{cc.attrs.value}, then you should be defining it as a real tag attribute from the beginning on instead of as tag body:

    
    

    0 讨论(0)
提交回复
热议问题