Skip to content

Tag: primefaces

How to maintain accordionPanels in the same order?

I’m using accordionPanel in Primefaces. When I refresh the page the order changes! For example: I have 1,2,3 then they become 2,3,1 or 3,2,1 ! The order of the panels changes everytime I refresh the page! So I need to know how to fix that, in order to maintain the order of panels in the same way as it i…

‘Show All’ button for Primefaces DataTable

I would like to have a ‘Show All’ button for a primefaces datatable, however, I’m experiencing some trouble. Here’s some test code that demostrates the problem: Test.xhtml: And here’s TestBean.java: If I don’t change tabs, the page works as expected: toggling the ‘Sho…

Why does p:panelGrid not work with ui:repeat?

If I use as below, I get no error, no output. Why does p:panelGrid not work with ui:repeat? Note : I don’t want to use c:forEach because of the I already face a lot of JSF issue. MyBean.java Expected output with primefaces Answer ui:repeat will not work because it does not actually add components to the…