File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes PrimeFaces / JSF questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "PrimeFaces / JSF questions" Watch "PrimeFaces / JSF questions" New topic

PrimeFaces / JSF questions

Roy Dellray

Joined: Jul 13, 2011
Posts: 10

Hi, I'm relatively noob , I learnt JAVA many years ago and have just come back to it, anyway I am working through the PrimeFaces Showcase, most examples work OK but some don't. What I need help on is:
a) breadcrumb:

on clicking the link I get: For more information vist

b) DataGrid:
In the DataGrid example using the Cars (datagrid.xhtml and, on clicking on the search icon, I get another instance of TableBean and a completely new random set of cars, ie: if I click on a Ford 1996, I might get Volvo Red 1972, and each subsequent click is something else random. On inspection(debug), the code is creating a new instance every time I click the link ???, why is this happening

I copied it verbatim from site, and have made no changes except I renamed datagrid.xhtml to DataGridExample.xhtml

c) DragDrop:
The drag and drop example "DragDrop" -> "Data Grid Integration" ->(datagrid.xhtml,, again datagrid.xhtml has been renamed to "DragNDropExample.xhtml" but have incorporated drag drop code into TableBean.
The problem with this one the drop container doesn't activate or accept the droppable components.

d) Lastly, I purchased the PrimeFaces user manual only to discover its pretty well useless, is there any manuals out there to explain in detail each component, and how to use them, with full examples, and/or a site with complete working examples of the "PrimeFaces" showcase examples and/or JSF Components and full examples.

Thanks !!!

Sorry about being so much so soon.
Roy Dellray

Joined: Jul 13, 2011
Posts: 10

Hi me again I just solved part (b) - DataGrid, the trick was to make the car vars static and change the constructor code eg:

Will work on the DragDrop now to see if I can get this to go - stay tuned
I agree. Here's the link:
subject: PrimeFaces / JSF questions
It's not a secret anymore!