Hi guys.
I faced such a problem today. I have created jsp, which looks like this:

//////////////file.jsp//////////////////////////////

...
                        
        
        
        
        


//////////////struts.xml/////////////////////////////

    
    
        /pages/actions/pracuj/niemaczasu.jsp
    
    
        pracujKolejna
    

////////////////action.actions.pracuj.niemaczasu(class)/////////////////

private Date kolejnaProbaDate;

public String execute() throws Exception
{
System.out.println(kolejnaProbaDate.toString());
return super.execute();
}

public DategetKolejnaProbaDate() {
                return kolejnaProbaDate;
                }
public void setKolejnaProbaDate(Date kolejnaProbaDate) {
                this.kolejnaProbaDate = kolejnaProbaDate;
                }
////////////// validation file///////////////////////////

        
                
                        The field is required.
                
        


This configuration works - value is passed to class and is validated
properly with all static fields(   and i have also tested it with  tag and
worked properly.

The problem is that i get back the JSON String properly, while
validating(from firebug):
/* { "fieldErrors": {"kolejnaProbaDate":["The field is
required."],"kolejnaProbaTime":["Pole musi byc data
."]}} */

Second thing is that when i choose values from datetimepicker and click
submit, i am still getting validation errors.
When i turn off ajax validation, i find null values in action.

I will appreciate any help, because i run out of ideas. Maybe someone faced
similar problem?
-- 
View this message in context: 
http://www.nabble.com/Struts-2.1.6-ajax-submit-with-datetimepicker-tp23415768p23415768.html
Sent from the Struts - User mailing list archive at Nabble.com.

Reply via email to