Re: From ??? Re: From ??? Re: Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Britta Katzenbach
2022 o 14:59 Britta Katzenbach napisał(a): >> >> Yes, I see the discussion in the pull request. It definitely is not backward >> compatible. As in the old simple checkbox template (struts 2.5), you always >> generate the hidden input field. In struts 6 you added <

Re: From ??? Re: From ??? Re: Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Lukasz Lenart
śr., 9 lis 2022 o 14:59 Britta Katzenbach napisał(a): > > Yes, I see the discussion in the pull request. It definitely is not backward > compatible. As in the old simple checkbox template (struts 2.5), you always > generate the hidden input field. In struts 6 yo

Re: From ??? Re: From ??? Re: Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Britta Katzenbach
Yes, I see the discussion in the pull request. It definitely is not backward compatible. As in the old simple checkbox template (struts 2.5), you always generate the hidden input field. In struts 6 you added <#if parameters.submitUnchecked!false>, so the hidden field is only generate

Re: From ??? Re: Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Burton Rhodes
struts/pull/169 -- Original Message -- From "Britta Katzenbach" To "Struts Users Mailing List" Date 11/9/2022 7:10:54 AM Subject Re: From ??? Re: Checkbox tag new attribute submitUnchecked Hi Burton, Thanks for the quick answer and the description! I was hoping for a soluti

Re: From ??? Re: Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Britta Katzenbach
mes > > Thanks, > Burton > > -- Original Message -- > From "Britta Katzenbach" > To user@struts.apache.org > Date 11/9/2022 2:40:19 AM > Subject Checkbox tag new attribute submitUnchecked > >> Hi, >> >> We are migrating fr

Re: Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Burton Rhodes
ks, Burton -- Original Message -- From "Britta Katzenbach" To user@struts.apache.org Date 11/9/2022 2:40:19 AM Subject Checkbox tag new attribute submitUnchecked Hi, We are migrating from struts 2.5 to 6.0.3. You have implemented the new tag attribute submitUnchecked in the chec

Checkbox tag new attribute submitUnchecked

2022-11-09 Thread Britta Katzenbach
Hi, We are migrating from struts 2.5 to 6.0.3. You have implemented the new tag attribute submitUnchecked in the checkbox. The default value is false. Is there any way to set the attribute default value to true? Best regards, Britta Britta Katzenbach

Re: Not escaping HTML in checkbox Tag

2018-11-17 Thread Yasser Zamani
o list, my problem is that i have a message resource key defined like this: message.privacy=Die Datenschutzerklärung when i use it in text tag like this: all is ok an html is not escaped but when i used it in checkbox tag like this: html is escaped an my link is not working is there a way

Not escaping HTML in checkbox Tag

2018-11-16 Thread Marc Michele
Hello list, my problem is that i have a message resource key defined like this: message.privacy=Die Datenschutzerklärung when i use it in text tag like this: all is ok an html is not escaped but when i used it in checkbox tag like this: html is escaped an my link is not working is there

Re: Documentation: Checkbox "false" injection

2011-07-20 Thread Dave Newton
pe of behavioral control do you want? It's handled by the checkbox template and the interceptor. > * Can the document be updated to include these examples? (shall I open a JIRA issue against the docs?) Sure, or file a CLA and contribute some additional docs. Dave

Documentation: Checkbox "false" injection

2011-07-20 Thread struts . rgm
The "using checkboxes" page at http://struts.apache.org/2.2.3/docs/using-checkboxes.html says: The framework automatically tracks the checkboxes used by a form (so you don't have to). If a checkbox is missing, a default value for the checkbox (usually false) is injecte

Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dave, Thanks for the quick reply. On 6/17/2011 3:46 PM, Dave Newton wrote: > On Friday, June 17, 2011, Christopher Schultz wrote: >> I can't believe I've been working with Struts for nearly 10 years and >> I'm still using Struts 1. > > Fixed. Yeah,

Re: [s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Dave Newton
On Friday, June 17, 2011, Christopher Schultz wrote: > I can't believe I've been working with Struts for nearly 10 years and > I'm still using Struts 1. Fixed. > The problem is that if we check the box and submit to A2 (then show P2), > then go back (either browser-BACK or using our "previous" bu

[s1,validation] Multi-page flow, session-scoped DynaValidatorForm with checkbox

2011-06-17 Thread Christopher Schultz
flow looks something like this: P1 -> A1 ---> P2 -> A2 ---> Done "P1" contains a checkbox called "emailNotification". The bean is defined with a The "Done" page would like to use the value of that form property to decide (you guessed it) whether or not to

Re: checkbox problem

2010-10-26 Thread Li Ying
I think so. In the final, if you want to submit any data to member of a list, the [name] of the HTML element should be something like: "listName[indexNumber].propertyName" Or strust2 can not know where this parameter should be applied to. If your code can work, the first thing should check is: If

Re: checkbox problem

2010-10-26 Thread Li Ying
Actually, I have tested these sample codes before I sent it to you, and it worked very well. If it not working on your environment, maybe something else is getting wrong. Does any exception message appeared? 2010/10/27 Peter Bliznak : > Thanks for your time but what you show me is exactly what I

Re: checkbox problem

2010-10-26 Thread Ashlon Hill
lready null . man :-( >> > >> > >> > >> > On Tue, Oct 26, 2010 at 2:33 PM, satyanarayana katta >> > >> > wrote: >> > >> > >> > >> >> R u by any chance creating the new list in the a

Re: checkbox problem

2010-10-26 Thread Ashlon Hill
list in the action class. If so > > it > > >> >> won't work and u will get null. > > >> >> > > >> >> Sent from my iPhone > > >> >> > > >> >> On Oct 26, 2010, at 10:23 AM, Peter Bliznak > >

Re: checkbox problem

2010-10-26 Thread Dave Newton
ill get null. >> >> >> >> >> >> Sent from my iPhone >> >> >> >> >> >> On Oct 26, 2010, at 10:23 AM, Peter Bliznak >> wrote: >> >> >> >> >> >> > Opps...damn gmail. >> >&g

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
gt; > >> >> Sent from my iPhone > >> >> > >> >> On Oct 26, 2010, at 10:23 AM, Peter Bliznak > wrote: > >> >> > >> >> > Opps...damn gmail. > >> >> > > >> >> > As I&#x

Re: checkbox problem

2010-10-26 Thread Dave Newton
liznak wrote: >> >> >> >> > Opps...damn gmail. >> >> > >> >> > As I've said I am using pretty much same approach as it was suggested >> >> above >> >> > by

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
my iPhone > >> > >> On Oct 26, 2010, at 10:23 AM, Peter Bliznak wrote: > >> > >> > Opps...damn gmail. > >> > > >> > As I've said I am using pretty much same approach as it was suggested > >> above > >> >

Re: checkbox problem

2010-10-26 Thread Dave Newton
>> > >> > As I've said I am using pretty much same approach as it was suggested >> above >> > by the other poster. >> > I have list: >> > private List workOrderTaskList; >> > >> > with gett

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
e List workOrderTaskList; > > > > with getter and setter' > > > > EAch : WorkOrderTask have : > > Long id; > > boolean completed ;// checkbox > > > > with getters and setter's > > > > in jsp itera

Re: checkbox problem

2010-10-26 Thread satyanarayana katta
bove > by the other poster. > I have list: > private List workOrderTaskList; > > with getter and setter' > > EAch : WorkOrderTask have : > Long id; > boolean completed ;// checkbox > > with getters and setter's &

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
Opps...damn gmail. As I've said I am using pretty much same approach as it was suggested above by the other poster. I have list: private List workOrderTaskList; with getter and setter' EAch : WorkOrderTask have : Long id; boolean completed ;// checkbox with getters and setter

Re: checkbox problem

2010-10-26 Thread Dave Newton
On Tue, Oct 26, 2010 at 12:50 PM, Peter Bliznak wrote: > As I've said I am using pretty much same approach as it was suggested above > by the other poster. I have list. Well, both Ying and I do it in a way that works, so I'd suggest there's at least *some* difference in our approaches. Without any

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
ces, > but mine, like all other books, have a limited number of pages, and > which information is included/excluded is not always up to the author. > > The reason the docs for checkbox don't address this typical case is > because it has nothing specifically to do with checkboxe

Re: checkbox problem

2010-10-26 Thread Dave Newton
ses a typical pain point. And my book specifically *did* address many types of best practices, but mine, like all other books, have a limited number of pages, and which information is included/excluded is not always up to the author. The reason the docs for checkbox don't address this typic

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
Thanks for your time but what you show me is exactly what I was already doing but inputted changes are NOT being seen in that list when I tried to post it. That was my question or rather problem On Tue, Oct 26, 2010 at 4:32 AM, Li Ying wrote: > My way to solve this kind of problem: > > (1)

Re: checkbox problem

2010-10-26 Thread Peter Bliznak
Listen I googled quite a while before I asked here and all I saw was sea of lost souls asking same question dating back to 2007...but NOT answers...if it is so simple and obvious then why docs for checkbox are not mentioning this trivial case. .. BTW would you please point me to the site where

Re: checkbox problem

2010-10-26 Thread Dave Newton
Oh, I understand. Definitely agree; I think the OP just isn't aware of some S2 functionality and/or best practices, that's all. Dave On Tuesday, October 26, 2010, Li Ying wrote: > I mean: > > Representing associated data by a DTO class and then holding DTO > instances in one List > > is better t

Re: checkbox problem

2010-10-26 Thread Li Ying
I mean: Representing associated data by a DTO class and then holding DTO instances in one List is better than Holding data in several separated Lists each represent one column. 2010/10/26 Dave Newton : > On Tue, Oct 26, 2010 at 4:32 AM, Li Ying wrote: >> I think this is a better design, becau

Re: checkbox problem

2010-10-26 Thread Dave Newton
On Tue, Oct 26, 2010 at 4:32 AM, Li Ying wrote: > I think this is a better design, because the data modal is more > compliant with OO principles. Better than what? (And as an aside, there's nothing particularly OO about what's essentially a struct, although from a pragmatic viewpoint, particularl

Re: checkbox problem

2010-10-26 Thread Li Ying
My way to solve this kind of problem: (1) Use a DTO class as the data modal for columns of each row. Every column is represented by one property of the DTO class. For example: public class Info { private boolean use; private String name; private int id; // getter

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
what it does. I guess no way around > it > > > > PS as for what I checked before - that was lift and wicked..somehow I > found > > it friendlier but hey that might be just my opinion :-) > > > > > > On Mon, Oct 25, 2010 at 10:09 PM, Dave Newton > wrote: >

Re: checkbox problem

2010-10-25 Thread Dave Newton
n Mon, Oct 25, 2010 at 10:09 PM, Dave Newton wrote: > >> Hidden parameters are the only way to get a value for an unchecked >> checkbox, that's just how HTML works. But yes, you're wrong; the >> checkbox interceptor does the work for you. Please read the >> docu

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
nly way to get a value for an unchecked > checkbox, that's just how HTML works. But yes, you're wrong; the > checkbox interceptor does the work for you. Please read the > documentation and just try it. > > Dave > > (Cumbersome? Compared to what?) > > On Monday

Re: checkbox problem

2010-10-25 Thread Dave Newton
Hidden parameters are the only way to get a value for an unchecked checkbox, that's just how HTML works. But yes, you're wrong; the checkbox interceptor does the work for you. Please read the documentation and just try it. Dave (Cumbersome? Compared to what?) On Monday, October 25, 2

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
...I hope I am wrong - sounds very cumbersome for 2010. On Mon, Oct 25, 2010 at 9:39 PM, Dave Newton wrote: > Same way they're generated now, with the checkbox tag, or by hand. Or use a > map. > > And there's no "of course": people use both versions. > > Dave >

Re: checkbox problem

2010-10-25 Thread Dave Newton
Same way they're generated now, with the checkbox tag, or by hand. Or use a map. And there's no "of course": people use both versions. Dave On Monday, October 25, 2010, Peter Bliznak wrote: > Hi Dave, > using S2 of course. > not sure I am getting what you sugge

Re: checkbox problem

2010-10-25 Thread Peter Bliznak
I have a list over which I am iterating - it has checkbox and other > fields. > > I know I can define array associated with checkbox's values but that only > > returns values which were checked. In my other column I have date and I > have > > to make that date

Re: checkbox problem

2010-10-25 Thread Dave Newton
Which version of Struts? Struts 2 uses a hidden field to deal with default (unchecked) values. Struts 1 ActionForms used the reset() method to pre-load default values. Dave On Mon, Oct 25, 2010 at 9:16 PM, Peter Bliznak wrote: > Hi, > I have a list over which I am iterating - it has ch

checkbox problem

2010-10-25 Thread Peter Bliznak
Hi, I have a list over which I am iterating - it has checkbox and other fields. I know I can define array associated with checkbox's values but that only returns values which were checked. In my other column I have date and I have to make that date associated with checkbox's state

DOJO Bind-Tag with Checkbox and Onclick-Event

2010-07-15 Thread Peter Borkowski
Hi all! Im trying to bind an Ajax-Call to the onclick-Event of a Checkbox: Here is the code so fare: ... targets="otherdiv" href="myaction.action" /> ... The AJAX-Call works great. The Action is called and the DIV-Element in the targets-Field is upd

Re: and the CheckBox Interceptor

2010-05-06 Thread Dale Newfield
On 5/6/10 4:15 AM, RogerV wrote: The documentation says that the checkbox interceptor "Looks for a hidden identification field that specifies the original value of the checkbox. If the checkbox isn't submitted, insert it into the parameters as if it was with the value of 'fals

and the CheckBox Interceptor

2010-05-06 Thread RogerV
The documentation says that the checkbox interceptor "Looks for a hidden identification field that specifies the original value of the checkbox. If the checkbox isn't submitted, insert it into the parameters as if it was with the value of 'false'." Should the intercep

struts2 checkbox

2010-04-09 Thread lucas owen
Hi Struts users: I'm working with Struts 2 (v 2.1.6) and I have the following problem: I have a list of notifications, which I display in a table in a jsp: As you can see, each notification has a checkbox: if the user selects a notification, its Id is sent to the action

Re: checkbox array

2010-02-24 Thread lucas owen
I really think this is a bug in Struts 2 checkbox array behaviour! to solve this problem I have created a variable to keep the value of the previous selection. if the actual selection is equals to the previous selection that means the user want to uncheck the checkbox this at least works, and is

Re: checkbox array

2010-02-23 Thread Robert Graf-Waczenski
Post the relevant part of your JSP, please. I know that at least for Struts 2.1.8.1 there is a new MultiselectInterceptor class that would solve your problem for a select with type=multiple. There is a CheckboxInterceptor class as well. Maybe there is none for a checkbox array. Anyway, let us

Re: checkbox array

2010-02-23 Thread Robert Graf-Waczenski
Tatiyana Tarabara schrieb: Voviya, Could you please pick up Nadika from horse riding at 7:30 p.m. today? A ya popletus' v Majer. T. No i won't, sorry. :-) - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For addit

Re: checkbox array

2010-02-23 Thread lucas owen
mmm I'm using Struts 2 (struts2-core-2.1.6) and the last checkbox (of a checkbox array) doesn't get unchecked, as I have previously commented... WHY? It seems it has to be always selected one of the checkboxes at least 2010/2/23 Robert Graf-Waczenski > lucas owen schrieb: > &

Re: checkbox array

2010-02-23 Thread Tatiyana Tarabara
Voviya, Could you please pick up Nadika from horse riding at 7:30 p.m. today? A ya popletus' v Majer. T. Robert Graf-Waczenski wrote: lucas owen schrieb: Hi struts users, I'm working with a checkbox array; the problem is that it doesn't work as a single checkbox: I can'

Re: checkbox array

2010-02-23 Thread Robert Graf-Waczenski
lucas owen schrieb: Hi struts users, I'm working with a checkbox array; the problem is that it doesn't work as a single checkbox: I can't have the checkbox array with all checkboxes unchecked (apart from the beginning) Example: I check checkbox1. I check checkbox2. I uncheck c

checkbox array

2010-02-23 Thread lucas owen
Hi struts users, I'm working with a checkbox array; the problem is that it doesn't work as a single checkbox: I can't have the checkbox array with all checkboxes unchecked (apart from the beginning) Example: I check checkbox1. I check checkbox2. I uncheck checkbox2 --> OK I

RE: checkbox : unchecked elements not in list

2009-12-04 Thread Colin NG
The use "accounts" in s:iterator is wrong. It probably works if you can create something like "new int [7]". > Date: Fri, 4 Dec 2009 12:50:36 -0600 > Subject: Re: checkbox : unchecked elements not in list > From: elephant...@gmail.com > To: user@struts.apache.

RE: checkbox : unchecked elements not in list

2009-12-04 Thread Neil Aggarwal
On my form bean, I have boolean values for each of the checkboxes and set the checkbox to use the field name: When the user submits the form, everything works as expected. Can you do that in your app instead of processing the request params yourself? Neil -- Neil Aggarwal, (281)846-8

Re: checkbox : unchecked elements not in list

2009-12-04 Thread Brian Thompson
> > > > > > > In my action class I have following > > public UpdateAccount account > { >List accountStatus;//list to hold all the checkbox values >List accounts; //list to hold all the accounts values > >// getter setters > >

checkbox : unchecked elements not in list

2009-12-04 Thread akoo
I have following form . In my action class I have following public UpdateAccount account { List accountStatus;//list to hold all the checkbox values List accounts; //list to hold all the accounts values // getter setters public String execute

s2: validation of checkbox a radio button

2009-11-18 Thread Ignacio de Córdoba
Hello, I am trying to use client side validations through ...-validation.xml in struts2 I have it working but only for text and file input fields. I need to validate if a checkbox is checked. using "required" or "requiredstring" validators always validates as the field as

checkbox in table struts 1.2

2009-10-29 Thread fea jabi
I am trying to add checkboxes in table column and unable to do so. need to send a boolean value when the checkbox is checked otherwise false. * Created a bean for each row in the table Have a bean Employee firstName lastname

RE: Setting a checkbox

2009-10-03 Thread Lee Clemens
You may need a getter method isIsChecked() or getIsChecked() -Original Message- From: Dan R. Olsen III [mailto:danec...@gmail.com] Sent: Friday, October 02, 2009 6:19 PM To: Struts Users Mailing List Subject: Setting a checkbox I have the following tag: isChecked is a boolean

Setting a checkbox

2009-10-02 Thread Dan R. Olsen III
I have the following tag: isChecked is a boolean variable that is set in the action. When I put a variable in the name field for a textfield tag it will bring up the value of the variable in the text box. I want the checkbox above to be checked if isChecked is true and not checked if

Re: Checkbox and hidden field

2009-09-04 Thread Chris Pratt
nto your action for you. (*Chris*) On Fri, Sep 4, 2009 at 3:59 PM, Tommy Pham wrote: > - Original Message > > From: pallav_bora > > To: user@struts.apache.org > > Sent: Friday, September 4, 2009 11:16:37 AM > > Subject: Checkbox and hidden field > >

Re: Checkbox and hidden field

2009-09-04 Thread Tommy Pham
- Original Message > From: pallav_bora > To: user@struts.apache.org > Sent: Friday, September 4, 2009 11:16:37 AM > Subject: Checkbox and hidden field > > > Hi I am using Struts 2.1.6 > > I am using simple theme. When I use a checkbox tag , a hidden field is

Checkbox and hidden field

2009-09-04 Thread pallav_bora
Hi I am using Struts 2.1.6 I am using simple theme. When I use a checkbox tag , a hidden field is automatically iserted in the final HTML. Please let me know how to get rid of this hidden field. I have given code sample below: Code in JSP: Code in HTML: Thanks Pallav -- View this

checkbox in an iterator!

2009-07-21 Thread BlackKnight
Hi guys, I have a checkbox in an iterator. However after the validation fail. The value of the varible "test" in the valuestack became "true, ", then after servral fail submit the value of the the varible "test" in the valuestack became "true, true,

Re: Freemarker error generated with CheckBox List

2009-06-22 Thread Zoran Avtarovski
Thanks Martin, The method won’t error out on null values. The first part of the method returns a false if either obj1 or obj2 are null. I’d already isolated the code. The problem I’m having is that the Array containing my checkbox selected values would occasionally contain a null value in the

Freemarker error generated with CheckBox List

2009-06-22 Thread Zoran Avtarovski
I¹m getting a freemarker error when I use a s:checkboxlist tag and the array which contains my item values is empty. When I had a look at the stack trace it¹s pointing me to the following error: Caused by: java.lang.NullPointerException at org.apache.struts2.util.ContainUtil.contains(Con

struts 2: checkbox fieldvalue and value - what's the difference? strange behavior with non boolean values

2009-06-18 Thread Suneel
Hi, I'm trying to understand the different between fieldValue and value attributes of the checkbox tag. I'm asking this because the checkbox is unchecked even though the field associated with it has the same value as the fieldValue. (i.e redemption.countryNotice=="N") B

Re: Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
I think I found the problem. All of my check boxes have the same name. After examining the code in the interceptor: if (key.startsWith("__checkbox_")) { String name = key.substring("__checkbox_".length()); iterator.remove(); // is t

Re: Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
After reading some more documentation I tried : -1 completeDefault is a stack I created which includes the checkbox interceptor. This is still not setting the value in my int array. On Wed, Apr 15, 2009 at 8:29 AM, Richard Sayre wrote: > The Struts 2 docs says

Set Unchecked Value in the Checkbox Interceptor

2009-04-15 Thread Richard Sayre
The Struts 2 docs says the following about the Checkbox Interceptor: setUncheckedValue - The default value of an unchecked box can be overridden by setting the 'uncheckedValue' property. Where in code can I call the setUncheckedValue(String uncheckedValue) from? The problem I am fac

RE: checkbox doubt

2009-01-12 Thread Richa Pandharikar
Declare boolean type of variable in your action class for each of the checkbox. Make sure you have generated the getters/setters. If you have selected the checkbox, framework will set the corresponding var to true and if not it will set it to false. HTH -Original Message- From: m.harig

checkbox doubt

2009-01-12 Thread m.harig
this message in context: http://www.nabble.com/checkbox-doubt-tp21414570p21414570.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional comman

checkbox

2009-01-12 Thread m.harig
geContext.PAGE_SCOPE); am getting the output . but my all my check box has been cheked. am using javascript to uncheck it. is there any option to use checked=false in the multibox tag itself. -- View this message in context: http://www.nabble.com/checkbox-tp21414451p2141445

Re: [Struts2] dynamic checkbox "list"

2008-12-23 Thread norken76
Hello, I have hopefully an answer and a question for you. first the answer : I got the list of checkboxes working by using the "fieldValvue" attribute of > hello, > > I spend a lot of time to make a checkbox list work and try the following : > > 1. with texfield

[OT] Re: [S1] how to get a scrollable checkbox list

2008-11-15 Thread Dave Newton
AFAIK there's no way to get complicated HTML into a standard HTML select box; this doesn't have anything to do with Struts though. You can (somewhat, anyway?) duplicate the effect with a scrollable DIV, although you'd have to handle most of the normal select semantics yourself. I'd be more like

[S1] how to get a scrollable checkbox list

2008-11-15 Thread Lalchandra Rampersaud
hello all, i was wondering if it is possible at all to get checkboxes into a select in struts... any help would be appreciated. here is a sample code that i used although it did not work the way i wanted it to. the checkboxes are being placed outside of the select component. dada

Re: s2 Checkbox problem

2008-10-22 Thread Mead Lai
t;[EMAIL PROTECTED]> wrote: > I have a checkbox in jsp: > > , > after html rendering it is shown as name="user.contactConfidential" value="Y" > id="user.contactConfidential"/>, that is good. > > But once a user selects the checkbox and su

s2 Checkbox problem

2008-10-22 Thread Harden ZHU
I have a checkbox in jsp: , after html rendering it is shown as , that is good. But once a user selects the checkbox and submits the form, user.contactConfidential is set to true. However, on the database side the value should be stored as 'Y' or 'N'. Is there a

Re: [S2] Checkbox problem

2008-08-20 Thread Felipe Lorenz
oolean type (true/false).. Or Good luke. On Wed, Aug 20, 2008 at 5:02 PM, Struts Two <[EMAIL PROTECTED]> wrote: > I have a checkbox as follows in a jsp: > id="ticket.ccUpdateFlag" /> > Once a user selects the checkbox and submits the form, ccUpdateFlag is set &g

[S2] Checkbox problem

2008-08-20 Thread Struts Two
I have a checkbox as follows in a jsp: Once a user selects the checkbox and submits the form,  ccUpdateFlag is set to true. However, on the database side the value is stored as 'Y' or 'N' . So my getCcUpdateFlag returns 'Y' or 'N' depending on the fact cc

RE: problem with checkbox

2008-08-18 Thread Muralidhar Y
this message. -Original Message- From: Dave Newton [mailto:[EMAIL PROTECTED] Sent: Monday, August 18, 2008 4:08 PM To: Struts Users Mailing List Subject: Re: problem with checkbox --- On Mon, 8/18/08, Muralidhar Y wrote: > Hi , when I typed the c

Re: problem with checkbox

2008-08-18 Thread Dave Newton
--- On Mon, 8/18/08, Muralidhar Y wrote: > Hi , when I typed the code in my jsp like the following > > value="one" /> > > In the html file the following code is being shown. By > default the attribute value is being true. Instead I want > to give some other value. Kindly help. >

problem with checkbox

2008-08-18 Thread Muralidhar Y
Hi , when I typed the code in my jsp like the following In the html file the following code is being shown. By default the attribute value is being true. Instead I want to give some other value. Kindly help. Warm regards, Muralidhar Y [EMAIL PROTECTED] US Main: 877 KENSIUM (536

Re: [s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Kevin Wade
I can't quite get it to work: the proper ognl expression to use to get the value of a checkbox w/in nested iterator tags. I've got an ArrayList of Parent objects called parentList. Each Parent object contains another array of Child objects called childList. A Child object h

Re: [s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Kevin Wade
you write a getSelected() getter? or is it an isSelected() getter? 2008/8/7, Kevin Wade <[EMAIL PROTECTED]>: This is probably simple and I think I'm close, but I can't quite get it to work: the proper ognl expression to use to get the value of a checkbox w/in nested iterator ta

Re: [s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Gabriel Belingueres
work: the proper ognl expression to use to get the value of a checkbox w/in > nested iterator tags. > > I've got an ArrayList of Parent objects called parentList. Each Parent > object contains another array of Child objects called childList. A Child > object has an boolean

[s2] getting checkbox values in nested iterator tags

2008-08-07 Thread Kevin Wade
This is probably simple and I think I'm close, but I can't quite get it to work: the proper ognl expression to use to get the value of a checkbox w/in nested iterator tags. I've got an ArrayList of Parent objects called parentList. Each Parent object contains another

Re: Checkbox List Problem...

2008-07-17 Thread Narayana S
Hi, Please discard this email. as my action mapping is wrong it is behaving like this, now i could fix the issue. Sorry. On Thu, Jul 17, 2008 at 4:03 PM, Narayana S <[EMAIL PROTECTED]> wrote: > Hi, > > In my form I have employee number, name, and roles, here employee > number and name are

Checkbox List Problem...

2008-07-17 Thread Narayana S
Hi, In my form I have employee number, name, and roles, here employee number and name are text fields and roles is a checkboxlist, to generate the list boxes i had a map called rolesMap in my action class, as well i have a set called userRoles that specifies the items to be selected. *jsp*

Re: problem with checkbox (when using disabled property)

2008-07-13 Thread ravi_eze
yes it doesnt. Atleast in version 2.0.9. i heard its fixed in 2.1 version. you can write a reset interceptor also for this. i.e. always (before param interceptor) reset the checkbox field. If there is some checkbox getting submitted then you will get them, else the field would be reset by the

Re: problem with checkbox (when using disabled property)

2008-07-10 Thread Owen Berry
b. > > Best greetings, > Paweł Wielgus. > > On 10/07/2008, Dave Newton <[EMAIL PROTECTED]> wrote: >> --- On Wed, 7/9/08, Owen Berry <[EMAIL PROTECTED]> wrote: >> > You need to have a hidden field value that will take the >> > place of the disa

Re: problem with checkbox (when using disabled property)

2008-07-10 Thread Paweł Wielgus
ue that will take the > > place of the disabled checkbox as some browsers do not > > send disabled field values. > > > The tag already includes the hidden field; I don't know what > it does for disabled checkboxes, though. The checkbox interceptor *should*

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Dave Newton
--- On Wed, 7/9/08, Owen Berry <[EMAIL PROTECTED]> wrote: > You need to have a hidden field value that will take the > place of the disabled checkbox as some browsers do not > send disabled field values. The tag already includes the hidden field; I don't know what

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Owen Berry
You need to have a hidden field value that will take the place of the disabled checkbox as some browsers do not send disabled field values. Basically, it's just for display. On Wed, Jul 9, 2008 at 2:29 PM, Lukasz Lenart <[EMAIL PROTECTED]> wrote: > Did you try with some others bro

Re: problem with checkbox (when using disabled property)

2008-07-09 Thread Lukasz Lenart
Did you try with some others browsers, like IE, FF? Regards -- Lukasz http://www.lenart.org.pl/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

problem with checkbox (when using disabled property)

2008-07-09 Thread akash agrawal
Hi, Using struts tag for a checkbox. I disable my checkbox using disabled property so that user cannot change it. When the form is submitted, the value of the checkbox passed to the action comes out as false, even if the checkbox was selected (true). The weird thing is if I remove the

Re: struts2 & displayTag how to use checkBox; Problem: translating the fieldValue

2008-04-30 Thread xianwinwin
Thanks Oscar, I did check on the displayTag (since yesterday)so, I understand that I need to have something like this: and the checkBox: but: '%{myid[current]}' doesn't work. this works: '%{myid[0]}' '%{myid[1]}' &#x

  1   2   3   4   5   >