Questions tagged [tiles2]

Apache Tiles™ is a Java templating framework built to simplify the development of web application user interfaces.

Apache Tiles™ is a Java templating framework built to simplify the development of web application user interfaces. Tiles uses the composition pattern as opposed to the decorator pattern, which the name "tiles" suggests. Tiles templates are made up of "definitions" which are typically defined with XML, however definitions can be constructed with the Tiles API.

Tiles has the following notable features:

  • Support for FreeMarker, Velocity and JSP.
  • Support for pattern matching using regular expressions.
  • EL, OGNL and MVEL support in definition files, when specifying attributes and templates.
  • Offers some support for decoration and runtime composition

For a current list of features see: http://tiles.apache.org/framework/whats-new.html

200 questions
16
votes
2 answers

Propagating a Tiles attribute down the include chain

I'm using Tiles and I'd like an attribute defined for a page to be readable inside of one of the included subpages as follows: tiles-definitions.xml:
stack-o-frankie
  • 457
  • 5
  • 15
12
votes
5 answers

Apache Tiles alternatives

I am writing a Spring MVC application and looking for a way to do layouts in views. The only option that i see is Apache Tiles, which i have used before and know how painful it is to maintain its configuration. Are there any good alternatives? I…
Aravindan R
  • 3,084
  • 1
  • 28
  • 44
8
votes
2 answers

Struts2 with Tiles 2.1 or 2.2

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…
bozo
  • 947
  • 1
  • 13
  • 33
7
votes
1 answer

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

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…
miceuz
  • 3,327
  • 5
  • 29
  • 33
6
votes
4 answers

HTML Multiple Heads

NOTE: I am in no way advocating multiple heads within a page I'm using Apache Tiles and I have a few tiles that include their own heads. The result of the Tiles renders into an HTML page with multiple heads. My questions: How is the resulting…
monksy
  • 14,156
  • 17
  • 75
  • 124
6
votes
2 answers

Apache Tiles If/Else

I am wondering if it's possible to have an if/else with Apache Tiles 2 (or JSTL that references a Tiles attribute, that would work to). Basically, I want this: <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> <%@ taglib…
Nik
  • 7,113
  • 13
  • 51
  • 80
6
votes
3 answers

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…
Alex Marshall
  • 10,162
  • 15
  • 72
  • 117
6
votes
6 answers

struts 2, tiles 2 dynamic title

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
Roy Chan
  • 2,888
  • 6
  • 36
  • 43
6
votes
1 answer

Apache Tiles 2.5 - Mark menu element as active

I'm using Spring MVC 3.1 and Tiles 2. I have this Tile: And the…
gaspo53
  • 103
  • 2
  • 9
6
votes
1 answer

Can I access the Apache Tiles definition name inside a ViewPreparer?

Is it possible to access the Apache Tiles definition name inside a ViewPreparer?
blank
  • 17,852
  • 20
  • 105
  • 159
5
votes
2 answers

Using Velocity with Tiles and Spring

I'm presently using Spring 3.0.4 and Apache Tiles 2.2.2 in my web app. I'd like to replace JSP with Apache Velocity 1.6.3 but I'm somewhat confused on how to do this. Ultimately, I'd like to be able to do the following in a Tiles…
Andre
  • 1,601
  • 3
  • 15
  • 15
5
votes
3 answers

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…
Ichiro Furusato
  • 620
  • 6
  • 12
5
votes
1 answer

Comparing Thymeleaf fragments and Apache Tiles?

Has anyone had experience with Thymeleaf fragments for page layout in a big project? Tiles look cleaner to me compared to fragments. I would appreciate your inputs. Thanks
reza
  • 139
  • 1
  • 10
5
votes
6 answers

JSP internationalization RTL/LTR

I want to create a web site which can be viewed with two languages, one LTR and one RTL. This means that all content should be shown in either of the two languages. My framework is Spring, and I'm using Tiles2, but I think this question is not…
TheZuck
  • 3,513
  • 2
  • 29
  • 36
5
votes
2 answers

How to use Tiles2 with Struts 1

Is it possible to use Tiles2 with Struts 1? I've followed the instruction available at the migration guide http://tiles.apache.org/migration/index.html But when I try to access my actions, I get this…
Daniel Cukier
  • 11,502
  • 15
  • 68
  • 123
1
2 3
13 14