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



  • I would like to compare it with HybridJava but I am very far from being an expert in JSF. The site http://www.hybridjava.com:8080/HJ_Sample/ contains a handful of very simplified online examples that demonstrate some features of HybridJava. Would be JSF composite components technology powerful enough to reproduce those examples in a reasonably simple way?

    • metin

      HybridJava seems interesting, “HybridJava supports the concept of a layout at the component level”.
      JSF is powerful enough, anything the web supports can be done as long as I remember, but to get that functionality it will be a long path I would say, learning curve, implementing functionality, JSF’s quirks 🙂
      Its simple but lot to do 🙂

Recent Posts

Recent Comments