This content has been marked as final.
Show 2 replies
-
1. Re: error en property/getter
pmuir Nov 4, 2007 4:57 PM (in response to fphilip)Use [ code ] tags, post the whole of LoginForm
-
2. Re: error en property/getter
fphilip Nov 5, 2007 9:33 AM (in response to fphilip)@Name("login") public class LoginForm implements Serializable { public static final String ERROR = "error"; public static final String LOGGED = "logged"; private String username; private String contextId; private String password; private User user; private Context context; @In private Identity identity; @org.jboss.seam.annotations.Logger private Log log; @Length(max=10, min=5) public String getUsername() { return username; } public void setUsername(String username) { this.username = username; } public String getContextId() { return contextId; } public Context getContext() { return context; } public void setContext(Context context) { this.context = context; } public void setContextId(String contextId) { this.contextId = contextId; } public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String login(){ identity.login(); return identity.isLoggedIn() ? LOGGED : ERROR; } public User getUser() { return user; } public void setUser(User user) { this.user = user; } public String cancel(){ return Action.CANCEL; } @Begin(pageflow="login") public String beginPageFlow(){ return ""; }