2011/4/11 Daniel Stefaniuk <[email protected]> > Hi > > I would like to use object (UIBootstrap.Dojo) created in the layout inside > of a view (content). This is an example: > > <html> > <head> > <% > UIBootstrap.Dojo dojo = new UIBootstrap.Dojo(); > // save Dojo Toolkit bootstrap object to allow further configration in a > view > request.setAttribute("dojo", dojo); > %> > <!-- this is the place I want to execute content but output it later on --> > <%= new UIBootstrap().setDojo(dojo) %> > </head> > <body> > <tiles:insertAttribute name="content" /> > </body> > </html> > > The problem with that solution is that the UIBootstrap.Dojo object is > outputted before content is rendered. Any amendments made to > UIBootstrap.Dojo object inside of a view are done too late. > > Is there any way to execute content but output it later on? >
I don't think it is related to Tiles, however... I think you might want to bind an init function to window.onload. Antonio
