Wicket Replace Page Title with AJAX
In Wicket, trying to make the page title a Label backed by a property model & trying to change the title by changing the underlying property during an AJAX request by will result in a JavaScript bug in IE.The way to change the title dynamically via AJAX that works across browsers is to append JavaScript to the AJAXRequestTarget e.g.:target.appendJavascript("document.title='"+newTitle+"'");
No comments:
Post a Comment