text: 
  PrimeFaces
  Roy Dellray
  Greenhorn
  Joined: Jul 13, 2011
  Posts: 10
  I like...
  posted
  Jul 20, 2011 17:56:53
  0
  I am working slowly through the PrimeFaces showcase, I am using NetBeans 7.0, JDK1.6, PrimeFaces 2.2.1, GlassFish 3.1,
  JSF
  2.0, Win XP Prof
  Some of the examples work fine, others don't work and then I get errors that a component doesnt exist in the library or the component doesn't have a specific attribute. I have
  not
  done any configuration and the
  purchased
  very lacking PrimeFaces Manual seemed to suggest I didn't need to
  I keep reading about snapshots and am wondering, should I be using a snapshot:
  1) Do I need to use this snapshot to get everything to work, if so HOW do I use it?
  2) Is there any more documentation / tuts / examples/ books ... of using PrimeFaces components with the above requirements that I have, that have been tested and work.
  I have tried other forums but get no response, I would like to eventually develop some apps using PrimeFaces, but can't get the answers or help I need.
  Paolo Pinkel
  Ranch Hand
  Joined: May 04, 2011
  Posts: 35
  posted
  Jul 21, 2011 02:15:16
  0
  The PrimeFaces manual is free now, btw.
  Do you use the latest stable version (2.2.1) or any development version (3.x)?
  Which components exactly don't work? Which attributes are missing?
  PrimeFaces works pretty good for me.
  If you get no good answer here, you could try asking a specific question at the
  PrimeFaces forum
  .
  Roy Dellray
  Greenhorn
  Joined: Jul 13, 2011
  Posts: 10
  I like...
  posted
  Jul 21, 2011 16:31:55
  0
  Thanks Paolo
  Finally a response
  , I have posted 2 very similar questions on PrimeFaces forum, and subsequently watch as they disappear off the screen with no replies, whilst at the same time someone comes straight after me and gets 20 replies, go figure!
  Anyway, its definitely 2.2.1, I have now removed it and attached Snapshot 3.0.M2 and installed a theme, this got a few more going but, the others already meantioned, still not. eg: The DrapDrop drags but wont drop into the container, the Collector won't hold more than 1 item, each subsequent item is lost, maybe needs to be static?. The breadcrumb works except I get "For more information visit
  primefaces.org
  "; when I click the link. Before M2, the Charts worked, now they don't, re-attaching 2.2.1, they do again, but other stuff stops. ???
  I purchased the manual then found out it was free, thanks for that PrimeFaces
  , no offence, it doesn't help in the slightest, it assumes knowledge of JSF and other stuff all of which I am still learning. A detailed manual or book with working examples for noobs would be great. Don't know of any do you?
  Brendan Healey
  Ranch Hand
  Joined: May 12, 2009
  Posts: 218
  posted
  Jul 23, 2011 05:11:27
  0
  It just sounds like you're going through a perfectly normal learning process. You need
  to include the code that doesn't work along with a description of what's happening, are
  there any messages in the server log, and anything else that you think might be of
  interest.
  Roy Dellray
  Greenhorn
  Joined: Jul 13, 2011
  Posts: 10
  I like...
  posted
  Jul 23, 2011 22:15:25
  0
  Thanks will reply with more stuff tomorrow at work
  Roy Dellray
  Greenhorn
  Joined: Jul 13, 2011
  Posts: 10
  I like...
  posted
  Jul 24, 2011 17:42:15
  0
  @Brendan, @Paulo
  Hi Thanks guys, I'm not new to development in fact I have been developing for 32 years, I'm just new to JSF and PrimeFaces ....
  Anyway, the code you refer to for example, rather than copy everything is the "DragDrop"->"Data Integration" example on the showcases, just one of the examples not working. It was copied verbatim and although the cars drag they dont drop to the container.
  Another example copied verbatim, was the "Collector" example, It only allows one item in the DataTable, if you "Add" another item, the previous one is lost, ie: its not collecting, I'm suspicious that the list being collected needs to be static, as this fixed the "DataGrid" example, it worked except when you clicked the magnifier (for more detail) it gave you another completely random car. I fixed this by making the vars static and changing the constructor slightly so it didn't renew the list if it wasn't empty. Which I think is the answer to the "Collector" problem, will try and see.
  In terms of wrapper code for my pages, all my JSF(xhtml) pages are as follows: (note the xmlns are added to or removed as needed)
  <?xml version='1.0' encoding='UTF-8' ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""> <html xmlns="" xmlns: <h:head> <title>Example</title> <link rel="stylesheet" href="css/MyFirst.css" type="text/css" media="screen"> </link> </h:head> <h:body> <div align="center"> <h:form> <!-- PASTED CODE FROM PRIMEFACES SHOWCASE GOES HERE unless it has a form which is copied over this one--> </h:form> </div> </h:body> </html>
  And all my Beans are as follows: (again all libraries are added or removed as required, and obviously the name changed)
  package org.dellray.primefaces.examples; import javax.faces.bean.ManagedBean; import javax.faces.bean.RequestScoped; @ManagedBean @RequestScoped public class MyClass { // all private vars here public MyClass() // constructor { } // all getters / setters here }
  Roy Dellray
  Greenhorn
  Joined: Jul 13, 2011
  Posts: 10
  I like...
  posted
  Jul 24, 2011 19:32:48
  0
  Hi Guys, well I changed the list:
  private List<Book> books = new ArrayList<Book>();
  to static
  private static List<Book> books = new ArrayList<Book>();
  and modified the setters / getters
  this.books
  to
  CreateBookBean.books;
  and now this one works.
  Woo Hoo
  . Now for the others ......,
  Oh I forgot, the Breadcrumb example uses the
  <p:menuitem >
  tag, I think this is the problem, not the breadcrumb tag, anyway here is an eample of what i have tried:
  <p:breadCrumb <p:menuitem <p:menuitem </p:breadCrumb>
  On clicking the link both give the same result: "For more information vist
  "
  Oh one more thing with any date component I have used, it ALWAYS give the previous date, eg: if I pick 25 July 2011, it returns 24 July 2011 ???, every date component is the same, no matter what the date ???
  Have you checked out
  Aspose
  ?
  subject: PrimeFaces
  Similar Threads
  Auto display uploaded image
  need help time work and suddenly loading with out any redirect
  Rich Faces VS Prime Faces
  PrimeFaces / JSF questions
  Auto-login post registration with container security - good idea?
  All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
  JForum
  |
  Paul Wheaton