[richfaces-issues] [JBoss JIRA] (RF-13574) Editor readonly mode
Matej Novotny (JIRA)
issues at jboss.org
Tue Mar 18 08:48:11 EDT 2014
[ https://issues.jboss.org/browse/RF-13574?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12953798#comment-12953798 ]
Matej Novotny edited comment on RF-13574 at 3/18/14 8:47 AM:
-------------------------------------------------------------
Thanks for explanation [~lfryc]!
I saw the test results in Jenkins and modified few tests accordingly.
The problem persists though - I tried to deploy components-demo and even there I am unable to change editor to readOnly mode just via attributes.
In components-demo there is the same approach creating editor with attribute readonly (only the value is taken from the bean) as in Metamer example:
{code}
<r:editor readonly='true/false' id='whatever' ..../>
{code}
Try as I might, this way I cannot accomplish setting it readOnly - the editor stays the same for me.
was (Author: manovotn):
Thanks for explanation [~lfryc]!
I saw the test results in Jenkins and modified few tests accordingly.
The problem persists though - I tried to deploy components-demo and even there I am unable to change editor to readOnly mode just via attributes.
In components-demo there is the same approach creating editor with attribute readonly (only the value is taken from the bean) as in Metamer example:
{code}
<r:editor readonly='true/false' id='whatever' ..../>
{code}
Try as I might, this way I cannot accomplish setting it readOnly - the editor stays the same for me.
Furthermore I tried using XPath to locate the element (textarea) which is affected by this attribute. When you attempt to change the attribute textarea has following state:
{code}
<textarea id="form:editorInput" class="rf-ed-inp" onchange="RichFaces.ajax(this,event,{"parameters":{"javax.faces.behavior.event":"change","org.richfaces.ajax.component":"form:editor"} ,"sourceId":this} )" style="width: 100%; height: 200px; visibility: hidden;" readonly="readonly" name="form:editor"/>
{code}
(this was taken from Metamer, the one from components-demo is very similar)
The attribute readonly has value "readonly", which seems rather weird. Could there still be a problem, or am I doing something incorrectly?
> Editor readonly mode
> --------------------
>
> Key: RF-13574
> URL: https://issues.jboss.org/browse/RF-13574
> Project: RichFaces
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: component-input
> Affects Versions: 5.0.0.Alpha4
> Environment: Wildfly, Firefox, Metamer (master branch)
> Reporter: Matej Novotny
> Assignee: Lukáš Fryč
> Fix For: 5.0.0.Alpha4
>
>
> With the refactored editor I am unable to set readonly mode using attributes (but via JS API it works) in Metamer.
> I checked the attributes editor should have, the bean where via which it is controlled and found no problems there.
> I also tried creating editor with readonly='true' which does not work either.
> One possibility is that the attribute was changed in the reworked component but I cannot seem to find such change anywhere.
> There is a test prepared for this: [testToolbar()|https://github.com/richfaces/richfaces-qa/blob/master/metamer/ftest/src/test/java/org/richfaces/tests/metamer/ftest/richEditor/TestEditor.java#L185]
--
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