tiles-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Antonio <antonio.petre...@gmail.com>
Subject Re: neccessary stepts to use Struts 2+FreeMarker+Tiles2.1
Date Tue, 28 Oct 2008 15:57:14 GMT
2008/10/28 Stephan Schröder <simon.void@gmx.de>:
> <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>
> </listener>

Unfortunately StrutsTilesListener is not compatible with the changes
in the TilesListener (or better, TilesContainerFactory) made in Tiles

> INFO: Initializing Tiles2 container. . .
> 28.10.2008 15:59:13 org.apache.tiles.context.ChainedTilesContextFactory init
> WARNUNG: Cannot find TilesContextFactory class
> org.apache.tiles.portlet.context.PortletTilesContextFactory
> 28.10.2008 15:59:13 org.apache.catalina.core.StandardContext listenerStart
> SCHWERWIEGEND: Exception sending context initialized event to listener
> instance of class org.apache.struts2.tiles.StrutsTilesListener
> java.lang.IllegalStateException: RendererFactory not specified

The error is caused by the StrutsTilesListener incompatibility mentioned above.

> -does Struts/Tiles find WEB-INF/tiles-defs.xml or do i have to set the
> BasicTilesContainer.DEFINITIONS_CONFIG parameter?

You have to. Eventually you can use the "tiles.xml" name to your file
if you don't want to use this parameter. Notice that this
configuration parameter has been deprecated. Use this instead:

> -in simpleLayout.ftl do i have to include the tiles-jsp-lib myself (<#assign
> tiles=JspTaglibs["???"]>
> ) or does the tiles-plugin do that? If i have to do it myself what is the
> (local) address?

You have to include it yourself, put the URI of the taglib:
<#assign tiles=JspTaglibs["http://tiles.apache.org/tags-tiles"]>


View raw message