I am having the same problem with the Tree2 control. I have the base JBoss 4.2.0Ga with Tomahawk 1.1.5 in the jsf-libs directory and the other needed commons jars added to server/default/lib directory. All of the other JSF/Tomahawk controls seem to work fine. Anyone have ideas?
I tried Tomahawk 1.1.3 with JBoss 4.2.0GA and the Tree2 control id duplicate problem ciesed. There is some sort of issue with JBoss 4.2 and 1.1.5 Tomahawk.
Give an older version of Tomahawk a try.
Forgot to say, my duplicates are in a t:dataTable (plus jscookmenu support is broken).
MyFaces and Tomahawk had ID generation 'compatibility issues' with JSF RI in the past, which
https://issues.apache.org/jira/browse/MYFACES-1010 indicates needs a fix in the JSF RI. All this occured around the time Tomahawk 1.1.4 was coming out (as far as I recollect).
A colleague also saw on some official Java site (cannot find link) which indicates that using a 'binding' attribute can cause 'issues' with duplicate IDs on the JSF RI 1.2 - my tables do define a binding.
Remove all binding="" definitions and use Tomahawk 1.1.6 then everything works OK with JSF RI 1.2 as shipped with JBoss 4.2.0