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 Action 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 [logincontrol...@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
logincontrol...@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 [logincontrol...@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
logincontrol...@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.MessageStoreIntercept


Best Regards

Johannes Geppert

-----
---
web: http://www.jgeppert.com
twitter: http://twitter.com/jogep

-- 
View this message in context: 
http://old.nabble.com/Rest-Plugin-with-Tiles-and-Validation-tp29213889p29213889.html
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to