> Unfortunately StrutsTilesListener is not compatible with the changes ok, i include <listener-class>org.apache.tiles.web.startup.TilesListener</listener-class> now.
> you can use the "tiles.xml" name ok, done > put the URI of the taglib: <#assign > tiles=JspTaglibs["http://tiles.apache.org/tags-tiles"]> done, this will only work as long as i got an internet connection, won't it? now i get: "WARNING: Unable to find the definition '/public/files_show.ftl' or "org.apache.tiles.definition.NoSuchDefinitionException: /public/files_show.ftl org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:612)" /public/files_show.ftl is present under /WebContent. Regards, Stephan Antonio Petrelli-3 wrote: > > 2008/10/28 Stephan Schröder <[EMAIL PROTECTED]>: >> <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 > 2.1. > >> 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: > http://tiles.apache.org/framework/config-reference.html#org.apache.tiles.definition.DefinitionsFactory.DEFINITIONS_CONFIG > >> -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"]> > > > HTH > Antonio > > -- View this message in context: http://www.nabble.com/neccessary-stepts-to-use-Struts-2%2BFreeMarker%2BTiles2.1-tp20209482p20210551.html Sent from the tiles users mailing list archive at Nabble.com.
