Java Reference
In-Depth Information
<h:outputLabel id="userNameLabel" for="j_username"
value="Username:"/>
<h:inputText id="j_username" autocomplete="off"/>
<h:outputLabel id="passwordLabel" for="j_password"
value="Password:"/>
<h:inputSecret id="j_password" autocomplete="off"/>
<div/>
<h:panelGroup>
<h:commandButton type="submit" value="Login"/>
<h:commandButton type="reset" value="Clear"/>
</h:panelGroup>
</h:panelGrid>
</form>
</body>
</html>
For the sake of brevity, we won't include the error page, which will simply alert that the
user entered an incorrect combination of username and password. The expected outcome
is the following login screen, which will intercept all user access to your application and
grant access to the default home page if the username and password credentials are
correct.
Search WWH ::




Custom Search