Re: Required validator dosen't work

2008-01-07 Thread Arpan Debroy
But when type conversion error will be occurred, I want to display my custom error message instead of the auto generated one. So how to do that. On Dec 14, 2007 11:18 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Arpan Debroy <[EMAIL PROTECTED]> wrote: > > Using 'Long' is the correct way to g

Re: Required validator dosen't work

2007-12-14 Thread Dave Newton
--- Arpan Debroy <[EMAIL PROTECTED]> wrote: > Using 'Long' is the correct way to get 'required' validator worked. > But now I want show error message when user will put string or character > instead of any long value. What validator to use? If you're using the defaultStack this is done for you; ty

Re: Required validator dosen't work

2007-12-14 Thread Alberto A. Flores
[EMAIL PROTECTED]> wrote: Use "required" validator only when a field contains a number. Use requiredstring for String based field. -Original Message- From: Arpan Debroy [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 11:00 AM To: Struts Users Mailing Lis

Re: Required validator dosen't work

2007-12-14 Thread Arpan Debroy
; >> requiredstring for String based field. > >> > >> -Original Message- > >> From: Arpan Debroy [mailto:[EMAIL PROTECTED] > >> Sent: Monday, December 10, 2007 11:00 AM > >> To: Struts Users Mailing List > >> Subject: Re: Required val

Re: Required validator dosen't work

2007-12-11 Thread Laurie Harper
r 10, 2007 11:00 AM To: Struts Users Mailing List Subject: Re: Required validator dosen't work Yeah, I am using following - Other validators are working. Anyway have anyone ever used "required" validator or can you use it now once to test. Thanks On Dec 10, 2007 5:26 PM, Simon Be

RE: Required validator dosen't work

2007-12-10 Thread Jiang, Jane (NIH/NCI) [C]
ember 10, 2007 2:33 PM To: Struts Users Mailing List Subject: Re: Required validator dosen't work Right, if my text box is empty, I am getting back 0 allways. Have u any idea, how to validate empty "long" data type value. On Dec 11, 2007 12:51 AM, Dave Newton <[EMAIL PROTECTED]>

Re: Required validator dosen't work

2007-12-10 Thread Arpan Debroy
Right, if my text box is empty, I am getting back 0 allways. Have u any idea, how to validate empty "long" data type value. On Dec 11, 2007 12:51 AM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Arpan Debroy <[EMAIL PROTECTED]> wrote: > > So that means there is now way I can check if > > a text b

Re: Required validator dosen't work

2007-12-10 Thread Dave Newton
--- Arpan Debroy <[EMAIL PROTECTED]> wrote: > So that means there is now way I can check if > a text box, which takes the datatype "long", have > any null value. For *null*? A text box in the browser will never* send back a null to the server, AFAIK. IIRC in Java converting an empty string into a

Re: Required validator dosen't work

2007-12-10 Thread Arpan Debroy
So that means there is now way I can check if a text box, which takes the datatype "long", have any null value. On Dec 10, 2007 11:40 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > --- Arpan Debroy <[EMAIL PROTECTED]> wrote: > > Then when you will use "required" validator. What's its use? > > Anyth

Re: Required validator dosen't work

2007-12-10 Thread Dave Newton
--- Arpan Debroy <[EMAIL PROTECTED]> wrote: > Then when you will use "required" validator. What's its use? Anything that can return null, like a checkbox, I suppose. Yes, I've used it, but not for numbers, because an empty text box doesn't return null, like I said. > How to validate the text box,

Re: Required validator dosen't work

2007-12-10 Thread Arpan Debroy
er. Use > requiredstring for String based field. > > -Original Message- > From: Arpan Debroy [mailto:[EMAIL PROTECTED] > Sent: Monday, December 10, 2007 11:00 AM > To: Struts Users Mailing List > Subject: Re: Required validator dosen't work > > Yeah, > I am usin

Re: Required validator dosen't work

2007-12-10 Thread Arpan Debroy
Then when you will use "required" validator. What's its use? Have you ever used it. How to validate the text box,which should carry numbers? On Dec 10, 2007 10:40 PM, Dave Newton <[EMAIL PROTECTED]> wrote: > AFAIK the "required" validator only checks for not-null. > > This is almost never what you

RE: Required validator dosen't work

2007-12-10 Thread Jiang, Jane (NIH/NCI) [C]
Use "required" validator only when a field contains a number. Use requiredstring for String based field. -Original Message- From: Arpan Debroy [mailto:[EMAIL PROTECTED] Sent: Monday, December 10, 2007 11:00 AM To: Struts Users Mailing List Subject: Re: Required validator do

Re: Required validator dosen't work

2007-12-10 Thread Dave Newton
AFAIK the "required" validator only checks for not-null. This is almost never what you want, as an empty text box will still send back an empty string, not null. d. --- Arpan Debroy <[EMAIL PROTECTED]> wrote: > Yeah, > I am using following - > > > Other validators are working. > Anyway have a

Re: Required validator dosen't work

2007-12-10 Thread Arpan Debroy
Yeah, I am using following - Other validators are working. Anyway have anyone ever used "required" validator or can you use it now once to test. Thanks On Dec 10, 2007 5:26 PM, Simon Berger <[EMAIL PROTECTED]> wrote: > Do you have the Validation Interceptor on your Stack? > > Arpan Debroy schr

Re: Required validator dosen't work

2007-12-10 Thread Simon Berger
Do you have the Validation Interceptor on your Stack? Arpan Debroy schrieb: I want to validate - 1) The text box should have some value("required" validator doesn't show any error message even if it's empty).. 2) The text box must have any numerical(I am using long data type) value. I have no c

Re: Required validator dosen't work

2007-12-09 Thread Arpan Debroy
I want to validate - 1) The text box should have some value("required" validator doesn't show any error message even if it's empty).. 2) The text box must have any numerical(I am using long data type) value. I have no clue how to do it for long. Can anyone please help.. Thanks On Dec 6, 2007

Re: Required validator dosen't work

2007-12-07 Thread Arpan Debroy
The "symptom" of the problem is that "required" validator does not work at all. What a "required" validator should do? If I don't put any value in the text box, it should throw an error message. The "required" validator doesn't work for any type of value. Can anybody use this validator successfully

Re: Required validator dosen't work

2007-12-07 Thread Gary Affonso
Thanks for the code. Still nothing obvious (at least to me). What exactly is the *symptom* of the problem? What behavior are you seeing but not expecting? - Gary xniit2003 wrote: Here's my code :- in struts.xml file :- name="input">/channels/channel_gro

Re: Required validator dosen't work

2007-12-07 Thread xniit2003
Here's my code :- in struts.xml file :- /channels/channel_group_profile.jsp /channels/channel_group_profile.jsp in jsp :- in validation xml :- app id should not be null Here "channelGroupTO" is a tr

Re: Required validator dosen't work

2007-12-05 Thread Gary Affonso
xniit2003 wrote: Have anybody successfully used "required" validator. Yes. One thing to note about validation is that it *won't* automatically short-circuit if you're not using the workflow interceptor. Without that interceptor validation can fail and your action's execute method will stil

Re: Required validator dosen't work

2007-12-05 Thread Dave Newton
--- xniit2003 <[EMAIL PROTECTED]> wrote: > I am trying to use "required" validator in struts2. > But it seems this one dosen't work at all. > Have anybody successfully used "required" validator. What data type are you attempting to validate? d. -