list - JSF multiple kinds of objects in a datatable -


i wanna know how can put in datatable multiple kinds of objects. have stored in database objects of many types. have show them in datatable.

can tell me how can it?

att,

diego sabino

i had similar situation, thought of 2 options.

  1. adapter/wrapper object different objects, , use wrapper methods show data.
  2. let objects implement interface , use interface methods pull relevant information datatable.

hope helps.


Comments