You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by sh...@cio.ne.gov on 2006/08/17 15:24:10 UTC
Re: HtmlRadioRendererBase t:selectOneRadio
Well I found the solution to the second issue. The DataModel that I was
plugging into the t:dataTable to display the generated radio buttons wasn't
being initialized correctly.
Thanks
shaun.thompson@ci
o.ne.gov
To
08/17/2006 07:36 users@myfaces.apache.org
AM cc
Subject
Please respond to HtmlRadioRendererBase
"MyFaces t:selectOneRadio
Discussion"
<users@myfaces.ap
ache.org>
I'm having a couple of problems with this component.
1. It seems to ignore the escape attribute on the selectOneRadio tag.
I've patched the HtmlRadioRendererBase for the label as follows and it now
works. Am I missing something?
Boolean escape = (Boolean)uiComponent.getAttributes().get("escape");
if ((label != null) && (label.length() > 0))
{
writer.write(HTML.NBSP_ENTITY);
if (escape != null && escape.booleanValue()) {
writer.write(label);
} else {
writer.writeText(label, "value");
}
}
2. The tag/component doesn't seem to be called when the page is first
loaded - any subsequent page refreshes and the tag will show. If I stop
the server and then try it again - the same issue occurs.
Thanks