Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to cast an object in JSF?

843844Apr 4 2007 — edited Apr 15 2007
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2007
Added on Apr 4 2007
12 comments
1,302 views