How to cast an object in JSF?
843844Apr 4 2007 — edited Apr 15 2007I am working on a travel application. A user can have several bookings and a booking can have several components. A component can be either air or hotel. I want to list the user's bookings on the client using JSF datatable.
<h:dataTable var="component" value="#{booking.components}">
Now depending upon the class of component I need to present different information.
My question is how to cast the variable in JSF ?
Thanks