RadioChoice vs. RadioGroup

2012-04-24 Thread Richard W. Adams
Can someone explain the important differences (besides the API) between 
RadioChoice  RadioGroup? What scenarios/factors would make one use one 
instead of the other? What are the tradeoffs? Etc. From my quick (perhaps 
naive) reading, they seem like equally plausible ways of doing the same 
thing.

I looked at the javadocs, but they didn't give any useful information to 
help me choose between the two classes.

**

This email and any attachments may contain information that is confidential 
and/or privileged for the sole use of the intended recipient.  Any use, review, 
disclosure, copying, distribution or reliance by others, and any forwarding of 
this email or its contents, without the express permission of the sender is 
strictly prohibited by law.  If you are not the intended recipient, please 
contact the sender immediately, delete the e-mail and destroy all copies.
**


Re: RadioChoice vs. RadioGroup

2012-04-24 Thread Martin Grigorov
Hi,

The difference is like DropDownChoice vs. Select components.

The *Choice components generate their body by concatenating strings.
Pros: lighter component
Cons: not much control over the generated markup

Select/RadioGroup need children components like SelectOption/Radio
which themselves generate their markup.
Pros: better control over the generated markup per child
Cons: bigger component tree (more memory footprint). Imagine a page
with 200+ options.

On Tue, Apr 24, 2012 at 3:45 PM, Richard W. Adams rwada...@up.com wrote:
 Can someone explain the important differences (besides the API) between
 RadioChoice  RadioGroup? What scenarios/factors would make one use one
 instead of the other? What are the tradeoffs? Etc. From my quick (perhaps
 naive) reading, they seem like equally plausible ways of doing the same
 thing.

 I looked at the javadocs, but they didn't give any useful information to
 help me choose between the two classes.

 **

 This email and any attachments may contain information that is confidential 
 and/or privileged for the sole use of the intended recipient.  Any use, 
 review, disclosure, copying, distribution or reliance by others, and any 
 forwarding of this email or its contents, without the express permission of 
 the sender is strictly prohibited by law.  If you are not the intended 
 recipient, please contact the sender immediately, delete the e-mail and 
 destroy all copies.
 **



-- 
Martin Grigorov
jWeekend
Training, Consulting, Development
http://jWeekend.com

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



RadioChoice vs RadioGroup

2008-03-24 Thread Patel, Sanjay
I am new to Wicket. Can anyone explain about the difference between RadioChoice 
and RadioGroup with example and when to use which?

Thanks,
Sanjay 


Re: RadioChoice vs RadioGroup

2008-03-24 Thread Igor Vaynberg
radiochoice generates the html for you. radiogroup/radio allow you to
define your own html. there are examples in wicket-examples of both.

-igor


On Mon, Mar 24, 2008 at 1:40 PM, Patel, Sanjay [EMAIL PROTECTED] wrote:
 I am new to Wicket. Can anyone explain about the difference between 
 RadioChoice and RadioGroup with example and when to use which?

  Thanks,
  Sanjay


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