When I used this
<tr:inputText id="name" label="Name" value="#{department.name}"
required="true"/>
my form did not submit at all. I finally noticed a Javascript error
"a0.split is not a function"
Firebug showed the error in Common1_2_1.js in this function
function _getJavascriptId(a0)
{
return a0.split(':').join('_');
}
As soon as I changed the id attribute of inputText to "name2" it started to
work.
Unfortunately this breaks the validation of the field, because Seam requires
the id
attribute to be the same as the EL property for hibernate validation to work.
So I have to change my db entity to avoid a javascript error?!