The "id" attribute is special. It's actually part of the core XML spec, and it carries a constraint: Each id value in an XML file MUST be unique. This is true whether the XML is JSF, SOAP, or any random XML format you may device.
So your original xhtml should have failed XML validation and that means that effectively JBoss has fixed a bug.
An IDE is no substitute for an Intelligent Developer.