Richard is right.

It would have to be more like this:

<span jwcid="activeServerRadioGroup">
  <span jwcid="activeServers">
    <input type="radio" jwcid="activeServerRadio" />
  </span>
</span>

Also if values assigned to radio components are 'activeServer.id', let's
assume it's Long, then 'selected' parameter of your  activeServerRadioGroup
component should be of type Long as well, so maybe you need another property

<property name="selectedId"/>

and then use it like this:

<component id="activeServerRadioGroup" type="RadioGroup">
        <binding name="selected" value="selectedId"/>
</component>

I haven't tested this code though.

Dariusz

On Thu, Jan 20, 2011 at 2:33 PM, Richard Kirby <r...@capdm.com> wrote:

> Hi,
>
> Can you say a little more exactly what you are trying to do as your HTML
> doesn't appear to be correct. The RadioGroup needs to wrap around the Radio
> buttons at the very least.
>
> Richard
>
> On 19 Jan 2011, at 19:29, sunray 2003 wrote:
>
> > Hi,
> >
> > I am unable to get the tapestry 4 radio group working.
> >
> > My HTML
> >
> > <td><span jwcid="activeServerRadioGroup"></span></td>
> > <td><input type="radio" jwcid="activeServerRadio" /></td>
> >
> > My .page
> >
> > <property name="activeServer"/>
> > <component id="activeServerRadioGroup" type="RadioGroup">
> >         <binding name="selected" value="activeServer.selected"/>
> > </component>
> > <component id="activeServers" type="For">
> >     <binding name="source" value="activeServers"/>
> >     <binding name="keyExpression" value="literal:id"/>
> >     <binding name="value" value="activeServer"/>
> >     <binding name="element" value="literal:tr"/>
> > </component>
> > <component id="activeServerRadio" type="Radio">
> >      <binding name="value" value="activeServer.id"/>
> > </component>
> >
> > In my .java file I have a method getActiveServers() that returns a list
> of
> > custom class with selected, id attributes. The above structure is not
> > working. Can somebody help?
> >
> > Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

Reply via email to