Hi,

FieldLabel does not works with Radio because it does not descend from IFormComponent,
and a search on the [EMAIL PROTECTED] confirm this fact:
http://www.nabble.com/Radio-button-labels-tf3083795.html#a8569717

I've done this for a Labeled Radio button:

JWC:
   <component id="candidatItem" type="Radio">
<binding name="id" value="ognl:'vl'+currentList.id+'c'+currentCandidat.id" />
       <binding name="value" value="ognl:currentCandidat.id" />
   </component>
   <component id="candidatItemLabel" type="Insert">
       <binding name="renderTag" value="true" />
<binding name="for" value="ognl:'vl'+currentList.id+'c'+currentCandidat.id" /> <binding name="value" value="ognl:'('+currentCandidat.id+') '+currentCandidat.name" />
   </component>
HTML:
<input type="radio" jwcid="candidatItem" />
<label jwcid="candidatItemLabel"> blabla</label>

If this solution is nice enough, perhaps it could be added to the documentation of Radio component as a Tips :
http://tapestry.apache.org/tapestry4.1/components/form/radio.html

Cheers
cyrille.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to