JSF Code - Annotation 4
[Previous] [Main] [Next]

More of the JSF Code


<table>
<tr>
<td> Name:</td>
<td> <h:inputText value="#{user.name}"/> </td>
</tr> <tr>
<td> Password:</td>
<td> <h:inputSecret value="#{user.password}"/> </td>
</tr>
</table> <p>

Again most of this is standard HTML. The two exceptions are
1. JSF -> <h:inputText value="#{user.name}"/>
· HTML -> <input type="text" name="_id0:_id1" value="Bub">  
·Note that the name is the form name plus "_id1".  
·JSF gets real interesting when we look at where the "Bub" came from.  

2. JSF -> <h:inputSecret value="#{user.password}"/>
· HTML -> <input type="password" name="_id0:_id2" value="">  
· Again note the name of the component is form name plus a value.  
·Also note the value phrase.