The simplest "fix" is switching tr:form to h:form. That'll force
a naming container into your page, changing "name"
to "formsId:name". Or, wrap the page in an f:subview to
again force clientId prefixing. (I'm assuming Seam only
cares about the ID, not the clientId).
Yes, it's a big annoyance. It comes from the fact that
form.foo gives you the "foo" element in a form. And form.name
is supposed to give you the name of the form, but if you have
an element named "name", it blocks that.
-- Adam
On 8/13/07, Stephen Friedrich <[EMAIL PROTECTED]> wrote:
> 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?!
>