4 Replies Latest reply on Jul 27, 2011 5:06 PM by Andrew Murphy

    Custom Credentials in Seam 3

    Jorge Luiz Monteiro Newbie

      Hi, is there any way to customize seam 3 credentials object?


      I need to add one more attribute to credentials (captcha). I tryed the following code:




      @Named("credentials") @SessionScoped
      public class Credentials extends CredentialsImpl {
           
           private static final long serialVersionUID = -4377742708407292709L;
           
           private String captcha;
      
           public String getCaptcha() {
                return captcha;
           }
      
           public void setCaptcha(String captcha) {
                this.captcha = captcha;
           }
      
      }



      But it has a conflict with org.jboss.seam.security.CredentialsImpl @Named annotation. How can i override the credentials.