Re: multibox not works when all checkboxes are unselected!

2006-06-08 Thread Truong Xuan Tinh
I dont' have such a sequence like that, but you can get the same when you read the source code of the RequestProcessor class. starki78 wrote: > Thanks for this great explanations > I already solved this problem > and now 'm quite close to understand it! > It would be great to have a sequence diagra

Re: multibox not works when all checkboxes are unselected!

2006-06-08 Thread starki78
Thanks for this great explanations I already solved this problem and now 'm quite close to understand it! It would be great to have a sequence diagramm to see this flow submit-reset-populate-validate because knowing this flow isn't quite clear to a normal struts-user. THANKS A LOT > starki78

Re: multibox not works when all checkboxes are unselected!

2006-06-08 Thread Scott Van Wart
starki78 wrote: Hi! I've a large problem with html:multibox. I've tree checkboxes. When I choose one or two or three it arrives correct at the next action! Only then all checkboxes are deselected it remembers the state of the checkboxes that was selected before! The state of the form is session

Re: multibox not works when all checkboxes are unselected!

2006-06-08 Thread Truong Xuan Tinh
That's what you have to do, as Adam said, the browser won't send the value of unselected checkboxes. The sequence for create your form bean are : Create, Reset, Populate, and Validate. You should override the Reset method of the ActionForm to make sure that your form bean accept new value from t

RE: multibox not works when all checkboxes are unselected!

2006-06-08 Thread starki78
Hi Adam I just tried: public void reset(ActionMapping mapping, HttpServletRequest request) { multiboxvalues = new String[3]; multiboxvalues[0] = ""; multiboxvalues[1] = ""; multiboxvalues[2] = ""; } And now the problem seems to be solved but to be honest I don't have the knowle

RE: multibox not works when all checkboxes are unselected!

2006-06-08 Thread Samere, Adam J
Browsers are only required to submit values for checkboxes when they are selected. So when a box is not checked, no value is sent, so the state on the server is not changed. When using session scoped objects to store the value of checkboxes your processing needs to be aware of the fact that values

Re: multibox error

2005-10-30 Thread Deepa Khetan
is your form mapping correct in struts-config??? On 10/29/05, Chris Pat <[EMAIL PROTECTED]> wrote: > > Hello > I am using TC5.5.9,JSTL1.1,Struts1.2 With this code: > > > > value="Value1"/> > > > > > > > > > I have made sure my actionForm has the s/getter for > checkbox1, checkbox2 &

Re: multibox error

2005-10-30 Thread Laurie Harper
Is that table inside a html:form? Chris Pat wrote: Hello I am using TC5.5.9,JSTL1.1,Struts1.2 With this code:           I have made sure my actionForm has the s/getter for checkbox1, checkbox2 & strArray. Made sure the reset is setting the booleans to fal

RE: Multibox problem

2005-07-06 Thread Shyam . Tummala
To: "'Struts Users Mailing List'" cc: Subject:RE: Multibox problem Code where i put the values back: map.put("districtIds", stringArr); where stringArr is an array of what the user selected. -> This

RE: Multibox problem

2005-07-06 Thread Apte, Dhanashree (Noblestar)
Code where i put the values back: map.put("districtIds", stringArr); where stringArr is an array of what the user selected. -> This is not the same as calling setDistrictIds. You need to call setDistrictIds(stringArr) explicitly.

Re: Multibox

2005-03-19 Thread Vamsee Kanakala
Ben Taylor wrote: Cheers, I've manged to get the ticks appearing now... However although they load fine on the first load they do not move after that. i.e. I can change which ones are selected and it'll go off and update the db but when I load the page again the origonal ticks are still shown.

Re: Multibox

2005-03-19 Thread Ben Taylor
Cheers, I've manged to get the ticks appearing now... However although they load fine on the first load they do not move after that. i.e. I can change which ones are selected and it'll go off and update the db but when I load the page again the origonal ticks are still shown. I've tried calling

Re: Multibox

2005-03-19 Thread Robert Taylor
The multibox is "bound" to the selectedModule property of your form. Prior to displaying the page, populate selectedModule property of the form with its corresponding row.id values. When is invoked on the page, it will "recongize" the relationship and render the checkboxes as checked. /robert

Re: Multibox

2005-03-19 Thread Wendy Smoak
From: "Ben Taylor" <[EMAIL PROTECTED]> Can anyone let me know how to automatically check checkboxes? Set the underlying form property and the framework will automatically render "checked" checkboxes. I have: The form property "accounts" is a String[] containing account numbers.

Re: multibox with label value beans

2005-02-10 Thread Ravi Tadi
following code will display multobox (Multiple Checkbox) using Label value bean List. id="checkboxid" This id will be referd in multibox tag , bean write tag entries_list : is LabelValue Bean List selectedEntriesArray : is Array O

RE: Multibox & DynaActionForm

2004-12-09 Thread Jaakko Rytinki
("continue"); } -Original Message- From: Robert Taylor [mailto:[EMAIL PROTECTED] Sent: 9. joulukuuta 2004 17:13 To: Struts Users Mailing List Subject: RE: Multibox & DynaActionForm You will need to set the "selectedCompanies" in the ActionForm so that the can determi

RE: Multibox & DynaActionForm

2004-12-09 Thread Robert Taylor
You will need to set the "selectedCompanies" in the ActionForm so that the can determine which companies have been selected by comparing the company id against the selected company id. If "allCompanies" does not change per user, you may want to place that in the ServletContext on application sta

RE: Multibox deselection problem

2004-11-26 Thread Seetamraju, Uday
Mailing List > Subject: Re: Multibox deselection problem > > > Hi ! > > Thank you for you help, it works fine now ! > > BTW, it seems like Struts does not support all standart HTML > options : I had to use a pure HTML tag because the > "readonly" attribu

RE: Multibox deselection problem

2004-11-26 Thread Seetamraju, Uday
t: Friday, November 12, 2004 12:59 PM > To: 'Struts Users Mailing List' > Subject: RE: Multibox deselection problem > > > This is a problem with HTTP: when all the checkboxes are > deselected, the > browser doesn't send anything back, so you get the default of

Re: Multibox deselection problem

2004-11-15 Thread Olivier Croisier
Hi ! Thank you for you help, it works fine now ! BTW, it seems like Struts does not support all standart HTML options : I had to use a pure HTML tag because the "readonly" attribute does not exist in Struts, and I think this mix is a bit dirty. But it works... ("onLoad" not supported either...)

Re: Multibox deselection problem

2004-11-13 Thread Rick Reumann
Olivier Croisier wrote the following on 11/12/2004 9:46 AM: Now here is my problem. When I de-select all the checkboxes in my jsp page, by hand or by javascript, my processImport.do receives a String[] array containing the entities that were defined in preparaImport.do as default, instead of an

RE: Multibox deselection problem

2004-11-12 Thread Wiebe de Jong
This is a problem with HTTP: when all the checkboxes are deselected, the browser doesn't send anything back, so you get the default of what you started with. To solve this problem you must ensure that at least one box is always selected. I solved this problem by creating an additional checkbox tha

RE: Multibox problem

2004-11-03 Thread Robert Taylor
How many items are in the "func" data structure in request scope? This is what drives the number of iterations. robert > -Original Message- > From: Roland Carlsson [mailto:[EMAIL PROTECTED] > Sent: Wednesday, November 03, 2004 5:02 AM > To: Struts Users Mailing List > Subject: Multibox pr

Re: Multibox/LabelValueBean Input Forms -- Paged Input

2004-06-10 Thread Niall Pemberton
The logic iterate tag has "offset" and "length" attributes which you can use to control display subsets to a collection/array. So if you wanted to show the second page of 10 If you are using jstl then then tag has "begin" and "end" attributes N

Re: multibox mayhem

2004-06-02 Thread Irfandhy Franciscus
from this code : I guess that bean1 must be an object inside 'allofem' So why are you trying to iterate an object : pls wrote: i had to add tags around the because there were some trailing 'null' values in the Integer[] after reading from DB. "pls" <[EMAIL PROTECTED]> wrote in message news:[EMA

Re: multibox mayhem

2004-06-02 Thread pls
i had to add tags around the because there were some trailing 'null' values in the Integer[] after reading from DB. "pls" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I have one multibox per page on a few pages. > Each page name is represented by the 'key' property of a HashMap.