Have you tried tracing what is happening through the debugger? My guess is that there's a bug in the t:selectOneRadio renderer. It seems like it would be straightforward to determine the cause and submit a patch. You might even be able to find the problem by examining the t:selectOneRadio encoding code.
On Wed, Aug 8, 2012 at 6:49 AM, Patrick Meyer <patrick.me...@o2.pl> wrote: > 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 > > >