Here is the example from the component reference:
http://tapestry.apache.org/tapestry5.2-dev/tapestry-core/ref/org/apache/tapestry5/corelib/components/Radio.html

Mark

On Wed, Feb 9, 2011 at 10:19 AM, hese <1024h...@gmail.com> wrote:
>
>
> Hi,
>
> The task is simple. I have a radiogroup with two buttons.  When the page
> loads I want to check one of the buttons depending on a logic.  This is
> supposed to be very easy, but I am unable to get it working!
>
> here is my code:
>
> tml
>
> <t:radiogroup t:id="forbidRequireRadio" t:value="forbidRequireRadio">
>  <input type="radio" t:type="radio" id="forbidRadio"
> t:value="literal:forbid" />
>  <input type="radio" t:type="radio" id="requireRadio"
> t:value="literal:require"/>
> </t:radiogroup>
>
> java
>
> @Property
> private String forbidRequireRadio;
>
> onActivate() {
>
>   if(something) {
>       forbidRequireRadio = "require";
>   else {
>      forbidRequireRadio = "forbid";
>   }
> }
>
>
> Can someone point me to an example?
>
>
> --
> View this message in context: 
> http://tapestry.1045711.n5.nabble.com/Simple-radiogroup-question-tp3377848p3377848.html
> Sent from the Tapestry - User mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

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

Reply via email to