Re: Stuts2 field validation problems

2009-05-29 Thread rakeshp
://www.innovated.dk www.innovated.dk > > ----- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > > -- View this message in context: ht

Re: Struts 2 Portlet Validation Problems

2009-02-10 Thread Greg Lindholm
completely unintentional side effect." > -- Linus Torvalds > > > -- View this message in context: http://www.nabble.com/Struts-2-Portlet-Validation-Problems-tp21917888p21939287.html Sent from the Struts - User mailing list archive at Nabble.com. -

Re: Struts 2 Portlet Validation Problems

2009-02-10 Thread Musachy Barroso
Here is the ticket Nils: https://issues.apache.org/struts/browse/WW-2987 musachy On Tue, Feb 10, 2009 at 12:24 AM, Torsten Krah wrote: > Am Montag, 9. Februar 2009 21:48:33 schrieb Nils-Helge Garli Hegvik: >> This should be handled by the default portlet interceptor stack. If it >> doesn't, it'

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Torsten Krah
Am Montag, 9. Februar 2009 21:48:33 schrieb Nils-Helge Garli Hegvik: > This should be handled by the default portlet interceptor stack. If it > doesn't, it's a bug... Its a bug i guess, i need to use a Message Store Interceptor too, because using PRG in portlets i lost my messages and errors alwa

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
No problem, will do - in the morning! Thanks. -Original Message- From: Musachy Barroso [mailto:musa...@gmail.com] Sent: 09 February 2009 20:51 To: Struts Users Mailing List Subject: Re: Struts 2 Portlet Validation Problems You can reopen the one I closed, and add any extra info you

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Musachy Barroso
I also added a ${title}, for each relevant >> param, to the input redirectAction to ensure the user's input was not >> lost during the failed validation redirect. >> >> -Original Message- >> From: Dean Pullen [mailto:dean.pul...@msp-uk.com] >> Sent:

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
n Pullen [mailto:dean.pul...@msp-uk.com] > Sent: 09 February 2009 19:31 > To: Struts Users Mailing List > Subject: RE: Struts 2 Portlet Validation Problems > > I've tried, and reverted back for now, to using the > MessageStoreInterceptor with no success, the messages

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
>> result will 'lose' the messages during the dispatch. >> >> Dean. >> >> -Original Message- >> From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] >> Sent: 09 February 2009 18:07 >> To: Struts Users Mailing List >> Subjec

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
ge- From: Dean Pullen [mailto:dean.pul...@msp-uk.com] Sent: 09 February 2009 19:31 To: Struts Users Mailing List Subject: RE: Struts 2 Portlet Validation Problems I've tried, and reverted back for now, to using the MessageStoreInterceptor with no success, the messages are still los

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
hy Barroso [mailto:musa...@gmail.com] Sent: 09 February 2009 19:19 To: Struts Users Mailing List Subject: Re: Struts 2 Portlet Validation Problems Messages will be lost if a redirectAction is used, unless the MessageStoreInterceptor is used, or is that different in portlets Nils? musachy On Mon, Feb 9, 20

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Musachy Barroso
7 > To: Struts Users Mailing List > Subject: Re: Struts 2 Portlet Validation Problems > > Yeah, you're right... It's not using annotations. Have you tried with > xml validation? It's not a solution, but at least it will narrow down > the problem. > > Nils-H >

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
mailto:nil...@gmail.com] Sent: 09 February 2009 18:07 To: Struts Users Mailing List Subject: Re: Struts 2 Portlet Validation Problems Yeah, you're right... It's not using annotations. Have you tried with xml validation? It's not a solution, but at least it will narrow down the proble

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
rtlet Validation Problems Yeah, you're right... It's not using annotations. Have you tried with xml validation? It's not a solution, but at least it will narrow down the problem. Nils-H On Mon, Feb 9, 2009 at 7:00 PM, Dean Pullen wrote: > Nils-H, > > Thanks for the reply. >

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
> > -Original Message- > From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] > Sent: 09 February 2009 17:57 > To: Struts Users Mailing List > Subject: Re: Struts 2 Portlet Validation Problems > > Have you tried installing the portlet sample app? I believe there are >

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
P result. Dean. -Original Message- From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com] Sent: 09 February 2009 17:57 To: Struts Users Mailing List Subject: Re: Struts 2 Portlet Validation Problems Have you tried installing the portlet sample app? I believe there are a couple of validation

