You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rajesh, Harikrishnan (H.)" <hr...@ford.com> on 2003/12/24 12:11:17 UTC
Problem with multibox check state
Hi,
I have a jsp input form with dynamically generated multibox, I need to fill these boxes with checked and unchecked state once the user selects a previously saved record. I need to know how to resolve this problem.
I have done the same with a single multibox, using the set('property name', value) in the action component. But for dynamically generated multibox what need to be done.
I have set the component name in the 'form bean' tag as 'java.lang.string'.
This is a very urgent requirement and might be a simple problem for you gurus.
Thanks for any help on this issue.
Regards
H.Rajesh
Re: Problem with multibox check state
Posted by Mark Lowe <ma...@talk21.com>.
The checkboxes are selected depending on whether the value and the
property value match..
<html:multibox property="myprop" value="foo" />
if myprop is set to foo it will be ticked..
On 24 Dec 2003, at 11:11, Rajesh, Harikrishnan (H.) wrote:
> Hi,
>
> I have a jsp input form with dynamically generated multibox, I need to
> fill these boxes with checked and unchecked state once the user
> selects a previously saved record. I need to know how to resolve this
> problem.
>
> I have done the same with a single multibox, using the set('property
> name', value) in the action component. But for dynamically generated
> multibox what need to be done.
>
> I have set the component name in the 'form bean' tag as
> 'java.lang.string'.
>
> This is a very urgent requirement and might be a simple problem for
> you gurus.
>
> Thanks for any help on this issue.
>
> Regards
> H.Rajesh
>
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org