Definitely a question to ask to the Spring forums:
http://forum.springsource.org/forumdisplay.php?f=25

Ciao
Antonio

2010/8/5 heamaya <[email protected]>:
>
> I cannot get Tiles definitions to see Spring beans when a class that extends
> ViewPreparerSupports is to be called...
>
>        <definition name="OperatorActionListing" extends="administratorBase"
> preparer="operatorActionListing">
>                <put-attribute name="title" value="Operators Listing" />
>                <put-attribute name="body" 
> value="/jsp/administrator/operatorList.jsp" />
>        </definition>
>
> I mean, this definition doesn't call the ViewPreparer declared in the
> bean...
>
>        <bean id="genericHibernateDAO" 
> class="ro.dao.hibernate.GenericHibernateDAO"
> abstract="true" autowire="no">
>                <property name="sessionFactory" ref="sessionFactory" />
>        </bean>
>
>
>        <bean id="customerDAO" class="ro.dao.hibernate.CustomerDAOHibernate"
> parent="genericHibernateDAO" autowire="no"/>
>
>        <bean id="operatorActionListing"
> class="ro.action.list.OperatorActionListing" scope="prototype"
> autowire="no">
>                <property name="customerDAO" ref="customerDAO" />
>        </bean>
>
> I  have configured tiles in spring this way:
>
>        <bean id="tilesConfigurer"
> class="org.springframework.web.servlet.view.tiles2.TilesConfigurer">
>                <property name="definitions">
>                        <list>
>                                <value>/WEB-INF/tiles.xml</value>
>                        </list>
>                </property>
>                <property name="preparerFactoryClass"
> value="org.springframework.web.servlet.view.tiles2.SpringBeanPreparerFactory"
> />
>        </bean>
>
> Any idea? Bear in mind I'm using struts 2 as MVC...
> --
> View this message in context: 
> http://old.nabble.com/Tiles-2-Spring-3-Struts-2-tp29356393p29356395.html
> Sent from the tiles users mailing list archive at Nabble.com.
>
>

Reply via email to