Re: checkboxes

2009-01-30 Thread Reinhard Wagner
ers, REinhard Original-Nachricht > Datum: Fri, 30 Jan 2009 13:20:36 +0100 > Von: "Sébastien Domergue" > An: Struts Users Mailing List > Betreff: Re: checkboxes > Hi, > > We had the same problem with a checkboxlist. Actually, a html checkbox > do

Re: checkboxes

2009-01-30 Thread Sébastien Domergue
Hi, We had the same problem with a checkboxlist. Actually, a html checkbox does not send a data if it's unchecked. In a simple form, no data means false so we don't see anything. In a list, that means there are only the number of true which correspond to the number of checkbox checked. In orde

checkboxes

2009-01-30 Thread Reinhard Wagner
Hi. I do have 2 lists in my formbean, one for the checkoxtypes[A,B,C,D] and one for knowing which checkbox is on / off [checkboxstate] In my jsp I do iterate over the checkboxtypes List and for every checkboxtype I generate a struts:checkbox with property set to checkboxstate[index] and value

RE: Struts 1.2.9 and checkboxes

2008-11-25 Thread David Barron
-Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 3:39 PM To: Struts Users Mailing List Subject: RE: Struts 1.2.9 and checkboxes --- On Tue, 11/25/08, David Barron wrote: > I'm pulling the data out of the table in the jsp, so how do I

RE: Struts 1.2.9 and checkboxes

2008-11-25 Thread Dave Newton
--- On Tue, 11/25/08, David Barron wrote: > I'm pulling the data out of the table in the jsp, so how > do I set the ActionForm properties? Yikes. Pull the form out of the request (or session) and set the form variable. I sure don't recommend the approach, though; that kind of code really doesn't

RE: Struts 1.2.9 and checkboxes

2008-11-25 Thread Dave Newton
--- On Tue, 11/25/08, David Barron wrote: > Maybe I wasn't clear. If the checkbox is checked in > the addRecord.jsp that means the value of isPermanent > in the data table is true. So when that record is > displayed in theeditRecord.jsp the checkbox should > be checked. I've got it working t

RE: Struts 1.2.9 and checkboxes

2008-11-25 Thread David Barron
rd.jsp but I wanted to avoid that if possible. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 2:09 PM To: Struts Users Mailing List Subject: Re: Struts 1.2.9 and checkboxes Why are you only using the checkbox tag in the "add record&q

Re: Struts 1.2.9 and checkboxes

2008-11-25 Thread Dave Newton
Why are you only using the checkbox tag in the "add record" page? Can't you just set the ActionForm property and use it in the edit page also? Dave --- On Tue, 11/25/08, David Barron <[EMAIL PROTECTED]> wrote: > I'm sure this has been asked before but I haven't had any luck finding > the answer

Struts 1.2.9 and checkboxes

2008-11-25 Thread David Barron
I'm sure this has been asked before but I haven't had any luck finding the answer. I'm having trouble getting the checkbox to work. My web application uses a database and I have screens that add and edit records. One of the fields is a boolean called isPermanent. So my ActionForm has a boole

RE: question about submitting checkboxes

