[jboss-user] [JBoss Seam] - Re: Seam authentication module problem

carlos.abreu do-not-reply at jboss.com
Fri May 25 14:55:16 EDT 2007


Humm... Allright, my configuration files is:

login.page.xml

  | <!DOCTYPE page PUBLIC
  |           "-//JBoss/Seam Pages Configuration DTD 1.1//EN"
  |           "http://jboss.com/products/seam/pages-1.1.dtd">
  | 
  | <page>
  |    <navigation from-action="#{identity.login}">
  |       <rule if="#{identity.loggedIn}">
  |          <redirect view-id="/home.xhtml"/>
  |       </rule>
  |    </navigation>
  | </page>
  | 


components.xml

  |    <drools:rule-base name="securityRules">
  |        <drools:rule-files><value>/security.drl</value></drools:rule-files>
  |    </drools:rule-base>
  | 
  |    <security:identity authenticate-method="#{authenticator.authenticate}" />
  | 

All the others configurations is using the default generated by seam gen.

My login page is using this code:


  | 
  |     <h:form>
  |     
  |         <div class="dialog">
  |             <div class="prop">
  |                 <span class="name">Username</span>
  |                 <span class="value">
  |                     <h:inputText id="username" value="#{identity.username}"/>
  |                 </span>
  |             </div>
  |             <div class="prop">
  |                 <span class="name">Password</span>
  |                 <span class="value">
  |                     <h:inputSecret id="password" value="#{identity.password}"/>
  |                 </span>
  |             </div>
  |         </div>
  |             
  |         <div class="actionButtons">
  |             <h:commandButton value="Login" action="#{identity.login}"/>
  |         </div>
  |           
  |     </h:form>
  | 

Thanks.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4048772#4048772

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4048772



More information about the jboss-user mailing list