if you use
<div jwcid="[EMAIL PROTECTED]" value="ognl:curChoice" />

then
<label jwcid="@Any" for="clientId:curRadio"><span jwcid="@Insert" value="ognl:curChoice.label" 
raw="true"/></label>




Robert J. Walker wrote:
I'm having trouble rendering <label> tags for individual radio buttons in 
Tapestry 4.1. Simplified example:

<div jwcid="@RadioGroup" selected="ognl:choice">
  <div jwcid="@For" source="ognl:choices" value="ognl:curChoice">
    <div jwcid="@Radio" value="ognl:curChoice" />
    <span jwcid="@Insert" value="ognl:curChoice.label" raw="true"/>
  </div>
</div>

This works fine, except that I'd like for each radio button to have a <label> 
tag rendered for it so that the labels are actually clickable. There doesn't seem to 
be a simple way to do this since the Radio component, strangely, does NOT descend 
from IFormComponent, so the FieldLabel component refuses to have anything to do with 
it.

The only solution I can think of is to create my own custom component (possibly 
subclassing Radio) that emits the radio button AND the label. Anyone else have 
a better idea?

Robert J. Walker


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





--
Andreas Andreou - [EMAIL PROTECTED] - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting

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

Reply via email to