Hi,
  the callback functions generated by ValidatorScript component will
cause the following javascript error on FireFox and IE:
Error: missing ( before formal parameters
Source File: http://localhost:8080/ebusiness/modules/account/create.jsf
Line: 279, Column: 13
Source Code:
function page:_id0:_id1:_id7:_id13:create_account_form_email() { 

this is due to the presence of colons in the callback function name and
only happens if you have a form in an html page that is processed by a
clay tag on a JSP page.  Shale 1.0.2 works fine.

For example,
- you have a JPS page using Clay like this:
   <%@ taglib prefix="sh"
uri="http://struts.apache.org/shale/clay-plugin"; %>
...
<sh:clay id="page" jsfid="/layout.html" 
    managedBeanName="rolodex"/>

- in the layout.html you have:
<form id="form" onsubmit="return validateForm(this)">
<input type="text" jsfid="emailInput" size="40" />
<input type="submit" jsfid="createAccommand"/>
</form>

- in the clay-config.xml file:
<component extends="inputText" jsfid="emailInput">
  <validator jsfid="commonsValidator">
   <attributes>
    <set name="type" value="email"/>
    <set name="client" value="true"/>
    <set name="server" value="true"/>
    <set name="arg" value="E-Mail"/>
   </attributes>
  </validator>
 </component>
<!-- Command button -->
<component extends="baseCommand" jsfid="createAccommand">
  <attributes>
   <set name="action" value="[EMAIL PROTECTED]"/>
   <set name="value" value="Create"/>
  </attributes>
 </component>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to