Java Reference
In-Depth Information
This dataTable will be displayed only if it contains some data in it (as dictated by
the not empty seats EL expression). In one of the dataTable columns we have ad-
ded a commandButton [4] , which will be used to book the seat that is displayed
on that row. Notice one of the JSF 2 goodies here, as we are calling the bookSeat
method of the TheatreBookerBean passing as argument one parameter, which is
the seatId field.
JSF 2 facet suggestions
By enabling JSF 2 facets on your project configuration you can enjoy some addition-
al benefits while designing your views.
Enabling JSF 2 project facets takes half a minute from you. Right-click on your pro-
ject and navigate to Properties | Project Facets . Then select the JSF 2.1 Project
facets checkbox and click on the OK button:
Note
Once the JSF facet is enabled, Eclipse will notify you that JSF library config-
uration is missing; just disable the JSF library configuration which is a part of
Maven's duty.
Search WWH ::




Custom Search