2008-07-13 Thread Jishnu Viswanath
:: PASSION :: EXCELLENCE -Original Message- From: Jeromy Evans [mailto:[EMAIL PROTECTED] Sent: Sunday, July 13, 2008 1:38 PM To: Struts Users Mailing List Subject: Re: question about submitting checkboxes Eric Hamacher wrote: > Hello: > > > > I have a form on which there

Re: question about submitting checkboxes

2008-07-13 Thread Jeromy Evans
Eric Hamacher wrote: Hello: I have a form on which there can, in theory, be an infinite number of checkboxes (Users are selecting files from a tree and there is no telling how many will be selected). The name of each checkbox is determined at runtime (= to the path of the file). That

question about submitting checkboxes

2008-07-11 Thread Eric Hamacher
Hello: I have a form on which there can, in theory, be an infinite number of checkboxes (Users are selecting files from a tree and there is no telling how many will be selected). The name of each checkbox is determined at runtime (= to the path of the file). That being the case, how can I

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Nuwan Chandrasoma
the only option unless I add more code to determine if a checkbox was selected. Thank you, everyone, for your help!!! -Original Message- From: Nuwan Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 9:16 AM To: Struts Users Mailing List Subject: Re: [S2] Pre-pop

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread Dave Newton
l" theme, which IIRC just spits out checkboxes and labels with no other markup. Or modify 's template, which might be more appropriate if you need the functionality across your application. http://struts.apache.org/2.x/docs/t

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Jim Kiley
PROTECTED]> wrote: > This is exactly what I needed. I was avoiding checkboxlist because I > wanted the options to be displayed vertically, but it looks to be the > only option unless I add more code to determine if a checkbox was > selected. > > Thank you, everyone, for your he

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
Chandrasoma [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 9:16 AM To: Struts Users Mailing List Subject: Re: [S2] Pre-populating Checkboxes Hi, I have done it like this. // code in my action private String[] skill; public String[] getSkill() { return skill

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Nuwan Chandrasoma
will be selected. Thanks, Nuwan David Ogasawara wrote: Hi, Thank you very much for your assistance, but I am already able to display the checkboxes. I guess my question wasn't very clear. I need to know how to redisplay the checked boxes a user selected in a previous session. So if

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2008 9:04 AM To: Struts Users Mailing List Subject: Re: [S2] Pre-populating Checkboxes >>So if there are five check boxes and the user selects three of >>them and submits the form, how do I automatically check the three boxes >>when th

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread Dave Newton
k you very much for your assistance, but I am already > able to > display the checkboxes. I guess my question wasn't > very clear. I need > to know how to redisplay the checked boxes a user selected > in a previous > session. So if there are five check boxes and the user >

Re: [S2] Pre-populating Checkboxes

2008-07-01 Thread Struts Two
>>So if there are five check boxes and the user selects three of >>them and submits the form, how do I automatically check the three boxes >>when the user returns the next day? If I have understood your question right, you need to persist user selection (say in a database). What you are asking e

RE: [S2] Pre-populating Checkboxes

2008-07-01 Thread David Ogasawara
Hi, Thank you very much for your assistance, but I am already able to display the checkboxes. I guess my question wasn't very clear. I need to know how to redisplay the checked boxes a user selected in a previous session. So if there are five check boxes and the user selects three of the

Re: [S2] Pre-populating Checkboxes

2008-06-30 Thread Nuwan Chandrasoma
wrote: Hello, I'm new to Struts 2 and I was wondering how to pre-populate checkboxes with values from a database (or even hard-coded values). I am iterating through an arraylist of hashmaps (description, type_cd) to create the checkboxes in the form. I then create a string array with th

[S2] Pre-populating Checkboxes

2008-06-30 Thread David Ogasawara
Hello, I'm new to Struts 2 and I was wondering how to pre-populate checkboxes with values from a database (or even hard-coded values). I am iterating through an arraylist of hashmaps (description, type_cd) to create the checkboxes in the form. I then create a string array with the values f

RE: Submitting a form without selecting checkboxes yields 'Input' result

2008-05-20 Thread Michael Gagnon
No. But with further searching, I found: https://issues.apache.org/struts/browse/WW-2339 Which suggests this is a documented struts bug and is not currently fixed. As a result, I've changed my setApproved method to the following: // If no checkboxes are checked, we get Bo

Re: Submitting a form without selecting checkboxes yields 'Input' result

2008-05-20 Thread Laurie Harper
Integer[] itemsPresent; ... public void setApproved(Integer[] approved){ this.approved = approved; } public void setItemsPresent(Integer[] itemsPresent){ this.itemsPresent = itemsPresent; } } When some number of checkboxes are selected, then I get an array containing the ID

Submitting a form without selecting checkboxes yields 'Input' result

2008-05-20 Thread Michael Gagnon
; ... public void setApproved(Integer[] approved){ this.approved = approved; } public void setItemsPresent(Integer[] itemsPresent){ this.itemsPresent = itemsPresent; } } When some number of checkboxes are selected, then I get an array containing the ID values of the checked

Re: [S2] checkboxes in each row of table - set values in action

