jsf 2 - Jsf custom selectItems -
look following code
<h:selectmanycheckbox layout="pagedirection" styleclass="pressreviewtable"> <f:selectitems value="#{theme.articles}" var="prart" itemlabel="#{prart.prlabel}" itemvalue="#{prart.id}" itemlabelescaped="false"/> </h:selectmanycheckbox>
i try put html on on itemlabel <b>
have following error:
the value of attribute "itemlabel" associated element type "f:selectitems" must not contain '<' character.
i find trick put directly in #{prart.prlabel} html i'm not satisfied that. use mojarra , primefaces.
i want :
<f:selectitems value="#{theme.articles}" var="prart" itemlabel="<b>#{prart.value1}</b> : <font>#{prart.value2}</font>" itemvalue="#{prart.id}" itemlabelescaped="false"/>
what's other way? if there...
thanks
since each item label printed <label>
in html, can use css
<h:selectmanycheckbox styleclass="foo">
with
.foo label { font-weight: bold; }
Comments
Post a Comment