I am following this article to get Ajax validation working.
http://www.javaworld.com/javaworld/jw-10-2008/jw-10-struts2validation.html?page=1
I was wondering if it is nessessary to use the XML for validation with
Ajax? I was hoping to use some validation on the server side action
to do this.
endorse content contained within this transmission.
Date: Thu, 22 Jan 2009 07:45:13 -0330
Subject: AJAX Valiadation in 2.0.x
From: richardsa...@gmail.com
To: user@struts.apache.org
I am following this article to get Ajax validation working.
http://www.javaworld.com/javaworld/jw-10-2008/jw
Martin Gainty wrote:
Richard-
this is the AJAX doctype declaration from src/main/resources/struts-ajax.xml
!DOCTYPE struts PUBLIC
-//Apache Software Foundation//DTD Struts Configuration 2.0//EN
http://struts.apache.org/dtds/struts-2.0.dtd;
If you reference the URL you will see 4
Here is a solution I came up with so far. I wrote an action to
validate. This calls my validateData() method.
I Used the JSON plug in to return the fieldsErrors collection to dojo.
Here is some javascript:
Please note when looking at this that I have modified the original
template that
Richard Sayre wrote:
First I wrote a method called validate. At this point I found out
that I was overriding the ActionSupport method. When I tried to find
more information on this method I couldn't. When I search for XWork
or Struts 2 validation I always get the XML or Annotated validation.
On Thu, Jan 22, 2009 at 11:12 AM, Dave Newton newton.d...@yahoo.com wrote:
Richard Sayre wrote:
First I wrote a method called validate. At this point I found out
that I was overriding the ActionSupport method. When I tried to find
more information on this method I couldn't. When I search
Richard Sayre wrote:
The validate method comes from com.opensymphony.xwork2.Validateable
and is implemented by com.opensymphony.xwork2.ActionSupport.
The API description from each is :
void validate()Performs validation.
void validate() A default implementation that validates nothing.
7 matches
Mail list logo