Sunday 15 February 2015

spring 3 tiles reload body - keep header and menu static -


I'm using Spring 3 with tile 2. I have separated body, headers and menus. What I want to achieve when the user clicks on options in the menu, only the body is reloaded; How can a signal be kept to keep the menu and header stable? I already have the Spring.addDecoration

  & lt; Script type = "text / javascript" & gt; Spring.addDecoration (New Spring.AjaxEventDecoration ({elementId: "countryMenu", formId: "countryMenuForm", Event: "Onclick", Params: {pieces: "body"}}))); & Lt; / Script & gt;   

but did not work well

Thanks in advance.

This is a problem we are working on FINN. No, we want the overall pattern (which gives tiles) to both server-side and client-side work.

Today we take a simple perspective, where the definition and attribute name are given, we get the template for this feature and re-present the client-side. We use mustache templates for this. Public static zero fetchTemplateDefinition (@PathVariable ("Definition Name") string:

  @RequestMapping (value = "template / {definitionname} / {feature name:}}", Method = RequestMethod.GET Definition name, @ PathWarable ("special name") string attribute name, HTTPSvette request HTTPRequest, HTTPSpepress Response HTTPResponse) servlet exception, IOException {ApplicationContext tilesContext = ServletUtil.getApplicationContext (httpRequest.getSession). GetServletContext ()); Tile Dialogues Tile Controller = Matching Tile Dialog (Tile Tool); Servlet request servletRequest = new ServletRequest (Tile Setup, httpRequest, httpResponse); String template path = matlap path (tile communication, definition, specialturn, tile dialog, serviliter); Inputstream templatestream = loadersSignIputTream (templatepath, tile configuration); IOUtils.copy (templatestream, httpResponse.getOutputStream ()); }   

Spring.addDecoration (..) looks interesting! I have to read more in that; |

No comments:

Post a Comment