What jsf component can render a div tag?

前端 未结 5 572
面向向阳花
面向向阳花 2020-11-28 21:09

Eg: h:inputText will render a \"input type=\'text\'\". What jsf tag can render a \"div\" tag?

5条回答
  •  攒了一身酷
    2020-11-28 21:35

    Apart from the component (which comes as a bit of a surprise to me), you could use a tag with the escape parameter set to false to generate any mark-up you want. For example:

    
        

    Bear in mind it's a little less elegant than the panelGroup solution, as you have to generate this for both the start and end tags if you want to wrap any of your JSF code with the div tag.

    Alternatively, all the major UI Frameworks have a div component tag, or you could write your own.

提交回复
热议问题