Re: Select first item of RadioGroup with n Radio Buttons

2006-06-08 Thread Christian Mittendorf

Hi!

Am 08.06.2006 um 04:16 schrieb Nick Westgate:


I've tried to use the pageBeginRender


That should work. Perhaps time to post some code ...


Well, not necessary any more... sometimes it's quite helpful to
take a break and have a closer look at what you've done...

Using pageBeginRender is definitely the right way to do it.

Thanks anyway ;-)

Christian

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



Select first item of RadioGroup with n Radio Buttons

2006-06-07 Thread Christian Mittendorf

Hello!

I'm currently working on a RadioGroup which includes 1, 2 or 3  
RadioButtons.  The decision which Buttons will be shown is done at  
runtime. However, I'd like to select the first visible button of this  
group as the default selection.


Can anybody give me a hint on how I could solve this problem?

I've tried to use the pageBeginRender or renderComponent methods of  
the component embedding the RadioGroup. But that didn't solve my  
problem. The selection binding of the RadioGroup was set to my chosen  
default value, but the at that moment the RadioButtons have already  
been rendered and therefore no Button was selected.


Christian

P.S. JavaScript is a solution - I know - but I'd like to solve it  
without it ;-)


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