The project I am working on has been using Struts tiles 1.3. Since I am trying to upgrade from Spring 2.1 to Spring 3.0.x, I am trying to migrate to Tiles 2.2. The migration guide[http://tiles.apache.org/2.2/framewor...on/index.html] is helping me along. However, I seem to have hit a wall and am looking for help. Here are the details:
This is the tilesConfigurer we were using,
Since, the above class is deprecated in Spring 3.0.x, I changed it to use org.springframework.web.servlet.view.tiles2.TilesC onfigurerCode:<bean id="tilesConfigurer" class="org.springframework.web.servlet.view.tiles.TilesConfigurer"> <property name="factoryClass"> <value>org.apache.struts.tiles.xmlDefinition.I18nFactorySet</value> </property> <property name="definitions"> <list> <value>/WEB-INF/tiles-defs.xml</value> </list> </property> </bean>
The tiles2.TilesConfigurer does not have a setFactoryClass method unlike tiles.TilesConfigurer which is now deprecated.
I have looked up the tiles2.TilesConfigurer api, which now has the methods, setDefinitionsFactoryClass and setPreparerFactoryClass. Not only I am unable to decide which one is relevant here, I can't find an equivalent class for org.apache.struts.tiles.xmlDefinition.I18nFactoryS et. Is there something of this sort directly available in Tiles 2.2, or do I need to revisit some of my existing code with an equivalent that is available in Tiles 2.2?
Any pointer will be appreciated.
Thank you,
Sundeep


Reply With Quote
