There are probably better ways to do it, but this is how I've been doing it:
<t:selectBooleanCheckbox id="myId" value="#{value}" />
<h:outputLabel for="myId" value="#{msg.mytext}"/>
This might not work with your styleClass="mystyle" attribute, though.
I don't think t:selectBooleanCheckbox allows children, but check the
source to be sure.
On 7/21/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
I am pretty sure this has been asked before, but I can't find it in
the archives.
I am trying to put a checkbox on a page and have text with it.
I have the following code:
<t:selectBooleanCheckbox
value="#{value}"
styleClass="mystyle">
<t:outputText value="#{msg.mytext}" />
</t:selectBooleanCheckbox>
What gets rendered is:
My text<input type="checkbox" ... class="mystyle" />
Should this not be:
<input type="checkbox" ... class="mystyle">My text</input>
?
Any way to do this or am I missing something? (BTW - this is the
tomahawk 1.1.3 control)
-Andrew