Re: Struts 2 Portlet Validation Problems

2009-02-09 Thread Nils-Helge Garli Hegvik
Have you tried installing the portlet sample app? I believe there are a couple of validation scenarios there. As far as I know, it should work. You shouldn't even need the MessageStoreInterceptor, since the portlet default stack should handle preserving messages across redirects. Nils-H On Mon, F

Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
Hi all, We've been trying to get validation (using annotations) working within a Struts Portlet for a couple of days - without success, when the input is a redirectAction. When the input result is a JSP, it works fine. We're using the messageStoreInterceptor. We're using JBoss Portal 2.7.1

Re: Stuts2 field validation problems

2009-01-16 Thread stanlick
t;) >> @RequiredFieldValidator(message = "Some error text", shortCircuit=true) >> >> and that is the same, get both errors.. >> >> I don't have any idea what to do, maybe I have misunderstood the >> Struts2 validation c

Re: Stuts2 field validation problems

2009-01-11 Thread Dave Newton
Conversion errors are added to the list of field errors by the "conversionError" interceptor. Personally, I almost always remove the "conversionError" as the conversion error messages aren't necessarily helpful, and are sometimes redundant--your mileage may vary. But that's why you get both

Stuts2 field validation problems

2009-01-11 Thread Robert Stenholt Mygind
Hi All I have some problems with field validation in Struts2, I am not the most experienced in Struts2. I have a form looking something like this: .. In my acrion class I have something looking like: @RequiredFieldValidator(message = "Some error text", shortCircuit=true) public In

XHTML Form validation problems... for ever!

2008-01-05 Thread Manos Batsis
I'm using commons-validator 1.3.1 with Struts 1.3.8 and 1.3.9. In short, the jcv_retrieveFormName function returns nothing, so other functions that try to use it end up with errors looking up for variables (well functions) like "_required" when they should look for formnameOrId_required. I'v

Struts 2 + Xwork validation problems

2007-07-18 Thread Art Krahenbuhl
il.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221) -- View this message in context: http://www.nabble.com/Struts-2-%2B-Xwork-validation-problems-tf4104770.html#a11673570 Sent from the Struts - User

RE: Struts Validation Problems

2007-04-24 Thread Raghupathy, Gurumoorthy
lto:[EMAIL PROTECTED] Sent: 23 April 2007 13:17 To: user@struts.apache.org Subject: Struts Validation Problems Hi, I have some problems with using the following regular expression in the validation f

Struts Validation Problems