2008-04-09 Thread Laurie Harper
]" .../> Take a look at the various example applications, as the above may not be exactly right (that's just off the top of my head). L. what shall I save in order to can write back changes in the Checkboxes to the model by struts2 out of box approach? I tries several settings wi

Re: [S2] checkboxes in each row of table - set values in action

2008-04-07 Thread lbastil
... what shall I save in order to can write back changes in the Checkboxes to the model by struts2 out of box ap

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread Laurie Harper
Provided the checkbox is properly bound to the collection entry, yes. You need to specify the name of the s:checkbox (or any other input type) as userCollection[index].userProperty where 'userCollection' is the name of the Collection property on your action, index comes from the iterator and us

Re: [S2] checkboxes in each row of table - set values in action

2008-04-03 Thread lbastil
> > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.

Re: [S2] checkboxes in each row of table - set values in action

2008-04-02 Thread Laurie Harper
lbastil wrote: Hello, I have the following problem: in action i have a collection of class User each class User have different attributes, one is: boolean permission in JSP I use struts 2 iterator tag to iterate the User Objects. For each User entry I create one row in table. for displaying/ch

[S2] checkboxes in each row of table - set values in action

2008-04-02 Thread lbastil
/-S2--checkboxes-in-each-row-of-table---set-values-in-action-tp16446895p16446895.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail

RE: [S2] Checkboxes

2007-12-03 Thread Dave Newton
] > Sent: Friday, November 30, 2007 6:06 PM > To: Struts Users Mailing List > Subject: RE: [S2] Checkboxes > > A single checkbox, AFAIK, only expects to check a > single value, not an > array or collection. > > I would consider using a modified version of th

RE: [S2] Checkboxes

2007-12-03 Thread Hoying, Ken
: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Friday, November 30, 2007 6:06 PM To: Struts Users Mailing List Subject: RE: [S2] Checkboxes A single checkbox, AFAIK, only expects to check a single value, not an array or collection. I would consider using a modified version of the checkboxlist tag

RE: [S2] Checkboxes

2007-11-30 Thread Dave Newton
to work > for me as it does > not give me control on where to put the checkboxes. > I need one in each > row. > > It appears that my understanding of how the checkbox > works is not > correct. > > I am expecting that the checkbox control will call > the >

RE: [S2] Checkboxes

2007-11-30 Thread Hoying, Ken
where to put the checkboxes. I need one in each row. It appears that my understanding of how the checkbox works is not correct. I am expecting that the checkbox control will call the getSelectedContracts() method and see if any of these values in the array it returns matches the value specified in

Re: [S2] Checkboxes

