Java Reference
In-Depth Information
<h:outputText value="Salutation: "/>
value="#{registrationBean.salutation}" />
<h:outputText value="First Name:"/>
<h:outputText value="#{registrationBean.firstName}" />
<h:outputText value="Last Name:"/>
<h:outputText value="#{registrationBean.lastName}" />
<h:outputText value="Age:"/>
<h:outputText value="#{registrationBean.age}"/>
<h:outputText value="Email Address:"/>
<h:outputText value="#{}" />
As we can see, our confirmation page is very simple. It consists of a series of
<h:outputText> tags containing labels and value binding expressions bound to our
managed bean's properties. The JSF <h:outputText> tag simply displays the value
of the expression of its value attribute on the rendered page.
Executing our application
We are now ready to execute our JSF application. The easiest way to do so is to
right-click on our project and click on Run in the resulting pop up menu
At this point GlassFish (or whatever application server we are using for our project)
will start automatically, if it hadn't been started already, the default browser will
open and it will automatically be directed to our page's URL.
Search WWH ::

Custom Search