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

Piotr Steininger commented on RF-7040:
--------------------------------------

I also found this reference: 
http://xmljs.sourceforge.net/website/documentation-w3cdom-DOMException.html#no_modification_allowed_error

It states that this error will manifest itself when the internal "_readonly" 
property of the DOM node is set to true. Perhaps in IE and Firefox this 
property is set to false by default but not in Safari and Chrome. Reading other 
resources this issue appears only on WebKit based browsers. Since the response 
from the AJAX call is MIME type application/xhtml+xml it will require the 
content to be valid XHTML. If the content was application/html this problem 
would not exist.

the offending line here seems to be: A.outerHTML=new 
XMLSerializer().serializeToString(C) . Though this line is not executed in 
Firefox I was able to get the value of innerHTML of C:

<textarea xmlns="http://www.w3.org/1999/xhtml"; id="form:editorTextArea" 
name="form:editorTextArea" style="visibility: 
hidden">&lt;p&gt;zfcfasfdsa&lt;/p&gt;</textarea><script 
xmlns="http://www.w3.org/1999/xhtml"; type="text/javascript">var tinyMceParams = 
{plugins:"preview,insertdatetime",
theme_advanced_toolbar_location:"top",
theme_advanced_toolbar_align:"left",
theme:"advanced",
theme_advanced_buttons3:"hr,removeformat,visualaid,separator,sub,sup,separator,charmap"}
 ;
tinyMceParams.auto_resize = false;
tinyMceParams.readonly = false;
tinyMceParams.width = 400;
tinyMceParams.height = 300;
tinyMceParams.onchange_callback = function (event, inst) {
if (!document.getElementById('form:editorvalue') &amp;&amp; !false) return 
false;;A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'ajaxSingle':'form:editor','form:j_id355':'form:j_id355'}
 
,'actionUrl':'/richfaces\x2Ddemo/richfaces/editor.jsf','similarityGroupingId':'form:j_id355','control':this,'implicitEventsQueue':'form:j_id355','requestDelay':1000}
 )
};
tinyMceParams.dialog_type = 'modal';
if(!tinyMceParams.skin){
        tinyMceParams.skin = 'richfaces';
}
if(tinyMceParams.strict_loading_mode == null){
        tinyMceParams.strict_loading_mode = true;
}
var richParams = {extScriptSuffix : '.jsf', extCssSuffix : 
'/DATB/eAF7sqpgb-jyGdIAFrMEaw__.jsf', useSeamText : false};
                
                new RichEditor('form:editor', richParams, 
tinyMceParams);</script>

It appears that WebKit doesn't think it's valid XHTML

> Not possible to rerender rich:editor in Google Chrome
> -----------------------------------------------------
>
>                 Key: RF-7040
>                 URL: https://jira.jboss.org/jira/browse/RF-7040
>             Project: RichFaces
>          Issue Type: Bug
>          Components: component-input
>    Affects Versions: 3.3.0, 3.3.1
>         Environment: RichFaces 3.3.0 or 3.3.1.CR2, Google Chrome 1.0.154.64, 
> Chrome 2.0, Safaro 4.0
>            Reporter: Frank Bitzer
>            Assignee: Andrey Markhel
>             Fix For: 3.3.2.GA
>
>
> When a rich:editor is rerendered using an a4j:commandLink in Google Chrome, 
> it gets disabled and the content disappears, while in all other browsers 
> (tested IE7, FF3, Opera 9.6) everything works fine.
> Here is the code to reproduce the behaviour:
> <h:form>
>     <a4j:commandLink action="#{bean.prepareMessage()}" reRender="editor">
>         Refresh editor
>     </a4j:commandLink>
>                                                 
>     <rich:editor id="editor" value="#{bean.message}" useSeamText="false" 
> width="600" height="300"/>
>                                      
> </h:form>
> Bean "bean":
> //Setters and getters for property "message"
> //...
> public void prepareMessage(){
>     message = String.valueOf(new GregorianCalendar().getTimeInMillis());
> }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues

Reply via email to