2007-11-30 Thread Martin Gainty
{ private boolean married; //checkbox so the individual checkbox works fine for setting booleans http://struts.apache.org/2.0.11/docs/checkbox.html For handling a list of checkboxes you may want to implement with checkboxlist? http://struts.apache.org/2.0.11/docs/checkboxlist.html M

[S2] Checkboxes

2007-11-30 Thread Hoying, Ken
I am having a difficult time getting checkboxes to work in the following scenario and am not sure what I am doing wrong. Any help or guidance would be greatly appreciated. I have table which displays several rows. In the first column of each row, I have a check box to select that row. I am

RE: Submit all Checkboxes

2007-10-31 Thread Dave Newton
all of the check boxes weather > they are > > checked or not. Right now I only get an of array > for the > > ones that are checked. > > Sorry, that's the way HTML works. Checkboxes values > are sent onl

RE: Submit all Checkboxes

2007-10-31 Thread Slattery, Tim - BLS
> I have a variable amount of check boxes with the same name. > I want to submit all of the check boxes weather they are > checked or not. Right now I only get an of array for the > ones that are checked. Sorry, that's the way HTML works. Checkboxes values are sent onl

Re: Submit all Checkboxes

2007-10-31 Thread Dave Newton
Default stack? --- Richard Sayre <[EMAIL PROTECTED]> wrote: > I am using struts 2. Right now when I submit I only > get the values of > the checked boxes by default. > > On 10/31/07, Dave Newton <[EMAIL PROTECTED]> > wrote: > > Which version of Struts? > > > > S2 has this capability built-in. >

Re: Submit all Checkboxes

2007-10-31 Thread Richard Sayre
I am using struts 2. Right now when I submit I only get the values of the checked boxes by default. On 10/31/07, Dave Newton <[EMAIL PROTECTED]> wrote: > Which version of Struts? > > S2 has this capability built-in. > S1 can use the same technique by including a hidden > form field. > > d. > > --

Re: Submit all Checkboxes

2007-10-31 Thread Dave Newton
Which version of Struts? S2 has this capability built-in. S1 can use the same technique by including a hidden form field. d. --- Richard Sayre <[EMAIL PROTECTED]> wrote: > I have a variable amount of check boxes with the > same name. I want to > submit all of the check boxes weather they are >

Submit all Checkboxes

2007-10-31 Thread Richard Sayre
I have a variable amount of check boxes with the same name. I want to submit all of the check boxes weather they are checked or not. Right now I only get an of array for the ones that are checked. My form has x number of 'Name' text fields x number of 'Activate' check boxes for another. The use

Re: Using checkboxes

2007-09-04 Thread Pedro Herrera
Marcos, use this :: inte+ Herrera Marcos Mendonça wrote: > > Hello > > I'm trying to use checkboxes for a service/product selection. But > following the documentation I wasn't able to set t

Using checkboxes

2007-09-03 Thread Marcos Mendonça
Hello I'm trying to use checkboxes for a service/product selection. But following the documentation I wasn't able to set the value of each option. My code: Resulting in Service1 Shouldn't the value attribute be set to whatever the id of my service is set to? Why

Re: Checkboxes problem

2007-07-05 Thread Andreja
Yes, I agree, but in that case I can not display checkboxes vertically (each one in a new row). To be able to do so using checkboxlist I would have to make a custom template. - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Checkboxes problem

2007-07-04 Thread tom tom
because you have the list, you can do the following You dont need to iterate --- Andreja <[EMAIL PROTECTED]> wrote: > Thank you very much Sharad, that WORKS! :] > > > > Just for the archive, this is also a possibility: > > > fieldValue="${manyNames[cnt.index]}"> >

Re: Checkboxes problem

2007-07-04 Thread Andreja
Thank you very much Sharad, that WORKS! :] Just for the archive, this is also a possibility: - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Checkboxes problem

2007-07-04 Thread sharad bhushan
TED]> To: Struts Users Mailing List Sent: Wednesday, 4 July, 2007 1:24:25 PM Subject: Re: Checkboxes problem Sharad, thank you for the answer. Keeping in mind what you said, I tried to make it work like this: This populates the checkboxes, but when I submit th

Re: Checkboxes problem

2007-07-04 Thread Andreja
Sharad, thank you for the answer. Keeping in mind what you said, I tried to make it work like this: This populates the checkboxes, but when I submit the data, all I can get is ArrayList of true booleans: [true, true...], and I can not use that. I need something like

Re: Checkboxes problem

2007-07-03 Thread sharad bhushan
Hi, Just a suggestion Why dont you have the common name for all check box holding the different values.How ever you may loose the struts2-checkbox feature(checkbox state) by doing this.YOu can populate the values of the checkbox in to a bean and use the across. Regards Sharad Send free SMS

Checkboxes problem

2007-07-03 Thread Andreja
I have a form that contains over a 100 checkboxes. They have unique names, and I need to populate them from (Array)List. As a result, I also need a ArrayList of Strings that contains only elements that user has checked. I did so by using LinkedHashMap and tag s:checkboxlist, but I can not make

Re: Struts2 Dynamic Checkboxes

2007-06-04 Thread Torsten Römer
before I downloaded the Struts2 source and debugged the ListUIBean.compare() method I realized that ;-) So this answers my question, and I am happy to say that my dynamic checkboxes now work perfectly! The Dingbat Torsten Römer schrieb: > I think I found an OK solution but one thing does not work

Re: Struts2 Dynamic Checkboxes

