Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

PrimeFaces / JSF questions

 
Roy Dellray
Greenhorn
Posts: 10
Java Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 10
Java Netbeans IDE PHP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic