Meaningless Drivel is fun!*
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
Author

PrimeFaces / JSF questions

Roy Dellray
Greenhorn

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 http://primefaces.org

b) DataGrid:
In the DataGrid example using the Cars (datagrid.xhtml and TableBean.java), 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, TableBean.java), 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
Greenhorn

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: http://aspose.com/file-tools
 
subject: PrimeFaces / JSF questions