On 2005-07-01 18:04:41 +0200, Eduardo José Hernández Cisneros
<[EMAIL PROTECTED]> said:
Hi everybody,
I recently upgrade my struts libraries to 1.2.7 from 1.2.4. I am
using the <html:xhtml/> tag with:
<html:form action="saveUser" focus="name" styleId="productTypeForm"
onsubmit="return validateProductTypeForm(this)">
</html:form>
In 1.2.4 version the html:form tag renders correctly the form name
attribute, but when a I changed to 1.2.7 the form name disappeared and
this causing trouble with a javascript client-side validation that I am
using. The funny part is that when I remove <html:xhtml/> tag with
1.2.7 version the form name appears again.
Am I using wrongly the <html:xhtml/> tag or could it be a bug?
Thank you for your time.
--Eduardo
In the XHTML standard 1.0 the name attribute is marked as obsolete.
You must now specifiy an id attribute (with styleId="formName").
To fix the bug with javascript validation/focus and the id-attribute,
you need to get the latest jakarta commons-validator from the svn
repository so that javascript validation
recognizes the id attribute as the form name too.
Tobias
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]