[richfaces-issues] [JBoss JIRA] (RF-12457) Add onmessage and onclear to rich:validator

Lukáš Fryč (JIRA) jira-events at lists.jboss.org
Wed Sep 5 15:11:32 EDT 2012


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

Lukáš Fryč commented on RF-12457:
---------------------------------

Naming discussion from IRC:

{code}
<blabno> personally I'd name those attributes *onvalidationerror* and *onvalidationsuccess*
<lfryc> or possibly *onvalid* / *oninvalid*?
<blabno> lfryc_away: ok, this onvalid/oninvalid would be ok, but typo prone
{code}
                
> Add onmessage and onclear to rich:validator
> -------------------------------------------
>
>                 Key: RF-12457
>                 URL: https://issues.jboss.org/browse/RF-12457
>             Project: RichFaces
>          Issue Type: Enhancement
>      Security Level: Public(Everyone can see) 
>          Components: component-validators
>    Affects Versions: 4.2.2.Final
>            Reporter: Bernard Labno
>
> When rich:validator find validation error then it raises JS event that is handled by rich:message and the validation error message is show.
> However we can't i.e. toggle error class on input label, the input itself and do other crazy stuff.
> It would be great if rich:validator had onmessage and onclear attributes so that user could bind JS callbacks that would do custom magic.
> Currently rich:validator contains "onerror" attribute but it conecerns ajax request error (it's the same as in a4j:ajax), so we can't use it.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira



More information about the richfaces-issues mailing list