Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
difference between html:checkbox and html:multibox
Joined: May 02, 2005
May 11, 2006 04:30:00
what is the difference between <html:checkbox> and <html:multibox>.
the first one for single checkbox and the other for group of checkboxes is this correct
thanks in advance
Joined: Feb 15, 2005
May 11, 2006 11:08:00
You use <html:checkbox> when you have a single value on your ActionForm that can be either true or false:
Check here if you like JavaRanch <html:checkbox property="likesJavaRanch" value="true" />
You use <html:multibox> when the underlying property in your ActionForm is an array of strings. You then have more than one checkbox to populate that array:
What fruits do you like? apples <html:multibox property="fruits" value="apples"/> oranges <html:multibox property="fruits" value="oranges"/> bananas <html:multibox property="fruits" value="bananas"/>
If all boxes are checked when this form is submitted, the likesJavaRanch property (type boolean) will be true, and the fruits property (type
) will contain "apples, "oranges", "bananas"
I agree. Here's the link:
subject: difference between html:checkbox and html:multibox
difference between checkbox and multibox
How to enable checkbox from value fetched from database
html:mutlibox uncheck ,check problem
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015