HTML and CSS Reference
In-Depth Information
Figure 4-10. Styled input elements when we have one or more validation errors
the updated applications (first application and subscriber application) are available for download from the
book's web site at ; you will be able to find the complete source inside
the Chapter4 zip file.
View Parameters
In order to support bookmarkable pages, view parameters are introduced in JSF 2.0 to support having addressable
pages. View parameters allow JSF pages to be RESTful, which means that they can be bookmarked by the end user(s)
in the browser so that at any time they can get back to use these pages later. View parameters can be created in the JSF
Facelets pages using <f:viewParam> tag. Listing 4-27 shows how to define <f:viewParam> tag inside a JSF page
( car.xhtml ).
Listing 4-27. Using <f:viewParam> Tag Inside a JSF Page (car.xhtml)
<html xmlns=" "
xmlns:ui=" "
xmlns:h=" "
xmlns:f=" " >
<f:viewParam name="model" value="#{car.model}"/>
<f:viewParam name="color" value="#{car.color}"/>
Search WWH ::

Custom Search