File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes duplicate id's in a4j:support Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "duplicate id Watch "duplicate id New topic
Author

duplicate id's in a4j:support

maor mosh
Greenhorn

Joined: Dec 14, 2009
Posts: 3
Hi all,

I have encountered a duplicate id error in a page I'm building. I have minimized the page to the following code:
I have two drop-down menus (t:selectOneMenu), a selection in the first automatically selects a value in the second.
Problem is, I get a duplicate id on "support1", which is obviously unique.
Any idea what could be the problem here?
maor mosh
Greenhorn

Joined: Dec 14, 2009
Posts: 3
Found out what caused this:
The valueChangedListener I was using attempted to change the "id" attribute within the event received, and this caused another attribute in the event ("clientId") to be set to null.
maor mosh
Greenhorn

Joined: Dec 14, 2009
Posts: 3
Found out what caused this:
The valueChangedListener I was using attempted to change the "id" attribute within the event received.
This caused another attribute in the event ("clientId") to be set to null.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: duplicate id's in a4j:support