jsf - Output arbitrary tag element in Facelets? -
i want output tag dynamic attributes like:
<foo attr1="val1" attr2="val1" attr3="val1"> contents </foo> where attribute names unknown in compile time.
it's c:foreach or ui:repeat doesn't work here:
<foo <c:foreach ... /> > so, there this?
<x:element name='foo'> <foreach> <x:attribute name='#{"attr" + index}'> #{"val" + index} </x:attribute> </foreach> </x:element> thanks.
you can f:attribute (xmlns:f=http://java.sun.com/jsf/core), associates attribute nearest parent uicomponent.
see:
Comments
Post a Comment