Re: Action validation is being performed when it shouldn't

2011-04-30 Thread Alex Barnes
In case anyone is curious this has been solved by removing @Transactional annotations from all action class methods and moving them on to the methods on the DAOs. The presence of the annotation on the action class was resulting in a JDKDynamicProxy object being passed to the AnnotationValidationIn

Re: Action validation is being performed when it shouldn't

2011-04-29 Thread Alex Barnes
Chris, Thanks for the reply. I think this is the ValidationInterceptor rather than the workflow interceptor. The stack trace is as follows: ava.lang.NullPointerException com.devcentre.yubi.application.action.NewSupplierAction.validate(NewSupplierAction.java:49) sun.reflect.NativeMethodA

Re: Action validation is being performed when it shouldn't

2011-04-29 Thread Chris Pratt
I don't use the those annotations, but from what I can tell, it only affects the XML validation (validation interceptor) not the programmatic validation (workflow interceptor). You can switch from execute to one of the unvalidated method names (I think input, cancel, and two others I can't think o

Action validation is being performed when it shouldn't

2011-04-29 Thread Alex Barnes
Hi all, I am having a few issues with some code which worked a few days ago but has stopped working for some reason. I have no idea what has changed to cause this but here are the symptoms. I have an action class called NewSupplierAction which extends ActionSupport and overrides the validate m

Re: Form validation: how can khow in jsp that my action validation failed?

2009-02-27 Thread hernan gonzalez
at 3:25 PM, boraldo wrote: > > I need output special info in JSP if validation failed. How can I do it? > ActionSupport has method hasActionErrors. I need smth like that for JSP. > -- > View this message in context: > http://www.nabble.com/Form-validation%3A-how-can-khow-in-

Form validation: how can khow in jsp that my action validation failed?

2009-02-27 Thread boraldo
I need output special info in JSP if validation failed. How can I do it? ActionSupport has method hasActionErrors. I need smth like that for JSP. -- View this message in context: http://www.nabble.com/Form-validation%3A-how-can-khow-in-jsp-that-my-action-validation-failed--tp22250234p22250234

Testing action validation in Struts 2.1.6

2009-01-27 Thread Joink
We have been unit testing our actions using a ActionValidatorManager. But in 2.1.6 the ActionValidatorManagerFactory has been removed. According to the docs this is still the way to test the action validation, but I guess they are just outdated: http://struts.apache.org/2.1.6/docs/how-do-i-unit

Re: Action Validation with Slashes

2008-05-16 Thread Jeromy Evans
Yellek wrote: should I be raising a Jira issue for this? Hi Peter, yes, it's would be helpful to raise an issue for it. In this case the ActionMapper knows about the allowSlashesInActionName setting but the XWork Validation doesn't know. --

Action Validation with Slashes

2008-05-14 Thread Yellek
_SUFFIX; and String fileName = aClass.getName().replace('.', '/') + VALIDATION_CONFIG_SUFFIX; should I be raising a Jira issue for this? Peter Kelley Fujitsu Australia Limited -- View this message in context: http://www.nabble.com/Action-Validation-with-Slashes-tp17245638p1724

Re: Action Validation

2008-01-13 Thread Cheng Wei Lee
I didn't really make use of maven, instead, I imported the struts-blank war file into Eclipse which would create a project for me automatically. That way I can see where to place the XML files. On Jan 13, 2008 7:53 PM, Gaurav Arora <[EMAIL PROTECTED]> wrote: > Hi list, > I am new to Struts an

Re: Action Validation

2008-01-13 Thread Gaurav Arora
Thanks for the reply Max. I decided to go with Maven to start Struts apps since that seemed to be the most widely practiced way. Didn't realise that Maven was excluding the XML files from the build. Works perfectly after the resource is included in the build. Thanks once again. On Jan 13, 2008 6:

Re: Action Validation

2008-01-13 Thread Max Shirow
Gaurav Arora wrote: I have an action named GuestBookAction and it's validation file named GuestBookAction-validation.xml, where should the validation xml be placed in the application hierarchy? It's fine if you put it exactly besides the java source file of your action; for example src

Action Validation

2008-01-13 Thread Gaurav Arora
Hi list, I am new to Struts and started off with a few examples I found on the web. However, I just can't figure out how to validate input in the jsp pages. I have an action named GuestBookAction and it's validation file named GuestBookAction-validation.xml, where should the validation xml be

Re: S2 Action Validation

2007-04-13 Thread Laurie Harper
Yup :-) James Mitchell wrote: IIRC, 'Laurie' is short for Lawrence (not a girl) :D -- James Mitchell On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I gue

Re: S2 Action Validation

2007-04-12 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Laurie -- > Thanks girl. Ouch. > I guess I'm just going to have to bite the bullet and > consider the theme modifications another step. I > guess it's not a problem with new releases overlaying > these modified files? What do you mean by that? The distro files ar

Re: S2 Action Validation

2007-04-12 Thread James Mitchell
IIRC, 'Laurie' is short for Lawrence (not a girl) :D -- James Mitchell On Apr 12, 2007, at 5:07 PM, [EMAIL PROTECTED] wrote: Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with ne

Re: S2 Action Validation

2007-04-12 Thread stanlick
Laurie -- Thanks girl. I guess I'm just going to have to bite the bullet and consider the theme modifications another step. I guess it's not a problem with new releases overlaying these modified files? Scott On 4/11/07, Laurie Harper <[EMAIL PROTECTED]> wrote: I think labelPosition will onl

Re: S2 Action Validation

2007-04-11 Thread Dave Newton
--- Laurie Harper <[EMAIL PROTECTED]> wrote: > I think labelPosition will only affect the field > label, not the error message placement. D'oh, yeah, that's right; my bad. d. Bored stiff? Loosen up...

Re: S2 Action Validation

2007-04-11 Thread Laurie Harper
I think labelPosition will only affect the field label, not the error message placement. You'll probably have to go with customizing the theme for that. L. [EMAIL PROTECTED] wrote: I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them all

Re: S2 Action Validation

2007-04-10 Thread stanlick
I can't get labelposition or requiredposition to do anything! top/bottom/right/left/*random* -- I tried them all. On 4/10/07, Dave Newton <[EMAIL PROTECTED]> wrote: --- [EMAIL PROTECTED] wrote: > addFieldError("course.text"... > I really do not like placing a jsp field > name name in Java sourc

Re: S2 Action Validation

2007-04-10 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > addFieldError("course.text"... > I really do not like placing a jsp field > name name in Java source code, but I could > not find another way to correlate the > message to the field. No, I think that's how it works. Technically you already have the field name in th

Re: S2 Action Validation

2007-04-10 Thread stanlick
How will S2 know which field the message is associated with? I was able to get this to work last night, but I would like to get your feedback as to whether or not it was an end around solution: addFieldError("course.text", getText("label.duplicate")); I really do not like placing a j

Re: S2 Action Validation

2007-04-10 Thread Antony Stubbs
-- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/S2-Action-Validation-tf3549366.html#a9917015 Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: S2 Action Validation

2007-04-09 Thread Dave Newton
--- [EMAIL PROTECTED] wrote: > Beyond this, how do I get an S2 action class to > display a message on the web page? See http://struts.apache.org/2.x/struts2-core/apidocs/com/opensymphony/xwork2/ActionSupport.html#addActionMessage(java.lang.String) It takes a String, I18N provided by ActionSupp

Re: S2 Action Validation

2007-04-09 Thread Harring Figueiredo
Hi Scott: All you have to do is: YouAction{ public String your_execute_method() { If(some error){ / * Chose what is appropriate for you - Field errors display the message on top of the field on HTML page*/ this.addActionError(); this.addActionMessage() this.addFieldError(); retu

S2 Action Validation

2007-04-09 Thread stanlick
I have a situation where an attempt could be made to enter a description for an item that already exists in the database. I am using Hibernate and suspect the easiest way to prevent this is to use HQL prior to my save. Beyond this, how do I get an S2 action class to display a message on the web p

RE: Action validation settings with dispatch actions

2004-11-08 Thread Kinjal Sonpal
AIL PROTECTED] > Sent: Monday, November 08, 2004 9:26 PM > To: Struts Users Mailing List > Subject: Action validation settings with dispatch actions > > > In my project I group the CRUD actions for a table into a single > dispatch action class. > > I've found that som

Action validation settings with dispatch actions

2004-11-08 Thread Lee Harrington
In my project I group the CRUD actions for a table into a single dispatch action class. I've found that sometimes I want the form validate to occur, sometimes I don't. To accomodate this, I always have to have two instances of my action mappings, one with validate set to true, the other to false.

RE: dispatch action / validation

2004-09-01 Thread andmer
: Struts Users Mailing List Subject: RE: dispatch action / validation > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 10:29 AM > To: [EMAIL PROTECTED] > Subject: dispatch action / validation > > > Is

RE: dispatch action / validation

2004-09-01 Thread Jim Barrows
> -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > Sent: Wednesday, September 01, 2004 10:29 AM > To: [EMAIL PROTECTED] > Subject: dispatch action / validation > > > Is there a way for dispatch actions to have unique validation >

Re: dispatch action / validation

2004-09-01 Thread Rick Reumann
[EMAIL PROTECTED] wrote: Is there a way for dispatch actions to have unique validation requirements based on the parameter? It's easiest to just provide different action mapping names (which could still refer to the same DispatchAction class) and then use one of the ValidatorActionForms which wil

dispatch action / validation

2004-09-01 Thread andmer
Is there a way for dispatch actions to have unique validation requirements based on the parameter? So for instance I could have the action.do?method=view dispatch skip validation, but the action.do?method=edit do the validation? Do dispatch actions and validation allow for this degree of gran