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.
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?
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
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)
And all my Beans are as follows: (again all libraries are added or removed as required, and obviously the name changed)
Hi Guys, well I changed the list: to static and modified the setters / getters to and now this one works.
Woo Hoo . Now for the others ......,
Oh I forgot, the Breadcrumb example uses the tag, I think this is the problem, not the breadcrumb tag, anyway here is an eample of what i have tried:
On clicking the link both give the same result: "For more information vist http://primefaces.org"
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 ???