This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Based on the error message itself, you got duplicate id's in your jsf page.
Try to search for id's that are the same then change one.
Joined: Oct 20, 2010
The ids are generated by the JSF framework (I haven't provided them) and I believe that they will be uniquely generated for each component in the View. Can we question the framework here ? Another point to emphasize is that I am using Primefaces which work with JSF.
You have "awakened a zombie". It's been about 3 years since anyone posted to this thread. In this industry at this time, it's even odds that all the original participants have moved on to other jobs and other projects. Even me, although I've kept the JavaRanch position for quite a while.
Component IDs do not need to be unique within the View Definition, just within a given naming container. Those containers must have unique ID within their parent naming containers (if any) and so on all the way up. The net result is that the generated HTML ID is unique, even though the JSF View Template Language ID is not.
However, the complaint here had to do with discrepancies that come from when the View Template does not contain an explicit ID and system-generated IDs (j_xxxxx) are created. JSF can get out of sync on those when a page is refreshed, which is why the first recommendation is to give stuff explicit IDs.
An IDE is no substitute for an Intelligent Developer.