[richfaces-issues] [JBoss JIRA] Commented: (RF-10725) Client side validation: cannot call method clearMessage

Pavol Pitonak (JIRA) jira-events at lists.jboss.org
Thu Mar 10 08:20:45 EST 2011


    [ https://issues.jboss.org/browse/RF-10725?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12587132#comment-12587132 ] 

Pavol Pitonak commented on RF-10725:
------------------------------------

this code causes the mentioned bug:
{code:xml}
<rich:inplaceInput id="input3" defaultLabel="xxx" value="#{richInplaceInputBean.value3}">
    <a4j:ajax event="change" render="output3"/>    
    <rich:validator event="change"/>
</rich:inplaceInput>
{code}

when ajax and validator are swapped, JS error disappears and validation works OK but still there is RF-10731
{code:xml}
<rich:inplaceInput id="input3" defaultLabel="xxx" value="#{richInplaceInputBean.value3}">
    <rich:validator event="change"/>
    <a4j:ajax event="change" render="output3"/>
</rich:inplaceInput>
{code}



> Client side validation: cannot call method clearMessage
> -------------------------------------------------------
>
>                 Key: RF-10725
>                 URL: https://issues.jboss.org/browse/RF-10725
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-validators
>    Affects Versions: 4.0.0.CR1
>         Environment: RichFaces 4.0.0-SNAPSHOT r.22102
> Metamer 4.0.0-SNAPSHOT r.22123
> Mojarra 2.1.0-FCS
> GlassFish Server Open Source Edition 3.1-SNAPSHOT
> OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
> Chrome 10.0.648.127 @ Linux x86_64
>            Reporter: Pavol Pitonak
>            Assignee: Nick Belaevski
>             Fix For: 4.0.0.Final
>
>
> 1. deploy Metamer and open http://localhost:8080/metamer/faces/components/richCalendar/csv.xhtml
> 2. select some future date in first calendar
> 3. select some past date in second calendar
> result:
> Chrome console shows the following error, second ajax request is not send nor validation error is displayed
> {quote}
> Uncaught TypeError: Cannot call method 'clearMessage' of undefined
> anonymous :2
> AJAX_EVENTS.serverEventHandler richfaces.js:482
> curry richfaces.js:458
> richfaces.createJSFEventsAdapter richfaces.js:411
> sendEvent jsf.js:1429
> response jsf.js:2051
> richfaces.queue.response richfaces-queue.js:407
> jsf.ajax.response richfaces-queue.js:50
> onComplete jsf.js:1218
> AjaxEngine.req.xmlReq.onreadystatechange jsf.js:1199
> {quote}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the richfaces-issues mailing list