In reset method of your ActionForm, set default value of checkbox.

Regards,
 
 
PQ
 
"This Guy Thinks He Knows Everything"
"This Guy Thinks He Knows What He Is Doing"

-----Original Message-----
From: Johan Kumps [mailto:[EMAIL PROTECTED]] 
Sent: January 31, 2003 4:47 PM
To: Struts mailing
Subject: <html:multibox> no selection (Struts 1.1b2)

Hi all,

It seems that my setXxx method in my form bean is not called when I do not
check any checkboxes in the multibox.

Please consider following code :

...
<html:multibox name='configForm' property='myHandlers'>
    <bean:write name='handler'/>
</html:multibox>
<bean:write name='handler'/>
...


...
private String[] myHandlers = {};
...
public void setMyHandlers (String[] myHandlers) {
    this.myHandlers = myHandlers;
}

public String[] getMyHandlers() {
    return this.myHandlers;
}
...

Am I doing somthis wrong here?

Please help me with this one.

Kind regards,
Johan
---
This mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.445 / Virus Database: 250 - Release Date: 21/01/2003


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

Reply via email to