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
2
votes
1 answer

In Spring + Tiles 2, how to unit-test controllers?

When I was trying with the following code: import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ActiveProfiles; import org.springframework.test.context.ContextConfiguration; import…
Johnny Lim
  • 5,623
  • 8
  • 38
  • 53
2
votes
1 answer

Spring MVC 3 & Tiles 2.2.2: A definition for every single page?

So I'm working on a project using Spring MVC 3 and we tried SiteMesh 2.4.2 as a templating mechanism but it ended up having conflicts with Spring so today I'm trying to replace SiteMesh with Tiles 2.2.2 and it seems there's a lot more work to do. I…
Michael De Keyser
  • 787
  • 1
  • 17
  • 45
2
votes
1 answer

Get spring.profiles.active in Tiles.xml

Can we recover the active profile in tiles.xml? I need to display an indicator in the title of the active profile. web.xml spring.profiles.active
Funzzy
  • 178
  • 3
  • 11
2
votes
0 answers

Struts2 tags are not working in Velocity templates

I am using struts2 with Apache Tiles2 and Velocity templates in my webapp. The problem I am getting is that struts2 tags are not evaluating in velocity templates only when I use velocity with tiles. But when I use only velocity with struts2 it…
Zeeshan
  • 1,173
  • 5
  • 19
  • 26
2
votes
1 answer

nested tile definition does not work

I am new to tiles and simply wish to make them work in the following scope base.jsp ...
Alexandros
  • 733
  • 2
  • 10
  • 24
2
votes
1 answer

Tiles2 not working with struts2

I am working on struts2 and using tiles in my application we use Netbeans7.1. But we got an error "The module has not been deployed.See the server log for details." "Exception while loading the app : java.lang.IllegalStateException: …
Swapnil
  • 21
  • 3
2
votes
1 answer

Pass global variables to Spring + Apache Tiles

I'm currently running a working Spring + Apache Tiles webapp. I need to show some example code to explain my intention. Apache Tiles Configuration:
dtrunk
  • 4,685
  • 17
  • 65
  • 109
2
votes
2 answers

Tiles - Spring MVC

What is the difference between and Can you give some example?
svaj
  • 157
  • 3
  • 11
1
vote
1 answer

Not able to retrieve the output on jsp page using tiles framework

I have created a project using struts2 and spring frameworks. Now I am trying to separate my dynamic content using tiles framework. The layout consists of a header and body. The header in turn contains Welcome xyz (name of the logged user) and body…
1
vote
0 answers

Forms not working with Hibernate Validation 4.1, Spring 3.0.7 and Tiles 2

I am freaking out with this. Short overview about my dependencies and their version: 3.0.7.RELEASE 2.2.2 javax.validation
Manuel Richarz
  • 1,916
  • 13
  • 27
1
vote
0 answers

tiles2 - custom 404 error pages

I'm trying to do the same thing as the guy in this thread: How do I have common error page templates with tiles in a Spring/MVC 3.0 app? However, following that question's accepted solution does not seem to provide the same results for my 404…
Fittersman
  • 625
  • 2
  • 11
  • 22
1
vote
3 answers

PHP-like output buffering in JSP (letting subtemplates influence the master template)

In my website I have a master JSP template:
...
And multiple page templates:

This is content

Now I'd like the page templates to be…
Bart van Heukelom
  • 43,244
  • 59
  • 186
  • 301
1
vote
0 answers

Webflow Tiles Issue

All, We have implemented spring using tiles and everything works great so far. I have 2 issues so far: 1) I however do not like the idea of defining a new definition every time a new jsp is created.So i thought i would use wild card something…
1
vote
1 answer

multiple tiles-def xml files

I'm using Struts 2.2.1 and tiles 2.1.4. Wanted to know if there is a way to have multiple tiles-def xml files as my tiles-def xml file is becoming really big.
Arvind Sridharan
  • 3,885
  • 4
  • 29
  • 54
1
vote
2 answers

Nesting Apache Tiles Template

So I found this: http://tiles.apache.org/framework/tutorial/advanced/nesting-extending.html Here is the example:
samsina
  • 973
  • 2
  • 11
  • 16