I have read the article ?PortletLogin? and have tried to prove it but my 
problem is that I  have a JSP page. How could I do it???

Thanks

.
  | .
  | .
  |  <table border=0 cellspacing=4 cellpadding=2>
  |                <tr>
  |                   <td colspan=2>
  |                      <img 
src='<%=request.getContextPath()%>/images/logo/AlfrescoLogo200.png' width=200 
height=58 alt="Alfresco" title="Alfresco">
  |                   </td>
  |                </tr>
  |                
  |                <tr>
  |                   <td colspan=2>
  |                      <span class='mainSubTitle'><h:outputText 
value="#{msg.login_details}" />:</span>
  |                   </td>
  |                </tr>
  |                
  |                <tr>
  |                   <td>
  |                      <h:outputText value="#{msg.username}"/>:
  |                   </td>
  |                   <td>
  |                      <%-- input text field, with an example of a nested 
validator tag --%>
  |                      <h:inputText id="user-name" 
value="#{LoginBean.username}"    validator="#{LoginBean.validateUsername}" 
style="width:150px" />
  |                                      
  |                   </td>
  |                </tr>
  |                
  |                <tr>
  |                   <td>
  |                      <h:outputText value="#{msg.password}"/>:
  |                   </td>
  |                   <td>
  |                      <%-- password text field, with an example of a 
validation bean method --%>
  |                      <%-- the validation method adds a faces message to be 
displayed by a message tag --%>
  |                      <h:inputSecret id="user-password" 
value="#{LoginBean.password}" validator="#{LoginBean.validatePassword}" 
style="width:150px" />
  |                   </td>
  |                </tr>
  |                
  |                <tr>
  |                   <td>
  |                      <h:outputText value="#{msg.language}"/>:
  |                   </td>
  |                   <td>
  |                      <%-- language selection drop-down --%>
  |                      <h:selectOneMenu id="language" 
value="#{LoginBean.language}" style="width:150px" 
onchange="document.forms['loginForm'].submit(); return true;">
  |                         <f:selectItems value="#{LoginBean.languages}" />
  |                      </h:selectOneMenu>
  |                   </td>
  |                </tr>
  |                
  |                <tr>
  |                   <td colspan=2 align=right>
  |                      <h:commandButton id="submit" 
action="#{LoginBean.login}" value="#{msg.login}" />
  |                   </td>
  |                </tr>
  |                
  |                <tr>
  |                   <td colspan=2>
  |                      <%-- messages tag to show messages not handled by 
other specific message tags --%>
  |                      <h:messages style="padding-top:8px; color:red; 
font-size:10px" layout="table" />
  |                   </td>
  |                </tr>
  |             </table>

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3956955
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to