2007-05-30 Thread Torsten Römer
I think I found an OK solution but one thing does not work and I don't understand why. So what I am doing is creating single checkboxes in an iterator, disabling the automatically generated label through a modified "simple" theme and creating m

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Thanks again Dave for your input. It's greatly > aprpeciated. Ha ha, don't thank me until something actually works. d. Be a better Heartthrob. Get bette

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Skip Hollowell
Dave Newton-4 wrote: Yep... in its simplest form, it's really pretty straight-forward. There's all sorts of cool ways to mess it up later ;) THAT'S the one part of this that I don't need any help with. I can mess things up with the best of them. Thanks again Dave for your input. It's greatl

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Dave Newton
--- Skip Hollowell <[EMAIL PROTECTED]> wrote: > Would you make that a separate data structure, or > part of the object already being passed? For me, that would depend on what the underlying data model was, I suppose. > Let's say it's separate, just add the Map/List to the > action, create sette

Re: Struts2 Dynamic Checkboxes

2007-05-24 Thread Skip Hollowell
I have been struggling with the very same problem. So you say pre-populate the map/list. Would you make that a separate data structure, or part of the object already being passed? Let's say it's separate, just add the Map/List to the action, create setter and getters, and make sure and recr

Re: Struts2 Dynamic Checkboxes

2007-05-23 Thread Torsten Römer
Well, why not try both ways... it will be a good exercise no matter what. I'll get back when I have some interesting experiences to share with. Thanks again! Torsten Dave Newton schrieb: > --- Torsten Römer <[EMAIL PROTECTED]> wrote: >> I see there is no point in what I am trying to do. > > Oh

Re: Struts2 Dynamic Checkboxes

2007-05-23 Thread Dave Newton
--- Torsten Römer <[EMAIL PROTECTED]> wrote: > I see there is no point in what I am trying to do. Oh, I don't know about that. You could use a map (or list) for the checkbox values and gather up the result values that way, couldn't you? You just need to pre-populate the map (or list) in the act

Re: Struts2 Dynamic Checkboxes

2007-05-23 Thread Torsten Römer
It sure does and I already looked at it, but I was trying to create single checkboxes in an in order to be able to put them in a custom layout. I kind of have the same problem with radiobuttons so I guess I should reconsider my "design" so I can use the default markup and thus the ta

Re: Struts2 Dynamic Checkboxes

2007-05-23 Thread Dave Newton
--- Torsten Römer <[EMAIL PROTECTED]> wrote: > I have a varying number of checkboxes on a form and > would like to somehow get a list of the selected > checkboxes or a map and of course it would be nice if > the checkboxes would "remember" their state... http:

Struts2 Dynamic Checkboxes

2007-05-23 Thread Torsten Römer
I guess this is a quite common issue but I seem to only find solutions/examples for Struts1: I have a varying number of checkboxes on a form and would like to somehow get a list of the selected checkboxes or a map and of course it would be nice if the checkboxes would "remember" t

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
I left out of the original post that I am using Struts 2. -- View this message in context: http://www.nabble.com/dynamic-checkboxes-and-radio-buttons-in-one-group-tf1971631.html#a10423856 Sent from the Struts - User mailing list archive at Nabble.com

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
m? Yahoo! Mail has the best spam protection around > http://mail.yahoo.com > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this mes

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread Dave Newton
--- elan <[EMAIL PROTECTED]> wrote: > On submit how do I capture which radio buttons > were selected since the radio name field is dynamic? Don't make the whole name dynamic; use a map (or something similar). d. __ Do You Yahoo!? Tired of spam? Y

Re: dynamic checkboxes and radio buttons in one group

2007-05-10 Thread elan
were selected since the radio name field is dynamic? -- View this message in context: http://www.nabble.com/dynamic-checkboxes-and-radio-buttons-in-one-group-tf1971631.html#a10423148 Sent from the Struts - User mailing list archive at Nabble.com

Re: [s2] Problem with no checkboxes selected

2007-04-20 Thread Zoran Avtarovski
007 9:29 AM > To: Struts Users Mailing List; Frank Russo > Subject: Re: [s2] Problem with no checkboxes selected > > Thanks Frank, > > But I thought that form.reset() was only for s1. Does s2 even have a reset > method? > > Z. > > >> Your form has to impl

