Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <p:panel id="loginPanel" >
- <h:form>
- <h:panelGrid rendered="#{not loginBean.loggedin}" >
- <h:panelGroup>
- <h:outputText value="Username: " />
- <h:inputText id="username" value="#{loginBean.user}" required="#{true}" />
- <h:outputText value=" Password: " />
- <h:inputSecret id="password" redisplay="false" value="#{loginBean.pass}" required="#{true}" />
- <h:commandButton action="#{loginBean.login}" value="Login" />
- </h:panelGroup>
- </h:panelGrid>
- <h:panelGrid rendered="#{loginBean.loggedin}" >
- <h:panelGroup>
- <h:outputText value="Logged in as: " hidden="true" />
- <h:outputText value="#{loginBean.user} " />
- <h:commandButton action="#{loginBean.login}" value="Logout" />
- </h:panelGroup>
- </h:panelGrid>
- </h:form>
- </p:panel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement