Colocar letra com fonte Arial na tag selectmanycheckbox

Oi galera!

To com uma dúvida aqui!

Como faço para colocar a letra com fonte arial na tag selectmanycheckbox do jsf ?

Como ficaria no exemplo abaixo

<h:selectManyCheckbox id="smc" value="#{TableBean.perInfoAll}" border="1" disabled="false" 
     title="this is 'selectManyCheckbox' demo" layout="lineDirection"> 
       <f:selectItem id="si1" itemLabel="Thums Up" itemValue="11" />
       <f:selectItem id="si2" itemLabel="Limca" itemValue="22" />
       <f:selectItem id="si3" itemLabel="Pepsi" itemValue="33" />
       <f:selectItem id="si4" itemLabel="Sprite" itemValue="44" />
       <f:selectItem id="si5" itemLabel="Frooti" itemValue="55" />
       <f:selectItem id="si6" itemLabel="Coca-Cola" itemValue="66" />
       </h:selectManyCheckbox>

Abraços para todos!

Jhonys

Nunca usei essa tag, mas já tentou usar simples tags HTML?

Tente envolver o que vc quer com Texto :slight_smile:

Já tentei, mas o atributo itemLabel recebe um valor que deve ser colocado entre aspas,
então na hora de envolver o texto nesta tag que vc disse e colocá-la entre aspas dá erro.

Vlw pela força irmão !
Abraços

Tente colocar a tag span externamente, e não dentro das aspas.

<span style="font-family: Arial;"> <h:selectManyCheckbox id="smc" value="#{TableBean.perInfoAll}" border="1" disabled="false" title="this is 'selectManyCheckbox' demo" layout="lineDirection"> <f:selectItem id="si1" itemLabel="Thums Up" itemValue="11" /> <f:selectItem id="si2" itemLabel="Limca" itemValue="22" /> <f:selectItem id="si3" itemLabel="Pepsi" itemValue="33" /> <f:selectItem id="si4" itemLabel="Sprite" itemValue="44" /> <f:selectItem id="si5" itemLabel="Frooti" itemValue="55" /> <f:selectItem id="si6" itemLabel="Coca-Cola" itemValue="66" /> </h:selectManyCheckbox> </span>

Ou se for somente um item, envolver toda a tag f:selectItem:

<span style="font-family: Arial;"> <f:selectItem id="si1" itemLabel="Thums Up" itemValue="11" /> </span>

Esse segundo pode não funcionar, mas não custa nada tentar :smiley: