Hello I try to create a struts2 based webapp that is using the rest-plugin and the tiles-plugin together. This works fine for me exept when i using validation.
I have a login Exception with an create method for the validation like this.
@Validations(requiredStrings = {
@RequiredStringValidator(type = ValidatorType.FIELD, fieldName = "username", key = "field.required", trim = true, message = ""),
@RequiredStringValidator(type = ValidatorType.FIELD, fieldName = "password", key = "field.required", trim = true, message = "")
})
public HttpHeaders create()
{
log.info("LoginController.create()");
log.info("Login for " + username);
...
return new DefaultHttpHeaders("create");
}
For the Input Result I have specify a Result annotation with Type tiles.
@Results( {
@Result(name = "success", location = "login", type = "tiles"),
@Result(name = "destroy", type = "redirectAction", location = "index"),
@Result(name = "create", type = "redirectAction", location = "index"),
@Result(name = "input", location = "login", type = "tiles")
})
But when submit the login form i receive not the rendered tiles. Only the rendered login form without header, footer, etc. is rendered.
Has anyone an suggestion how to solve this?
Log:
2010-07-15 14:03:29,673 DEBUG (org.apache.struts2.interceptor.MessageStoreInterceptor:57) - entering MessageStoreInterceptor ...
2010-07-15 14:03:29,673 DEBUG (org.apache.struts2.interceptor.MessageStoreInterceptor:57) - retrieve error / message from session to populate into action [LoginController@3c6542]
2010-07-15 14:03:29,673 DEBUG (org.apache.struts2.interceptor.FileUploadInterceptor:57) - Überspringe //login
2010-07-15 14:03:29,673 DEBUG (org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:57) - Validating //login with method create.
2010-07-15 14:03:29,688 DEBUG (org.apache.struts2.rest.RestWorkflowInterceptor:57) - Errors on action LoginController@3c6542, returning result name 'input'
2010-07-15 14:03:29,704 DEBUG (org.apache.struts2.interceptor.MessageStoreInterceptor:57) - entering MessageStoreInterceptor ...
2010-07-15 14:03:29,704 DEBUG (org.apache.struts2.interceptor.MessageStoreInterceptor:57) - retrieve error / message from session to populate into action [LoginController@19ad677]
2010-07-15 14:03:29,704 DEBUG (org.apache.struts2.interceptor.FileUploadInterceptor:57) - Überspringe //login
2010-07-15 14:03:29,704 DEBUG (org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor:57) - Validating //login with method create.
2010-07-15 14:03:29,720 DEBUG (org.apache.struts2.rest.RestWorkflowInterceptor:57) - Errors on action LoginController@19ad677, returning result name 'input'
2010-07-15 14:03:29,845 DEBUG (org.apache.struts2.interceptor.MessageStoreInterceptor:57) - exit executing MessageStoreInterceptor
2010-07-15 14:03:29,845 DEBUG (org.apache.struts2.interceptor.MessageStoreInterceptor:57) - exit executing MessageStoreInterceptor