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