For example, the following snippet:
<h:form id="levelone">
<h:inputText id="leveltwo" value="Test" />
</h:form>
generates the following markup:
<form id="levelone" name="levelone" method="post" action="/test/testPage.html"
enctype="application/x-www-form-urlencoded">
<input id="levelone:leveltwo" type="text" name="levelone:leveltwo"
value="Test" />
</form>
Is it possible to change the automatically generated ids to use a different separator than colon?
For example, I'd like to change
levelone:leveltwo
to
levelone-leveltwo
Background
We're using the Mojo JavaScript application framework in our webapp, and it doesn't seem to like the colons in the id's.