RE: [s2] Problem with no checkboxes selected

2007-04-20 Thread Frank Russo
ist; Frank Russo Subject: Re: [s2] Problem with no checkboxes selected Thanks Frank, But I thought that form.reset() was only for s1. Does s2 even have a reset method? Z. > Your form has to implement the ActionForm's reset method. In that > method, you should set all of your boolea

Re: [s2] Problem with no checkboxes selected

2007-04-20 Thread Zoran Avtarovski
Thanks Frank, But I thought that form.reset() was only for s1. Does s2 even have a reset method? Z. > Your form has to implement the ActionForm's reset method. In that method, you > should set all of your boolean attributes to false. The reason has to do with > http. Only chec

RE: [s2] Problem with no checkboxes selected

2007-04-20 Thread Frank Russo
Your form has to implement the ActionForm's reset method. In that method, you should set all of your boolean attributes to false. The reason has to do with http. Only checked checkboxes are submitted on a post request, and only attributes that are submitted have their setters called. If yo

[s2] Problem with no checkboxes selected

2007-04-20 Thread Zoran Avtarovski
I've run into a problem where when I edit a form which has check boxes. 1. If I create a new object via the form and have no check boxes selected it works fine. 2. If I create a new object via the form and have one or more check boxes selected it works fine. 3. If I edit an object which has had

Re: internationalization in struts + dynamic checkboxes

2006-12-12 Thread Kranti Parisa
Chris, I will check around. Thank you very much for the suggestions & help. On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kranti, Kranti Parisa wrote: > cant we use tag instead of > is there any way to assign values & ids to d

Re: internationalization in struts + dynamic checkboxes

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kranti, Kranti Parisa wrote: > cant we use tag instead of > is there any way to assign values & ids to dynamically? Unfortunately, I'm not the person to ask about that. I don't use JSP and I'm not very familiar with the JSP tab libraries availabl

Re: internationalization in struts + dynamic checkboxes

2006-12-12 Thread Kranti Parisa
Chris, cant we use tag instead of dynamically? On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kranti, Kranti Parisa wrote: > now i want to display the arraylist in jsp > the empid should be assigned to check box > so each row shou

Re: internationalization in struts + dynamic checkboxes

2006-12-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kranti, Kranti Parisa wrote: > now i want to display the arraylist in jsp > the empid should be assigned to check box > so each row should contain checkboxe which is going to populate dynamically > and carry empid > > so that when i select the checkb

Re: internationalization in struts + dynamic checkboxes

2006-12-12 Thread Kranti Parisa
Chris, Thank you very much for the info. I shall try this and get back to the forum on my findings. i have been struggling with another issue, that is Please suggest me some idea to achive the following from DB getting empid,empname,salary..etc into a arraylist of beans. that m

Checkboxes and HTTP (was: Re: [Strust2] how does Interceptor work?)

2006-09-27 Thread Wendy Smoak
On 9/27/06, Ted Husted <[EMAIL PROTECTED]> wrote: One thing you don't have to worry about doing before or after execute is fussing with checkboxes. Struts 2 has automatic support for stateful checkboxes, so there is no more mucking around with resetting input, just because HTTP can&#

Pagination and Memorizing Marked Checkboxes

2006-07-28 Thread Caroline Jen
clicked. Each object is with a checkbox attached. and this is the way I code it: [code] [/code] Clients may navigate page by page to mark certain checkboxes in each page. And I have to make sure that all marked checkboxes are kept in memory when clients finally click on the 'Submit&#x

Re: dynamic checkboxes and radio buttons in one group

2006-07-21 Thread Thomas Joseph
truts Users Mailing List Sent: Friday, July 21, 2006 1:34 AM Subject: Re: dynamic checkboxes and radio buttons in one group Hi I think i didn't express clearly in my previous mail. I will try to do it again. In my Configuration file i can have any number of questions, for each

Re: dynamic checkboxes and radio buttons in one group

