Advertisement
Guest User

Untitled

a guest
Aug 6th, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 0.77 KB | None | 0 0
  1. <p:panel id="loginPanel" >
  2.         <h:form>
  3.         <h:panelGrid rendered="#{not loginBean.loggedin}" >
  4.             <h:panelGroup>
  5.                 <h:outputText value="Username: " />
  6.                 <h:inputText id="username" value="#{loginBean.user}" required="#{true}" />
  7.                 <h:outputText value=" Password: " />
  8.                 <h:inputSecret id="password" redisplay="false" value="#{loginBean.pass}" required="#{true}" />
  9.                 <h:commandButton action="#{loginBean.login}" value="Login" />
  10.             </h:panelGroup>
  11.         </h:panelGrid>
  12.         <h:panelGrid rendered="#{loginBean.loggedin}" >
  13.             <h:panelGroup>
  14.                 <h:outputText value="Logged in as: " hidden="true" />
  15.                 <h:outputText value="#{loginBean.user} " />
  16.                 <h:commandButton action="#{loginBean.login}" value="Logout" />
  17.             </h:panelGroup>
  18.         </h:panelGrid>
  19.         </h:form>
  20.     </p:panel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement