Hi Andrew,

You can do it by means of <h:outputLabel> and display your outputText by the side of your check Box because it gives you a attribute named "for" which refers to the Checkbox.

Regds,
Chandru.


----- Original Message ----- From: "Andrew Robinson" <[EMAIL PROTECTED]>
To: "MyFaces Discussion" <[email protected]>
Sent: Friday, July 21, 2006 10:08 PM
Subject: selectBooleanCheckbox and it's text


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

Reply via email to