You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Peter Dawn <pe...@gmail.com> on 2006/09/15 02:12:26 UTC

RadioGroup component

guys,

how can i reference each radio element within a radiogroup. if my
implementation is this,
<span jwcid="test@RadioGroup">

</span>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: RadioGroup component

Posted by Christian Dutaret <cd...@gmail.com>.
Any update on this bug?
It seems the problem appeared after
http://issues.apache.org/jira/browse/TAPESTRY-810 was fixed.
The problem is also described in
http://issues.apache.org/jira/browse/TAPESTRY-983, although I don't think it
affects version 4.0.2, as stated, but rather 4.1.x only.
If I may rephrase the problem for more clarity:

<span jwcid="rd@RadioGroup">
  <span jwcid="@Radio" id="userSuppliedId">
</span>

renders as:

<input type="radio" id="rd0" name="..." id="userSuppliedId"/>

This double client ID prevents any custom js to act on the radio inputs.

Thanks
Ch.

2006/9/19, Christian Dutaret <cd...@gmail.com>:
>
> User-supplied id attributes in @Radio components are not rendered properly
> in Tap4.1. Both the user-supplied id and a RadioGroup id are rendered:
> <input type="radio" name="RadioGroup" id="RadioGroup0" value="0"
> id="myId"/>
>
> This was working fine with Tap4.0.2
>
> Ch.
>
> 2006/9/15, andyhot <an...@di.uoa.gr>:
> >
> > They are in a group. They are supposed to have the same name.
> >
> > If you supply an 'id' parameter for each, you can use
> > document.getElementById() later on.
> >
> > Peter Dawn wrote:
> > > sorry guys incomplete message, am sending it again,
> > >
> > > how can i reference each radio element within a radiogroup. if my
> > > implementation is this,
> > > <span jwcid="test@RadioGroup">
> > > <input type="radio" jwcid="@Radio">
> > > <input type="radio" jwcid="@Radio">
> > > </span>
> > >
> > > how can i name each individual radio elements. if i use test2@Radio,
> > > the name is still RadioGroup and if use test@RadioGroup the individual
> > > radios are test each. but i want to reference them individually.
> > >
> > > anybody know how to do this. and i am using tap3. thanks.
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > > For additional commands, e-mail: users-help@tapestry.apache.org
> > >
> > >
> >
> >
> > --
> > Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> > Tapestry / Tacos developer
> > Open Source / J2EE Consulting
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>

Re: RadioGroup component

Posted by Christian Dutaret <cd...@gmail.com>.
User-supplied id attributes in @Radio components are not rendered properly
in Tap4.1. Both the user-supplied id and a RadioGroup id are rendered:
<input type="radio" name="RadioGroup" id="RadioGroup0" value="0" id="myId"/>

This was working fine with Tap4.0.2

Ch.

2006/9/15, andyhot <an...@di.uoa.gr>:
>
> They are in a group. They are supposed to have the same name.
>
> If you supply an 'id' parameter for each, you can use
> document.getElementById() later on.
>
> Peter Dawn wrote:
> > sorry guys incomplete message, am sending it again,
> >
> > how can i reference each radio element within a radiogroup. if my
> > implementation is this,
> > <span jwcid="test@RadioGroup">
> > <input type="radio" jwcid="@Radio">
> > <input type="radio" jwcid="@Radio">
> > </span>
> >
> > how can i name each individual radio elements. if i use test2@Radio,
> > the name is still RadioGroup and if use test@RadioGroup the individual
> > radios are test each. but i want to reference them individually.
> >
> > anybody know how to do this. and i am using tap3. thanks.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> > For additional commands, e-mail: users-help@tapestry.apache.org
> >
> >
>
>
> --
> Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
> Tapestry / Tacos developer
> Open Source / J2EE Consulting
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

RE: RadioGroup component

Posted by Mark Stang <ms...@pingidentity.com>.
Try something like this:

This has multiple Radio buttions, Checkboxes and condidtionals.

        <span jwcid="authType@RadioGroup" selected="ognl:authType">
            <tr>
                <td>
	            <span jwcid="@thirdparty:AnySubmit"><input jwcid="disable@Radio" value="ognl:@com.pingidentity.component.common.SoapAuthXasp@none" /></span>&nbsp;
                	<span key="None_desc"/>
                </td>
	        </tr>
	        <tr>
                <td>
	            <span jwcid="@thirdparty:AnySubmit"><input jwcid="enable@Radio" value="ognl:@com.pingidentity.component.common.SoapAuthXasp@transportLayerAuth"/></span>&nbsp;
                	<span key="Transport_layer_auth_desc"/>
                </td>
	    	</tr>
            <span jwcid="certCheckBoxCond@Conditional" condition="ognl:getShowCertCheckbox()">
		        <tr>
	                <td>
		            &nbsp;&nbsp;<span jwcid="@thirdparty:AnySubmit"><input jwcid="@Checkbox" selected="ognl:basic" disabled="ognl:disableCheckboxes"/></span>&nbsp;
	                	<span key="Basic_desc"/>
	                </td>
		    	</tr>
            </span>
	        <tr>
                <td>
	            &nbsp;&nbsp;<span jwcid="@thirdparty:AnySubmit"><input jwcid="@Checkbox" selected="ognl:cert" disabled="ognl:disableCheckboxes"/></span>&nbsp;
                	<span key="Ssl_client_cert_desc"/>
                </td>
	        </tr>
        </span>


Mark J. Stang
Senior Engineer/Architect
office: +1 303.468.2900
mobile: +1 303.507.2833
Ping Identity



-----Original Message-----
From: andyhot [mailto:andyhot@di.uoa.gr]
Sent: Fri 9/15/2006 1:51 AM
To: Tapestry users
Subject: Re: RadioGroup component
 
They are in a group. They are supposed to have the same name.

If you supply an 'id' parameter for each, you can use
document.getElementById() later on.

Peter Dawn wrote:
> sorry guys incomplete message, am sending it again,
>
> how can i reference each radio element within a radiogroup. if my
> implementation is this,
> <span jwcid="test@RadioGroup">
> <input type="radio" jwcid="@Radio">
> <input type="radio" jwcid="@Radio">
> </span>
>
> how can i name each individual radio elements. if i use test2@Radio,
> the name is still RadioGroup and if use test@RadioGroup the individual
> radios are test each. but i want to reference them individually.
>
> anybody know how to do this. and i am using tap3. thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org



Re: RadioGroup component

Posted by andyhot <an...@di.uoa.gr>.
They are in a group. They are supposed to have the same name.

If you supply an 'id' parameter for each, you can use
document.getElementById() later on.

Peter Dawn wrote:
> sorry guys incomplete message, am sending it again,
>
> how can i reference each radio element within a radiogroup. if my
> implementation is this,
> <span jwcid="test@RadioGroup">
> <input type="radio" jwcid="@Radio">
> <input type="radio" jwcid="@Radio">
> </span>
>
> how can i name each individual radio elements. if i use test2@Radio,
> the name is still RadioGroup and if use test@RadioGroup the individual
> radios are test each. but i want to reference them individually.
>
> anybody know how to do this. and i am using tap3. thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: RadioGroup component

Posted by Peter Dawn <pe...@gmail.com>.
sorry guys incomplete message, am sending it again,

how can i reference each radio element within a radiogroup. if my
implementation is this,
<span jwcid="test@RadioGroup">
<input type="radio" jwcid="@Radio">
<input type="radio" jwcid="@Radio">
</span>

how can i name each individual radio elements. if i use test2@Radio,
the name is still RadioGroup and if use test@RadioGroup the individual
radios are test each. but i want to reference them individually.

anybody know how to do this. and i am using tap3. thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org