Questions tagged [tiles]

Apache Tiles renders dynamic websites in a Java Servlet container.

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

Tiles allows authors to define page fragments which can be assembled into a complete page at runtime. These fragments, or tiles, can be used as simple includes in order to reduce the duplication of common page elements or embedded within other tiles to develop a series of reusable templates. These templates streamline the development of a consistent look and feel across an entire application.

Related Links:

1297 questions
140
votes
8 answers

How to Create Grid/Tile View?

For example, I have some class .article, and I want to view this class as grid view. So I applied this style: .article{ width:100px; height:100px; background:#333; float:left; margin:5px; } That style will make the .article look…
Ariona Rian
  • 9,153
  • 3
  • 24
  • 36
94
votes
7 answers

Why would I use a templating engine? jsp include and jstl vs tiles, freemarker, velocity, sitemesh

I'm about to choose to way to organize my view (with spring-mvc, but that shouldn't matter much) There are 6 options as far as I see (though they are not mutually exclusive): Tiles Sitemesh Freemarker Velocity <%@ include…
Bozho
  • 588,226
  • 146
  • 1,060
  • 1,140
64
votes
5 answers

Can I serve JSPs from inside a JAR in lib, or is there a workaround?

I have a web application deployed as a WAR file in Tomcat 7. The application is build as a multi-module project: core - packaged as JAR, contains most of the backend code core-api - packaged as JAR, contains interfaces toward core webapp - packaged…
waxwing
  • 18,547
  • 8
  • 66
  • 82
56
votes
3 answers

Glueing tile images together using imagemagick's montage command without resizing

This seems like it might be a reasonably common question, so I'm going to ask it using as many keywords as I can think of! I have a bunch of (well, nine) tile jpegs, with standard tile filenames. Each jpeg is 220x175 pixels: (top…
AP257
  • 89,519
  • 86
  • 202
  • 261
52
votes
6 answers

NoClassDefFoundError: org/slf4j/impl/StaticLoggerBinder

I'm trying to run the sample tiles example given here. Below is my POM.xml: junit junit 3.8.1
javanoob
  • 6,070
  • 16
  • 65
  • 88
36
votes
2 answers

Redirect from one controller method to another controller method

I am using Spring 3 and Tiles 2 in my application and have a bit of trouble with redirecting. Preferably, I would like to be able to just call or redirect from a Controller1 method to Controller2 method, but so far have been unsuccessful. I have…
Carl
  • 635
  • 2
  • 8
  • 15
31
votes
6 answers

How to get the original request url from a servlet/jsp after multiple servlet forwards

I am working on a cruise booking app using struts/tiles that uses multiple internal servlet/jsp forwards to reach the right jsp for display. But, once you reach the final jsp that is used to render the page, the ${pageContext.request.requestURL}…
Salman Paracha
  • 1,697
  • 2
  • 16
  • 27
29
votes
4 answers

Using Spring, mapping to root in web.xml, static resources aren't found

What I'm trying to do is map requests to the servlet root (correct terminology?). I'm at the point where URLs are mapped to correct view but all the static content - css, javascript, images - that is part of the page cannot be found. So in my…
Rich Everhart
  • 1,043
  • 4
  • 19
  • 29
19
votes
2 answers

HTML offline map with local tiles via Leaflet

Is there a way to display a map for a given area completely offline using HTML and JavaScript? I am looking for a mobile-friendly (read Cordova-enabled) solution.
Kozuch
  • 2,272
  • 3
  • 26
  • 38
19
votes
3 answers

Accessing Spring beans from a Tiles view (JSP)

In Spring MVC I can access my beans in JSP using JstlView's exposedContextBeanNames (or exposeContextBeansAsAttributes). For example, then, in my JSP I can write (${properties.myProperty). But when the same JSP is a part of a tiles view, these…
sinuhepop
  • 20,010
  • 17
  • 72
  • 107
18
votes
1 answer

How can I make something like this? (Tiles inside the app) Windows phone

I'm sorry if the question title wasnt clear, but I'm trying to make something like this. I don't know if they are tiles or images inside a WrapControl: I was thinking of making such thing with a wrap panel and each one of those blocks as a…
Ateik
  • 2,458
  • 4
  • 39
  • 59
18
votes
1 answer

How to select a particular tile when clicked and inflate a bitmap on it in tileview android

I am showing a big image using Tileview using TileView library Now i want to show a circle in a rect boundary when cliked on particular tiles. How to get on which tile clicked? and how to show BitMmap above that tile? public class…
Android Priya
  • 686
  • 1
  • 6
  • 23
15
votes
2 answers

How do I have common error page templates with tiles in a Spring/MVC 3.0 app?

I have a Spring MVC/3.0 app using tiles as it's view, this is working fine however I can't figure out how to get the error pages to also use tiles. I have in my web.xml 404
Brett Ryan
  • 26,937
  • 30
  • 128
  • 163
14
votes
10 answers

Max square size for unknown number inside rectangle

If I have a set of tiles (squares) which can be any number and they are to fill a container (rectangle) of an unknown size how do I work out the maximum size of the tiles without having any of them overlap. So if I have 2 tiles and the rectangle is…
kenneth
  • 1,055
  • 1
  • 8
  • 15
14
votes
5 answers

Is it possible to tile images in a UIScrollView without having to manually create all the tiles?

In the iPhone sample code "PhotoScroller" from WWDC 2010, they show how to do a pretty good mimmic of the Photos app with scrolling, zooming, and paging of images. They also tile the images to show how to display high resolution images and maintain…
Jonah
  • 4,810
  • 14
  • 63
  • 76
1
2 3
86 87