[richfaces-issues] [JBoss JIRA] (RF-11990) client-side validation and ajax calls create maleformed javascript
Daniel G (JIRA)
jira-events at lists.jboss.org
Fri Feb 17 11:33:38 EST 2012
Daniel G created RF-11990:
-----------------------------
Summary: client-side validation and ajax calls create maleformed javascript
Key: RF-11990
URL: https://issues.jboss.org/browse/RF-11990
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-validators
Affects Versions: 4.1.0.Final, 4.0.0.Final
Environment: MyFaces 2.1.5, Hibernate-Validation 4.2.0.Final
Reporter: Daniel G
Using rich:validation and f:ajax together, maleformed JavaScript is generated.
I'm having a composite component, that has to be able to refresh given other components on change, but the JavaScript code generated by:
{quote}
<h:inputText id="input" value="#\{cc.attrs.value\}"
<f:ajax event="change" render="#\{cc.attrs.render\}" />
<rich:validator />
</h:inputText>
{quote}
the generated content is missing a comma between the Chain parameters.
see the red {color:red}'{color}
{quote}
<input id="idForm:bNr:input" name="idForm:bNr:input" type="text" value="123"
onchange="jsf.util.chain(document.getElementById('idForm:bNr:input'),
event,'jsf.ajax.request(\'idForm:bNr:input\',event,\{render:\'idForm:idToolBar:idSaveButton\',\'javax.faces.behavior.event\':\'change\'\}){color:red}''{color}idForm_3AbNr_3Ainput_3Av(event,"idForm:kopf:bezugNr:input","idForm:kopf:bezugNr:input")'); return false;" />
{quote}
the code is tanken from 4.0.0.Final, but looks similar in 4.1.0.Final
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list