You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2011/04/11 10:01:06 UTC
[jira] [Created] (WICKET-3606) wicket-ajax.js replaceOuterhtmlIE()
fails when the page title has to be updated with Ajax
wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
-----------------------------------------------------------------------------------------
Key: WICKET-3606
URL: https://issues.apache.org/jira/browse/WICKET-3606
Project: Wicket
Issue Type: Bug
Components: wicket-core
Affects Versions: 1.5-RC3
Environment: IE
Reporter: Martin Grigorov
Assignee: Martin Grigorov
If the page title is a component in the hierarchy, i.e.
.html:
<title wicket:id="title">...</title>
.java:
final Label title = new Label("title", someModel);
and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
Re: [jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by Isammoc OFF <is...@gmail.com>.
Perhaps put in javadoc what kind of tag Label can handle ?
Like span, div, input, etc... but not title.
Why not redirect with a @see tag to the new Title component ?
2011/4/11 Martin Grigorov (JIRA) <ji...@apache.org>
>
> [
> https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018327#comment-13018327]
>
> Martin Grigorov commented on WICKET-3606:
> -----------------------------------------
>
> I am not sure you understood me.
>
> What will happen if the user uses:
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
>
> instead of o.a.w.markup.html.Title, the new component that you suggest
> (e.g. because she doesn't know about it)
> ?
>
> Answer: she will face the problem this ticket is about.
>
> > wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be
> updated with Ajax
> >
> -----------------------------------------------------------------------------------------
> >
> > Key: WICKET-3606
> > URL: https://issues.apache.org/jira/browse/WICKET-3606
> > Project: Wicket
> > Issue Type: Bug
> > Components: wicket-core
> > Affects Versions: 1.5-RC3
> > Environment: IE
> > Reporter: Martin Grigorov
> > Assignee: Martin Grigorov
> >
> > If the page title is a component in the hierarchy, i.e.
> > .html:
> > <title wicket:id="title">...</title>
> > .java:
> > final Label title = new Label("title", someModel);
> > and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will
> fail when trying to set title's element outerHTML to "" (line 284) because
> outerHTML is read-only for title and several other elements (
> http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
>
> --
> This message is automatically generated by JIRA.
> For more information on JIRA, see: http://www.atlassian.com/software/jira
>
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Pedro Santos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018306#comment-13018306 ]
Pedro Santos commented on WICKET-3606:
--------------------------------------
And if Wicket provided a title component, improving framework abstraction of HTML?
class Title extends WebComponent{
public void updateAsynchronously(target){
target.appendJavaScript("document.title = '"+getModelValue()+"';");
}}
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Pedro Santos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018342#comment-13018342 ]
Pedro Santos commented on WICKET-3606:
--------------------------------------
Yes, I'm not against maintain this error followed by a warning explaining that title tag can't be touched in DOM, and rather than try to re-render the title component by adding it in AJAX request target, user needs to respond the javascript line changing the title text.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018299#comment-13018299 ]
Martin Grigorov commented on WICKET-3606:
-----------------------------------------
Hi Pedro.
I use locally this patch:
Index: wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js
===================================================================
--- wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js (revision 1090954)
+++ wicket-core/src/main/java/org/apache/wicket/ajax/wicket-ajax.js (working copy)
@@ -206,7 +206,12 @@
Wicket.Log.error("Wicket.replaceOuterHtmlIE: " + e + ": eval -> " + script);
}
return;
- }
+ } else if (element.tagName == "TITLE") {
+ // match the text between the tags
+ var titleText = />(.*?)</.exec(text)[1];
+ document.title = titleText;
+ return;
+ }
var parent = element.parentNode;
var tn = element.tagName;
@@ -276,7 +281,9 @@
if(element.style.backgroundImage)
element.style.backgroundImage = "";
parent.removeChild(element);
- element.outerHTML = "";
+ try {
+ element.outerHTML = "";
+ } catch (ignore) {}
element = "";
and it solves the problem.
I welcome for better solutions!
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Isammoc (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018307#comment-13018307 ]
Isammoc commented on WICKET-3606:
---------------------------------
Is using "==" ok ?
Don't we have to use equals method instead ?
More with the subject, is it allways in upper case ?
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Pedro Santos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018324#comment-13018324 ]
Pedro Santos commented on WICKET-3606:
--------------------------------------
User can always extend Wicket and ignore its abstractions in benefit of his own style. But isn't his responsibility to address possible problems in this case?
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Isammoc (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018331#comment-13018331 ]
Isammoc commented on WICKET-3606:
---------------------------------
Perhaps put in javadoc what kind of tag Label can handle ?
Like span, div, input, etc... but not title.
Why not redirect with a @see tag to the new Title component ?
2011/4/11 Martin Grigorov (JIRA) <ji...@apache.org>
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Pedro Santos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018869#comment-13018869 ]
Pedro Santos commented on WICKET-3606:
--------------------------------------
Transparency is good, tweak the replaceOuterHtmlIE to do other than 'replace outer html' gave me the impression of 'protecting' user from the HTML world, rather than provide a correspondent abstraction.
Thinking better, we are already doing it: making third complexity transparent to Wicket users. In the checkbox#setRequerid thread on ML, community voted forward a behavior that makes transparent the HTTP weirdness.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 1.4.18, 1.5-RC4
>
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018308#comment-13018308 ]
Martin Grigorov commented on WICKET-3606:
-----------------------------------------
@Pedro: this is OK, but what to do when the user does like I pasted above? currently wicket-ajax.js just breaks for IE.
We will have to explain in the mailing lists or close tickets here with: use Title component instead of <title wicket:id>
@Isammoc: this is Javascript, not Java.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018911#comment-13018911 ]
Igor Vaynberg commented on WICKET-3606:
---------------------------------------
it is still replacing the other html. its just that it needs to do it in a special way when it comes to the [title] tag. it is already handling other special cases such as replacing [tr]s, etc.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 1.4.18, 1.5-RC4
>
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018327#comment-13018327 ]
Martin Grigorov commented on WICKET-3606:
-----------------------------------------
I am not sure you understood me.
What will happen if the user uses:
.html:
<title wicket:id="title">...</title>
.java:
final Label title = new Label("title", someModel);
instead of o.a.w.markup.html.Title, the new component that you suggest (e.g. because she doesn't know about it)
?
Answer: she will face the problem this ticket is about.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Igor Vaynberg (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018731#comment-13018731 ]
Igor Vaynberg commented on WICKET-3606:
---------------------------------------
i like martin's patch that checks if the dom elementis <title> and uses js to update it. its clean and transparent.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (WICKET-3606) wicket-ajax.js replaceOuterhtmlIE()
fails when the page title has to be updated with Ajax
Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Grigorov resolved WICKET-3606.
-------------------------------------
Resolution: Fixed
Fix Version/s: 1.5-RC4
1.4.18
Improved with r1091451 (trunk) and r1091458 (1.4.x).
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
> Fix For: 1.4.18, 1.5-RC4
>
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (WICKET-3606) wicket-ajax.js
replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
Posted by "Pedro Santos (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/WICKET-3606?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018298#comment-13018298 ]
Pedro Santos commented on WICKET-3606:
--------------------------------------
Hi Martin, some times removing the component from DOM, recreate it, add in DOM again works. If it is not the case, Wicket can warn on console a message explaining that the title component will not be replaced.
> wicket-ajax.js replaceOuterhtmlIE() fails when the page title has to be updated with Ajax
> -----------------------------------------------------------------------------------------
>
> Key: WICKET-3606
> URL: https://issues.apache.org/jira/browse/WICKET-3606
> Project: Wicket
> Issue Type: Bug
> Components: wicket-core
> Affects Versions: 1.5-RC3
> Environment: IE
> Reporter: Martin Grigorov
> Assignee: Martin Grigorov
>
> If the page title is a component in the hierarchy, i.e.
> .html:
> <title wicket:id="title">...</title>
> .java:
> final Label title = new Label("title", someModel);
> and we try to update the 'title' with Ajax then replaceOuterhtmlIE() will fail when trying to set title's element outerHTML to "" (line 284) because outerHTML is read-only for title and several other elements (http://msdn.microsoft.com/en-us/library/aa752326(v=vs.85).aspx).
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira