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
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
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
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
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
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
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 &
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
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
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.
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.
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
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
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.
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
("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
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
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
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
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...)
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
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
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
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
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
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.
26 matches
Mail list logo