RE: Struts 2 Client-side Validation
Hello Thaminda, In strus 2 you can validate the forms using javascript. The good thing in strus 2 is that you don't have to write the code for validating the form. Code is automatically generated pease check http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam ple.shtml Thanks -Original Message- From: Thaminda Karunanayake [mailto:[EMAIL PROTECTED] Sent: Wednesday, February 27, 2008 3:51 PM To: user@struts.apache.org Subject: Struts 2 Client-side Validation Hi all, Can password confirmation be validated using client side validators in Struts 2 ...? Thanks Thaminda - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 Client-side Validation
Hi all, Can password confirmation be validated using client side validators in Struts 2 ...? Thanks Thaminda
Re: Struts 2 client side validation and preparable interceptor?
jpiser wrote: I have a couple of questions regarding the preparable interceptor: 1. By implementing the preparable interface alone I can have my prepare() method called before my action. Great, no problem. But If I want to utilize multiple prepare methods, e.g. prepareInput(), prepareCreate(), etc.. that does not work unless I add interceptors to my action like this: Hmm, I haven't done that but I thought the prepare interceptor could do this without messing with the interceptor stack. Are you sure you need to do this? /pages/userMgmt/createUser.jsp /pages/userMgmt/createUser.jsp /pages/userMgmt/profile.jsp however, at that point none of my client side validation works anymore in my form in the JSP. Can anyone explain to me why this is? Am I missing something? Probably basicStack doesn't include some of the interceptors that need to be there for client side validation to work. When you specify interceptors on an action like that, you override the set of interceptors that would otherwise be applied. Have you tried replacing the interceptor-ref elements with a single reference to the paramsPrepareParams stack, or changing the final one to reference defaultStack instead of basicStack? L. What I am trying to do is have two JSPs, each with similiar forms that have client side validation, that use the same action bean but call different action methods and different prepare methods. The reason why I want to use the same action bean is that all the parameters are the same and they are both ultimately calling an update method that would be the same, so I do not need two action beans that would have the same methods. Thanks for any help you can give! John - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 client side validation and preparable interceptor?
I have a couple of questions regarding the preparable interceptor: 1. By implementing the preparable interface alone I can have my prepare() method called before my action. Great, no problem. But If I want to utilize multiple prepare methods, e.g. prepareInput(), prepareCreate(), etc.. that does not work unless I add interceptors to my action like this: /pages/userMgmt/createUser.jsp /pages/userMgmt/createUser.jsp /pages/userMgmt/profile.jsp however, at that point none of my client side validation works anymore in my form in the JSP. Can anyone explain to me why this is? Am I missing something? What I am trying to do is have two JSPs, each with similiar forms that have client side validation, that use the same action bean but call different action methods and different prepare methods. The reason why I want to use the same action bean is that all the parameters are the same and they are both ultimately calling an update method that would be the same, so I do not need two action beans that would have the same methods. Thanks for any help you can give! John -- View this message in context: http://www.nabble.com/Struts-2-client-side-validation-and-preparable-interceptor--tp15502421p15502421.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2: client side validation message kept displaying repeatedly
I enabled client side validation for a form, when the user submits, the validation kicks in and the messages are shown. If the user didn't make any changes and proceed to submit again, the set messages are shown again. The messages kept increasing. Is there a way to clear the old messages before showing the new ones?
Re: struts 2 client side validation with JBoss (portal server)
Client side validation is not currently supported in portlets. You might get it to work, but there are unresolved issues with escaping/namespaces etc of javascript function names and variables. You can register it as a JIRA issue, and hopefully we'll be able to resolve it in a future release. Nils-H On 8/28/07, Gervai, Tamas (GE Money, consultant) <[EMAIL PROTECTED]> wrote: > Hello, > > I tried to use client side validation on my portal (portlet) with struts 2. > > It seems to me, that struts 2 just failed to generate client side validation > JavaScript. My question is, is this a known bug, known defect or it should > not work anyway? > > It seems just the JavaScript from the end of the JSP is missing. Server side > validation just work fine. > > The same application (project) work fine under Tomcat. > > Does anyone succeed with client side validation under portlet? > -- > tamas > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
struts 2 client side validation with JBoss (portal server)
Hello, I tried to use client side validation on my portal (portlet) with struts 2. It seems to me, that struts 2 just failed to generate client side validation JavaScript. My question is, is this a known bug, known defect or it should not work anyway? It seems just the JavaScript from the end of the JSP is missing. Server side validation just work fine. The same application (project) work fine under Tomcat. Does anyone succeed with client side validation under portlet? -- tamas
RE: Struts 2 Client Side Validation
HI, Please check http://www.roseindia.net/struts/struts2/struts-2-client-side-validation-exam ple.shtml Thanks -Original Message- From: Néstor Boscán [mailto:[EMAIL PROTECTED] Sent: Friday, July 13, 2007 1:05 AM To: user@struts.apache.org Subject: Struts 2 Client Side Validation Hi I'm trying to use Struts 2 with client side validation. I would like to use a theme that does not add any HTML to the form, fields and error messages. I'm working with simple theme but it's not generating the JavaScript code to do the validation and the tag is generation elements. Any ideas? Regards, Néstor Boscán - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Struts 2 Client Side Validation
Hi I'm trying to use Struts 2 with client side validation. I would like to use a theme that does not add any HTML to the form, fields and error messages. I'm working with simple theme but it's not generating the JavaScript code to do the validation and the tag is generation elements. Any ideas? Regards, Néstor Boscán