2006-07-21 Thread Thomas Joseph
AM Subject: Re: dynamic checkboxes and radio buttons in one group Hi I think i didn't express clearly in my previous mail. I will try to do it again. In my Configuration file i can have any number of questions, for each question i store question text and some kind of flag to ind

Re: dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Jakub Milkiewicz
s-mailing list Answers: YES (checkbox) Submitt. After the submission button is pressed i would like to have my action form property that conforms to these radiobuttons and checkboxes looks like this ["Yes","Yes",null, null] . It indicates that user selected yes radio button for q

Re: dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Thomas Joseph
: dynamic checkboxes and radio buttons in one group Hi I have a problem with dynamic form handling. On a page i want to present a list of questions. For each question you need to make an answer, but answer widgets can be represented as 2 radio buttons or single checkbox. Initially all answer

dynamic checkboxes and radio buttons in one group

2006-07-20 Thread Jakub Milkiewicz
Hi I have a problem with dynamic form handling. On a page i want to present a list of questions. For each question you need to make an answer, but answer widgets can be represented as 2 radio buttons or single checkbox. Initially all answer widgets should be blank - checkboxes unchecked, radio

Re: multibox not works when all checkboxes are unselected!

2006-06-08 Thread Truong Xuan Tinh
eat 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 wrote: >> >>> Hi! >>> >>> I&

Re: multibox not works when all checkboxes are unselected!

2006-06-08 Thread starki78
ANKS A LOT > 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

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 t

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

RE: multibox not works when all checkboxes are unselected!

2006-06-08 Thread starki78
to be honest I don't have the knowledge to understand it! Thanks for you advice! > 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 scope

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

multibox not works when all checkboxes are unselected!

2006-06-08 Thread starki78
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 in str

Re: Issue with checkboxes!

2006-05-07 Thread 王曾wang_zeng
you can also override the reset() method like this: public void reset(ActionMapping mapping, HttpServletRequest request){ this.initialize(); } in the dynamic form class ,there is a initialize() method which will clear all the properties. The initialize() is called only when the bean is in

Re: Issue with checkboxes!

2006-05-07 Thread Richard Yee
Rizwan, Have you tried using a source level debugger to watch the value of the boolean in the reset method? You should also view the source of your page to make sure the checkbox has the right name. -Richard Rizwan Merchant wrote: Thanks Rick. I have 6 checkboxes in that session scope

Re: Issue with checkboxes!

2006-05-07 Thread Rizwan Merchant
Thanks Rick. I have 6 checkboxes in that session scope form and 5 of them behave fine (I can set or unset them), only one of them acts funny and cannot be reset to false. Any idea why this would be happening..just curious! Rick Reumann wrote: Rizwan Merchant wrote: and in

Re: Issue with checkboxes!

2006-05-07 Thread Rick Reumann
Rizwan Merchant wrote: and in ExtendedDynaValidatorForm I would have a reset() method as follows public void reset(ActionMapping mapping, HttpServletRequest request){ super.reset(); //not sure what goes here } So my next question is..how to I reset all the booleans in the form? Do I hav

Re: Issue with checkboxes!

2006-05-07 Thread Rizwan Merchant
reset() method is not called when the form is submitted. Rizwan, Meaning... you need to override the ActionForm reset method and set any of your ActionForm booleans to false. Then you'll be all set. (Remember in http, only true checkboxes values are sent with the Request so if your backing Act

Re: Issue with checkboxes!

2006-05-07 Thread Rick Reumann
ll be all set. (Remember in http, only true checkboxes values are sent with the Request so if your backing ActionForm has session scope and some were already true, there is nothing to set it to false - which is why you need the reset method for session-scoped form beans and boolean values. --

Re: Issue with checkboxes!

2006-05-07 Thread 王曾wang_zeng
The reason is that the form bean is configed to be saved in session scope, and the reset() method is not called when the form is submitted. -- Wang Zeng

Issue with checkboxes!

2006-05-06 Thread Rizwan Merchant
Hi, I am having issue using checkboxes with the struts framework and DynaValidatorForm. I have a userForm that contains an object called "user" and another object called "userRestrictions" (which defined permissions for that user. When I access the page for the first time

  1   2   >