[richfaces-issues] [JBoss JIRA] (RF-12539) rich:editor - setReadonly() and isReadonly() from javascript API doesn't work

Luca Nardelli (JIRA) jira-events at lists.jboss.org
Wed Oct 31 14:07:18 EDT 2012


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

Luca Nardelli commented on RF-12539:
------------------------------------

It seems a naming mismatch in editor.js (isReadOnly instead of isReadonly and setReadOnly instead of setReadonly).
Workaround: #{rich:component('editor')}.isReadOnly())
                
> rich:editor - setReadonly() and isReadonly() from javascript API doesn't work
> -----------------------------------------------------------------------------
>
>                 Key: RF-12539
>                 URL: https://issues.jboss.org/browse/RF-12539
>             Project: RichFaces
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>          Components: component-input
>    Affects Versions: 4.2.3.Final
>         Environment:     RichFaces 4.2.3.Final
>     Metamer 4.2.3.20121017-Final
>     Unknown version of JSF
>     JBoss AS 7.1.1.Final
>     Java(TM) SE Runtime Environment 1.7.0_07-b10 @ Linux
>     Firefox 16.0 @ Linux x86_64
>            Reporter: Jan Papousek
>             Fix For: 5-Tracking
>
>
> The following code
> {code}
> #{rich:component('editor')}.isReadonly())
> {code}
> causes the following error
> {code}
> TypeError: RichFaces.$("form:editor").isReadonly is not a function
> ...
> {code}

--
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