One more time as text email.




> 
> > 
> 
> Hi,
>  
> I would like to format selectItem label with html tags in  selectOneRadio 
> component. But the label is not rendered as HTML. What I'm doing wrong?
>  
> <t:selectOneRadio id="idRadioJSF" layout="spread" >
>         <f:selectItem itemValue="1" 
> itemLabel="#{controller.formatLabel('test')}" escape="false" />
> </t:selectOneRadio>
>  
> <t:radio index="0" for="idRadioJSF" id="testRADIOJSF0" />
>  
>  
> My Method looks like :
>  
> public String formatLabel(String label){
>        
>         return  "<span class=\"description\">"+label+"</span>" ;
>        
>  }
>  
> Browser render it like :
>  
> <input id="page:tabRepeat:0:parameterRepeat:0:testRADIOJSF0" type="radio" 
> name="page:tabRepeat:0:parameterRepeat:0:idRadioJSF" value="1" />
> <label for="page:tabRepeat:0:parameterRepeat:0:testRADIOJSF0"> &lt;span 
> class=&quot;description&quot;&gt;test&lt;/span&gt;</label>
>  
>  
>  
>  I'm using Myfaces ver 2.1.1 and Tomahawk lib.
>  
> Regards,
> Patrick
>  
>  
>  
> 
> 






Reply via email to