2007-04-23 Thread Ferruh Zamangör
Hi, I have some problems with using the following regular expression in the validation framework from Struts. mask ^\w{2}-\w{6}(-\w{2

Re: Two Struts validation problems

2007-03-04 Thread Oren Livne
Oren Livne wrote: P.S. An important fact I forgot to mention: my VO is persisted to a database using Hibernate. Hibernate wraps this object with its own type. Is it possible that the type conversion (String -> int) is not working properly because Hibernate's wrapper gets in the way? I did a si

Re: Two Struts validation problems

2007-03-03 Thread Martin Gainty
l" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" Sent: Saturday, March 03, 2007 6:50 PM Subject: Re: Two Struts validation problems > Chris is right, the zero occurs in the java.lang.Integer(String) > constructor when it is passed a non-numeric string value. You

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
P.S. An important fact I forgot to mention: my VO is persisted to a database using Hibernate. Hibernate wraps this object with its own type. Is it possible that the type conversion (String -> int) is not working properly because Hibernate's wrapper gets in the way? I did a simple test of copying

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear Laurie & Christopher: Great! Thanks. I'm using Strings now in my form. But as I wrote to Ed, suppose I validated the form and would like to copy all properties to a VO (value object) / DTO with one call (e.g. copyProperties()). How do I get it to automatically convert my form String prope

Re: Two Struts validation problems

2007-03-03 Thread Laurie Harper
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: Dear Chris: Yes, other validations are working. For instance, I also have an "intRange" validation on the same integer field. If I type a letter for the integer field, it sets it to 0, displays it

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear Ed: Thanks so much for your response (all other that replied -- thanks so much as well!). For now, I would like to stick to the first solution: ActionForm with String properties. I already have VOs and don't mind copying over from the form to the VO and back. My last question on this issu

Re: Two Struts validation problems

2007-03-03 Thread Ed Griebel
Chris is right, the zero occurs in the java.lang.Integer(String) constructor when it is passed a non-numeric string value. You would see this happen in your ActionForm and action class if you weren't using the validator. The same thing happens with a non-numeric in a java.lang.Double(String) const

Re: Two Struts validation problems

2007-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: > Dear Chris: > Yes, other validations are working. For instance, I also have an > "intRange" validation on the same integer field. If I type a letter for > the integer field, it sets it to 0, displays it as 0, and says it's >

Re: Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear Chris: Yes, other validations are working. For instance, I also have an "intRange" validation on the same integer field. If I type a letter for the integer field, it sets it to 0, displays it as 0, and says it's outside the permissible range (which happens to be 1-4). No errors on startup

Re: Two Struts validation problems

2007-03-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Oren, Oren Livne wrote: > 1) I have a form property that is an integer. When I set its validation > rule to "integer", it has no effect. [snip] > 2) A "validwhen" test condition seems to be ignored: Are other validations working? It's possible that

Two Struts validation problems

2007-03-03 Thread Oren Livne
Dear All: I have two problems with Validator. I'm using Struts 1.3.5, Tomcat 6.0.9 and Java 1.6: 1) I have a form property that is an integer. When I set its validation rule to "integer", it has no effect. - The form field is populated with a zero value even if a letter is typed in the form i

RE: Validation problems: again...

2006-07-04 Thread David Friedman
) Regards, David -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 1:06 PM To: Struts Users Mailing List Subject: Re: Validation problems: again... yes both of em, I've post a pice of the config file ;) yes either, both has valid

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
e- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 12:34 PM To: Struts Users Mailing List Subject: Re: Validation problems: again... Hum, how could the one of them being validated them? If both extend ActionForm? I gave up from validation plugin, I'm writing my

RE: Validation problems: again...

2006-07-04 Thread David Friedman
your log files that might shed some light on this? Regards, David -Original Message- From: Vinicius Carvalho [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 04, 2006 12:34 PM To: Struts Users Mailing List Subject: Re: Validation problems: again... Hum, how could the one of them being val

Re: Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
Hum, how could the one of them being validated them? If both extend ActionForm? I gave up from validation plugin, I'm writing my own validate method, isn't validate called even from ActionForm subclasses? Regards On 7/4/06, Paul Benedict <[EMAIL PROTECTED]> wrote: You write: >>Can someone expl

Re: Validation problems: again...

2006-07-04 Thread Paul Benedict
You write: >>Can someone explain me this? Both form extend ActionForm and both actions >>extend a common action. Vinicius, I think you need to refer to my previous email: ActionForm does not validate. You need to extend from ValidatorActionForm or ValidatorForm. The first valdiates based on

Validation problems: again...

2006-07-04 Thread Vinicius Carvalho
Well, I've just quit the validation on strtuts (based on commons-validator). So I've decided to use dumb manual validation. Well problem is, I still can't get one of my forms to validate! Here´ my struts-config:

Re: Validation Problems

2006-05-07 Thread Richard Yee
Sandeep, You can do complex validations in your ActionForm validate method. You can also still invoke Validator validations by calling super.validate() in your validation method if you are extending |org.apache.struts.validator.action.ValidatorForm I have found that there are many situations

Validation Problems

2006-05-07 Thread Sandeep Dhanuka
Hi Everyone, I am using struts validatior to valiate my form on JSP and dont want to take validation to my Action class. I have a check box and a text box on my JSP. I want to validate text box to have 19 characters when check box is not checked and 17 characters when checkbox is checked. How s

validation problems

2006-05-06 Thread Sandeep Dhanuka
Hi Everyone, I am using struts validatior to valiate my form on JSP and dont want to take validation to my Action class. I have a check box and a text box on my JSP. I want to validate text box to have 19 characters when check box is not checked and 17 characters when checkbox is checked. How s

Re: Validation problems

2006-01-28 Thread Debendra Barik
Hello, I don't know what exactly you are doing, whre you are calling the validation condition. But still i have a copule of alternative for you, just try. Hope your problem will be solved. Because i had same problem and i solved that by applying this teh. Solution: Step1. Your actio

Re: Validation problems

2006-01-27 Thread Daniel Kies
Niall: I took your recommendation and removed the action chaning from my struts config. I am still not seeing any error text. Here is my new action mapping: On 1/27/06, Niall Pemberton <[EMAIL PROTECTED]> wrote

Re: Validation problems

2006-01-27 Thread Niall Pemberton
On 1/26/06, Daniel Kies <[EMAIL PROTECTED]> wrote: > Hello. I am trying to do some standard validations, but I am failing. Any > ideas why? I know the errors are getting raised as the request is > forwarding back to the initial page making the request, but the error > messages are not showing on

Re: Validation problems

2006-01-26 Thread Daniel Kies
t; > Tom > > > > > > Daniel Kies <[EMAIL PROTECTED]> > 01/26/2006 04:07 PM > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > cc > > Subject > Validation problems > > > > > >

Re: Validation problems

2006-01-26 Thread Thomas Garben
Dan, Should you be using" Tom Daniel Kies <[EMAIL PROTECTED]> 01/26/2006 04:07 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Validation problems Hello. I am trying to do some standard validations, but I am faili

Validation problems

2006-01-26 Thread Daniel Kies
Hello. I am trying to do some standard validations, but I am failing. Any ideas why? I know the errors are getting raised as the request is forwarding back to the initial page making the request, but the error messages are not showing on the page. Any help is appreciated! Struts config DynaActi

RE: Validation Problems

2005-04-19 Thread Folashade Adeyosoye
, April 19, 2005 10:58 AM To: user@struts.apache.org Subject: Re: Validation Problems Thanks for the speedy reply, My time is limited to solve this particular problem, but I'll definitely look into using DynaValidatorActionForm. I do have another question though, why would not

Re: Validation Problems

2005-04-19 Thread Andrew Thorell
Thanks for the speedy reply, My time is limited to solve this particular problem, but I'll definitely look into using DynaValidatorActionForm. I do have another question though, why would not using DynaValidatorActionForm prevent my code from display the error back to the jsp? Is there a limitatio

RE: Validation Problems

2005-04-19 Thread Folashade Adeyosoye
Try using DynaValidatorActionForm... -Original Message- From: Andrew Thorell [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 19, 2005 10:44 AM To: Struts Mailing List Subject: Validation Problems Hey all, I've been trying for some time now to figure out what my problem is wi

Validation Problems

2005-04-19 Thread Andrew Thorell
Hey all, I've been trying for some time now to figure out what my problem is with my Validations not displaying error messages back to the page from where the request came from. It's a simple login page which pretty much follows Ted's Struts in Action example. I'm using a Form which extends Valid