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

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -