[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-3389) seam-gen generated Authenticator component is not up to date
Shane Bryzak (JIRA)
jira-events at lists.jboss.org
Sun Sep 7 21:47:38 EDT 2008
[ https://jira.jboss.org/jira/browse/JBSEAM-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12428517#action_12428517 ]
Shane Bryzak commented on JBSEAM-3389:
--------------------------------------
Actually, booking wasn't injecting the identity or directly referring to its deprecated methods. However, I added the code to do this and still no problem compiling.
> seam-gen generated Authenticator component is not up to date
> ------------------------------------------------------------
>
> Key: JBSEAM-3389
> URL: https://jira.jboss.org/jira/browse/JBSEAM-3389
> Project: Seam
> Issue Type: Task
> Components: Tools
> Affects Versions: 2.1.0.BETA1
> Environment: JBoss 4.2.2.GA, Eclipse 3.4
> Reporter: Joshua Partogi
> Assignee: Shane Bryzak
> Priority: Minor
> Fix For: 2.1.0.CR1
>
>
> seam-gen is generating a Authenticator component code that is not up to date with the current API. It should be this:
> @Name("authenticator")
> public class Authenticator
> {
> @Logger Log log;
> @In Identity identity;
> @In Credentials credentials;
> public boolean authenticate()
> {
> log.info("authenticating #0", credentials.getUsername());
> //write your authentication logic here,
> //return true if the authentication was
> //successful, false otherwise
> identity.addRole("admin");
> return true;
> }
> }
> And also on the login.xhtml:
> <h:outputLabel for="username">Username</h:outputLabel>
> <h:inputText id="username"
> value="#{credentials.username}"/>
> <h:outputLabel for="password">Password</h:outputLabel>
> <h:inputSecret id="password"
> value="#{credentials.password}"/>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list