JSF Code - Annotated 6
[Previous] [Main] [Next]

The Rest of the JSF Code


<h:commandButton value="Login" action="login"/>
</p>
</h:form>
</body>
</f:view>
</html>

The commandButton is the only JSF component left.
·It has an "action" and this returns the phrase "login" to the Faces servlet. The navigation system uses this to determine which page to display next.  
·HTML <input type="submit" name="_id0:_id3" value="Login">  
·Note that the "name" is the form name + a specific name for this component.