Re: Whats the best way to do validation messages on the same page?

2009-06-12 Thread stanlick
hank you. > Regards, > Kishan.G > > Team Leader. > www.spansystems.com > > > > -Original Message- > From: Jim Collings [mailto:jlistn...@gmail.com] > Sent: Thursday, June 11, 2009 5:54 PM > To: Struts Users Mailing List > Subject: Whats the best way to do validatio

RE: Whats the best way to do validation messages on the same page?

2009-06-11 Thread Kishan G. Chellap Paandy
Collings [mailto:jlistn...@gmail.com] Sent: Thursday, June 11, 2009 5:54 PM To: Struts Users Mailing List Subject: Whats the best way to do validation messages on the same page? There's got to be a better way of doing this than the way that I am doing it. Convention plugin. According to my pro

Re: Whats the best way to do validation messages on the same page?

2009-06-11 Thread Wes Wannemacher
On Thu, Jun 11, 2009 at 8:23 AM, Jim Collings wrote: > There's got to be a better way of doing this than the way that I am doing it. > > Convention plugin. > > According to my projects requirements error/validation/success > messages are supposed to show on the jsp that generated them. So if I > am

Whats the best way to do validation messages on the same page?

2009-06-11 Thread Jim Collings
There's got to be a better way of doing this than the way that I am doing it. Convention plugin. According to my projects requirements error/validation/success messages are supposed to show on the jsp that generated them. So if I am on a page that adds a record and I leave all the fields blank, s

Struts 2.1 utf-8 validation messages (in Arabic, Chinese etc) displayed in "?" when using Ajax validation, a bug or wrong setting?

2009-03-03 Thread Qunhuan Mei
Hi all, I am going to use Struts-blank-2.1.6 to demonstrate a localisation problem when doing Ajax validation in maybe 10 minutes. I am not sure if it is a bug (from dojo-plugin?) or just a wrong setting somewhere. Hope some expert could shed some light here. Much appreciated. Steps to reproduc

Re: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote: > P.S. Now can you solve the variable result input problem? Sorry, only one freebie per day. I originally solved this problem a long time ago (I started a similar thread sometime over a year ago) by creating a custom workflow interceptor; I don't know if tha

Re: Validation messages

2008-09-16 Thread stanlick
quired." > > Something's broken then; I use this technique all the time, across > S2.0/S2.1 versions. > > Dave > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For a

Re: Validation messages

2008-09-16 Thread Dave Newton
--- On Tue, 9/16/08, stanlick wrote: > > > employee.department=Employee Department > requiredstring=${getText(fieldName)} is required > > This results in the message "employee.department is > required." > > What I would like to do is have the value for this > key's value displayed in the messag

Validation messages

2008-09-16 Thread stanlick
the value for this key's value displayed in the message "Employee Department is required." -- View this message in context: http://www.nabble.com/Validation-messages-tp19516465p19516465.html Sent from the Struts - User mailing l

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
GREAT! That fixed it! I'll update the Jira. Thanks for your help!!! Mark On 10/09/2008, at 10:50 AM, Dave Newton wrote: --- On Tue, 9/9/08, Mark wrote: Ok, that makes sense. How would I set that up? Right now, I have an index.jsp with the following: . This is so that someone accessing th

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- On Tue, 9/9/08, Mark wrote: > Ok, that makes sense. How would I set that up? Right now, > I have an index.jsp with the following: page="login.jsp"/>. This is so that someone accessing > the site via http://localhost/ will be presented with the > login page. I generally just use a redirec

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
Ok, that makes sense. How would I set that up? Right now, I have an index.jsp with the following: . This is so that someone accessing the site via http://localhost/ will be presented with the login page. Mark On 10/09/2008, at 10:20 AM, Dave Newton wrote: Ah; there we go. The attached

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
Ah; there we go. The attached validation file in JIRA didn't have the "key" attribute; threw me off. You're accessing the login page via the JSP, right? That won't work. You should access it through an action so there's an action on the stack so the getText() can be called on something that exi

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- On Tue, 9/9/08, Mark wrote: > No, I'm not using an tag. Should I be? Not if you don't need it. Does it work if you have the validation XML file's DOCTYPE w/o the trailing space after ".dtd "? How are you accessing the login page the first time--through an action? Dave -

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
so wondering if there's anything else on the value stack. Are you using an tag? Dave --- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote: From: Mark <[EMAIL PROTECTED]> Subject: Re: NullPointerException with Validation Messages To: "Struts Users Mailing List" Date: Tue

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
You're extending ActionSupport, right? I'm also wondering if there's anything else on the value stack. Are you using an tag? Dave --- On Tue, 9/9/08, Mark <[EMAIL PROTECTED]> wrote: > From: Mark <[EMAIL PROTECTED]> > Subject: Re: NullPointerException with

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
I changed to , refreshed, and I still get the NPE :-( If this help, I've also run into another problem which is related. If I implement the Validatable interface in my action, and then add a Field error (ie. addFieldError("userName", "requiredString");) in the validate method, the messa

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
I can zip up my complete maven directory and post it in the Jira. Is that an appropriate place for it? Or should I email it to you directly? Mark On 10/09/2008, at 8:45 AM, Dave Newton wrote: --- On Tue, 9/9/08, Mark wrote: Thank you for the suggestion. Yes, I have and it still produces

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
Here's something to try, although I still can't get the NPE, which is irritating and scary: Your 's action is "login", which means the DOM's id will also be "login". Because the markup is arguably somewhat brittle, your element is colliding with the . Try changing the id to something like "l

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- On Tue, 9/9/08, Mark wrote: > Thank you for the suggestion. Yes, I have and it still > produces the NullPointerException. You may want to try putting the complete webapp up somewhere, or post a minimal, but complete, source example on something like pastebin/etc. I tried several different t

Re: NullPointerException with Validation Messages

2008-09-09 Thread Dave Newton
--- On Tue, 9/9/08, Mark wrote: > Thank you for the suggestion. Yes, I have and it still > produces the NullPointerException. You may want to try putting the complete webapp up somewhere, or post a minimal, but complete, source example on something like pastebin/etc. I tried several different t

Re: NullPointerException with Validation Messages

2008-09-09 Thread Mark
Thank you for the suggestion. Yes, I have and it still produces the NullPointerException. Mark On 09/09/2008, at 10:45 PM, Pascal Lalonde wrote: Have you tried this ? - Pascal Mark wrote: Hi all: I'm

Re: NullPointerException with Validation Messages

2008-09-09 Thread Pascal Lalonde
Have you tried this ? - Pascal Mark wrote: Hi all: I'm using Struts 2 validation and I'm getting a NullPointerException when the page is being displayed (before it is even being submitted or validated).

Re: NullPointerException with Validation Messages

2008-09-08 Thread Mark
Sorry, what does AFAICT mean? :-) I'm running Tomcat 6.0.16. No, it doesn't work with default stack. Any other ideas? Mark On 09/09/2008, at 12:13 PM, Dave Newton wrote: --- On Mon, 9/8/08, Mark wrote: I'm using Struts 2 validation and I'm getting a NullPointerException when the page is b

Re: NullPointerException with Validation Messages

2008-09-08 Thread Dave Newton
--- On Mon, 9/8/08, Mark wrote: > I'm using Struts 2 validation and I'm getting a NullPointerException > when the page is being displayed (before it is even being submitted > or validated). I did some searches and found this Jira: > https:// issues.apache.org/struts/browse/WW-2150. AFAICT th

NullPointerException with Validation Messages

2008-09-08 Thread Mark
Hi all: I'm using Struts 2 validation and I'm getting a NullPointerException when the page is being displayed (before it is even being submitted or validated). I did some searches and found this Jira: https:// issues.apache.org/struts/browse/WW-2150. It states that it has been fixed in v

Re: struts- validation messages

2008-03-29 Thread Nuwan Chandrasoma
http://www.niallp.pwp.blueyonder.co.uk/HelpTagsErrorsAndMessages.html Thanks, Nuwan Sonu S wrote: Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validatio

struts- validation messages

2008-03-29 Thread Sonu S
Hi, I am using struts in my application. to validate users entry in jsp i have my validation method. and i am calling that method in action class. code is below:(I am not using struts' validations ) // in action class, calling validate method ActionErrors errors = myForm.validate(mapping,request

Conversion error messing up validation messages

2007-10-15 Thread stanlick
The ActionContext class contains a Map of field/value pairs for invalid conversions. The messages are mucking up the HTML validation messages and when I clear them to solve that problem it blows away the entered value "as invalid as it might be" so it's not restored when

Re: Avoiding multiple validation messages

2006-10-03 Thread priya
Hi Ed, Thank you for the clarification! That worked out great! Priya On 10/3/06, Ed Griebel <[EMAIL PROTECTED]> wrote: Let me clarify, in your html:form statement, try adding a return like so: On 10/3/06, priya <[EMAIL PROTECTED]> wrote: > > Hi Ed, > > Thank you for your response! > Since

Re: Avoiding multiple validation messages

2006-10-03 Thread Ed Griebel
Let me clarify, in your html:form statement, try adding a return like so: On 10/3/06, priya <[EMAIL PROTECTED]> wrote: Hi Ed, Thank you for your response! Since I am using Struts client side validation, I am not creating the validate method.. Struts is creating it for me.. Do you mean I shou

Re: Avoiding multiple validation messages

2006-10-03 Thread Ed Griebel
In your form's onclick="validate()" method (or whatever it may be called in your case), it may work to add "return" to the javascript method call. The validate method will return false if validation fails, and the form will not be submitted back to the server. HTH, -ed On 10/3/06, priya <[EMAIL

Avoiding multiple validation messages

2006-10-03 Thread priya
I am using client-side and server-side validation in my login form. Both work and when I dont enter the required fields I recieve a javascript alert box saying that the fields "username or password are required". After I click okay it does a serverside validation as well and prints on the screen

Re: [shale] Better validation messages

2006-02-02 Thread Wendy Smoak
On 2/1/06, Richard Wallace <[EMAIL PROTECTED]> wrote: > I'm implementing an assessment with 12 questions on a page. The user > is required to select an answer for all questions. When a user doesn't > select a question I'd like to display a message in the global messages > that says something li

[shale] Better validation messages

2006-02-01 Thread Richard Wallace
I've starting working with the commonsValidator components in Shale. I'm just getting started but one thing I was hoping this could solve was better error message handling. The error message handling in JSF is probably one of it's weakest areas because you can only define a single message to