Thanks for your help.

It's working fine now.

Kind regards

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 23:03
Aan: [EMAIL PROTECTED]
Onderwerp: RE: <html:multibox> no selection (Struts 1.1b2)


You override the reset method to set unchecked value.

1. You know how many elements in your array, so instantiates your array.
2. You know the unchecked value of each element, so do a loop and set
default value to each element.



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:58 PM
To: Struts Users Mailing List
Subject: RE: <html:multibox> no selection (Struts 1.1b2)

Sorry,

Can you give an example?

Johan

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:57
Aan: [EMAIL PROTECTED]
Onderwerp: RE: <html:multibox> no selection (Struts 1.1b2)


Then set unchecked value.

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:53 PM
To: Struts Users Mailing List
Subject: RE: <html:multibox> no selection (Struts 1.1b2)

I do not have a default value. The user can choose between two options. He
can select both checkboxes, one of both or none.

What is going wrong?

Johan

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Verzonden: vrijdag 31 januari 2003 22:49
Aan: [EMAIL PROTECTED]
Onderwerp: RE: <html:multibox> no selection (Struts 1.1b2)


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]

---
Incoming 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

---
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]

---
Incoming 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

---
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]

---
Incoming 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

---
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