Hello
I am using Spring Javascript and Dojo and Tiles2 to refresh part of a page.
This is how it is implemented:
The following code iterates throug links with the class "ajaxLink" and adds event listener that fires a remote Ajax request to the server.
In tiles-defs.xml:Code:dojo.query(".ajaxLink").forEach(function(element) { Spring.addDecoration(new Spring.AjaxEventDecoration({ elementId: element.id, event: 'onclick', params: { fragments: 'content'} })); });
Versions:Code:<definition name="welcome" extends=".mainTemplate"> <put-attribute name="activeMainMenu" value="home" type="string" /> <put-attribute name="content" value="/WEB-INF/views/welcome.jsp" /> </definition>
Spring Framework - 3.0.1.RELEASE
Spring Web Flow - 2.0.5.RELEASE
Tiles2 - 2.1.2
This works like a charm, but my question is this:
Is it possible to handle the Browser History Object to handle the back button?


Reply With Quote