tiles2

Spring + Tiles2 + Freemarker - integrate via Freemarker Servlet or via Spring's FreeMarkerViewResolver?

Hi all, i was strugling today trying to migrate from Freemarker to Tiles2 + Freemarker. My freemarker templates use macros that come from spring.ftl. If i provide a fremarker servlet in web.xml, my model is visible to freemarker, but specific spring variables (naturally) are not populated into the model as springs FreemarkerView is r...

Integrating Spring Webflow 2 and Apache Tiles

I've recently started upgrading some applications to use Spring Webflow 2, and I want to make use of the new Ajax functionality that comes with Webflow 2. Can somebody please direct me to a tutorial for integrating Tiles 2 with Spring Webflow (since that's apparently what they recommend). I've found the documentation that comes with We...

Rendering complete page and not "progressively" (using struts 2 / tiles)

Is there a way to get struts 2 (using tiles) to build the whole page before sending it to the browser? I don't want the page to be build "progressively" in the browser one part at a time. The main problem I'm trying to solve is that internet explorer 7 flashes/blinks the page even if only some of the content changes (firefox does this m...

Nesting Apache Tiles Template

So I found this: http://tiles.apache.org/framework/tutorial/advanced/nesting-extending.html Here is the example: <definition name="myapp.homepage" template="/layouts/classic.jsp"> <put-attribute name="title" value="Tiles tutorial homepage" /> <put-attribute name="header" value="/tiles/banner.jsp" /> <put-attribute name="menu" val...

Best way to set HTML head title in a Spring+Tiles2 application?

I have a usability problem in my Spring webapp which uses Tiles as the view technology. At the moment all of the pages display the same HEAD_TITLE and the PAGE_TITLE is page specific: <html> <head><title>HEAD_TITLE</title></head> <body> <h1>PAGE_TITLE</h1> </body> </html> This is a major usability problem as the browsers history...

struts 2, tiles 2 dynamic title

Hi Gurus, I am using tiles 2.0.6 as my template framework together with struts 2.1.6. I am writing a simple cms page and want to let the user to define the title of each html page. I have a title definition like this <definition name="base" template="/WEB-INF/jsp/templates/base.jsp"> <put-attribute name="title" value=" "/>...

Passing OGNL expression from Tiles attribute to <s:iterator> (Struts2)

Hi, everyone! :) I am trying to pass an OGNL expression from Tiles framework (2.0.4) to the value attribute of <s:iterator> tag like this: tiles.xml <definition name="test" template="/test.jsp"> <put-attribute name="collectionName" value="apples"/> </definition> test.jsp <tiles:importAttribute toName="collectionName" name="coll...

Tiles 2.2.1 configuration

I have used Tiles 2.1, but in version 2.2 configuration has changed, but sadly their documentation seems to be very confusing*, at least for me. And their example project download link is not working. http://tiles.apache.org/framework/tutorial/configuration.html ...

Struts2 with Tiles 2.1 or 2.2

Hello, there doesn't seem to be a simple way to use Tiles 2.1 or 2.2 with Struts2 with the existing struts2-tiles plugin. I need to use the tiles wildcards functionality in my project where the tiles.xml became unmaintainable. Is there any way at all to set up tiles 2.1 or 2.2 with struts2? How? Thank you, Bozo ...

Apache Tiles 2.1.4 with CSS

Hi, I am using Apache Tiles 2.1.4 with Spring MVC 3. I have managed to configure these together and everything works fine. My next step is to add CSS and this is where I am having an issue - this is most probably a simple one but I can't get my template jsp to pick up the css. Snippet from my tiles-defs.xml <definition name="baseLayou...

Enable Tiles devMode like Struts' devMode to reload tiles.xml with each request.

Does Apache Tiles have a devMove like Struts that would reload the tiles.xml file with each request? If so, how can this be enabled? ...

[Struts2+tiles] How can I make title dynamically?

I'm developing BBS in struts2 and tiles(2) framework. I want to push a value in ActionSupport class and pop the value in layout.jsp of tiles. but i just keep failing to access to the value. I will explain my works step by step. 1) Users click a link to view an article at list page. And BoardView class will be called as defined in stru...

How do I create a Spring 3 + Tiles 2 webapp using REST-ful URLs?

I'm having a heck of a time resolving URLs with Spring 3.0 MVC. I'm just building a HelloWorld to try out how to build a RESTful webapp in Spring, nothing theoretically complicated. All of the examples I've been able to find are based on configurations that pay attention to file extensions ("*.htm" or "*.do"), include an artificial dir...

Internationalization using Tiles

Hi everyone I want to implement internationalization in tiles. I have made 3 definition files-layout-defs_en.xml,layout-defs_fr.xml and layout-defs.xml. By default it is going with the layout-defs_en.xml definition file. I want to know how will it switch the tiles definition files. I got to know a session attribute Locale, by which it ...

sitemesh and tiles 2.1 integration with spring MVC

Is posible to integrate sitemesh and tiles 2.1 with spring mvc ? I want to composite the layout with tiles and then decorate with sitemesh. I was using tiles like that. <bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles2.TilesConfigurer"> <property name="definitions"> <list> ...

Tiles 2 And No mapping found for HTTP request with URI - Spring-MVC

I want to use Spring-Tiles intergration. Here you can see how my app looks like. So my question is: why Spring-MVC dispatcher Servlet can not resolve my Target page ??? ...

UrlBasedViewResolver and Apache Tiles2 in Spring 3

Hi people, I've got the following exception while trying to open the URL http://localhost:8080/app/clientes/agregar: javax.servlet.ServletException: Could not resolve view with name 'clientes/agregar' in servlet with name 'Spring MVC Dispatcher Servlet' My mvc-config.xml is the following: <mvc:annotation-driven /> <bean class="org.s...

Apache Tiles set html tag attribute using <put-attribute> value

I am using Apache Tiles 2.1 as my templating framework (along with Spring MVC). I want to know how best to be able to set HTML attribute values from within my Tiles definitions file. For example I have a text box and want to be able to set the maxlength attribute from within my definition. I expected the following to work - <input id="...

Tiles2 add scripts to a definition

Hi! I'm using struts2+tiles2, and I would like to do the following. I have a baseLayout, where I define my menu, body, etc like this: <tiles:insertAttribute name="menu" /> <tiles:insertAttribute name="body" /> And then in my tiles.xml I set them like this: <definition name="/index" extends="baseLayout"> <put-attribute name="...

Why am I not getting Spring Security Login Error Messages?

Using Spring Security 3 along with Struts 2 and Tiles 2, I have a login page that appears when it is supposed to and performs the login as expected -- however when I enter bad user credentials I am returned to the login page with no information about what went wrong. I've checked all my configuration parameters and I can't see where the ...