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

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -