JSF Composite Component advanced Example

In this article I will combine the previous 2 articles, sorting a table with ajax and making it into a reusable composite component.

  • Component will take 2 parameters, one being the list of data and other the controller
  • I want to show the list data and be able to sort it according to the sort action of the controller
  • Note that I have to put the table under a hPanelGroup because of the auto assigned id’s from JSF…
  • If you want to add conditions of which rows/cell to display/hide user the rendered attribute

Component and View



Recent Posts