0 Replies Latest reply on Jul 11, 2006 7:31 AM by haydee

    PortletLogin

    haydee

      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>