just set the right model value that you want to select first on the radiogroup.
it is the exact same object as the radio group would have.

So the model object of the radiogroup have to be te same as what you give the radio.

johan



On 3/21/06, Nino Wael <[EMAIL PROTECTED]> wrote:
Hi Igor

I cant find that example, I've been looking through these examples :


*       forminput
*       RadiogroupPage

I've seen no example on howto set a default value on RadioGroup in these examples.. I might just be me that needs to wear my googles. Could you give a more precise pointer?

-regards Nino

        -----Oprindelig meddelelse-----
        Fra: [EMAIL PROTECTED] på vegne af Igor Vaynberg
        Sendt: ti 21-03-2006 09:19
        Til: [email protected]
        Cc:
        Emne: Re: [Wicket-user] wicket 1.2 beta 2 RadioGroup selecting a default


        there is an example usage in wicket examples/ component reference.

        -Igor



        On 3/21/06, Nino Wael <[EMAIL PROTECTED] > wrote:

                Hi im having some trouble making a default selection on my radiogroup.

                Should I try to make the selection on the radiogroup or the button itself, I guess the first?


                Currently im trying to use RadioGroup.setModelObject, however this is not working or I am passing on a wrong object. I'll very much like to see some simple examples on howto do it.


                -regards Nino






Reply via email to