This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes JSF and the fly likes JSF component id problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "JSF component id problem" Watch "JSF component id problem" New topic
Author

JSF component id problem

sai midhila
Greenhorn

Joined: Sep 04, 2007
Posts: 1
How to avoid duplicate component id problem in JSF?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15950
    
  19

Define explicit id= attributes on your JSF page components and make sure that each one is unique.

No, I'm not being sarcastic or funny. JSF will generate ID's if you don't define them yourself, but it's a lot easier to debug JSF page errors if you know what the component ID is instead of having to try and guess what ID got generated.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JSF component id problem
 
Similar Threads
tag inside other tag
Using the rendered attribute nulls my value related backing bean variable.
JSF- Duplicate Component Id Exception
How to use database row values to generate additional columns in datatable
[JSF] Duplicate component id