2011/9/8 Muneer Malik <[email protected]> > Is there an example how to create a Mutable tiles Container? > > I am trying to create a definition on a fly at run-time, Is there an > example > how to do this? > > In my web.xml I have; > > <listener> > > > <listener-class>net.polymorphic.emr.common.listener.CustomTilesListener</listener-class> > </listener> > which is correctly loading all the tiles.xml > > but I am confused how to go about creating tiles definition at run time? at > what point this code is rendered, do I need implement or extend any class? >
In fact now I notice that the docs are a bit lacking about this aspect. Anyway, you need eithet to use CompleteAutoloadTilesContainerFactory (tiles-extras module) or create your own TilesContainerFactory that extends BasicTilesContainerFactory and override "instantiateContainer" like here: http://tiles.apache.org/2.2/framework/tiles-extras/xref/org/apache/tiles/extras/complete/CompleteAutoloadTilesContainerFactory.html#119 After that, you can create definitions either by using the API or using taglibs. You can find the docs here: http://tiles.apache.org/2.2/framework/tutorial/advanced/runtime.html HTH Antonio > > help would be appreciated. > > Thanks > Muneer > > > -- > Confidentiality Notice > ------------------------------- > > > THIS INFORMATION IS INTENDED ONLY FOR THE USE OF THE ADDRESSEE AND MAY > CONTAIN INFORMATION THAT IS PRIVILEGED, CONFIDENTIAL AND EXEMPT FROM > DISCLOSURE UNDER APPLICABLE LAW. IF YOU ARE NOT THE INTENDED RECIPIENT, OR > THE EMPLOYEE OR AGENT RESPONSIBLE FOR DELIVERING THIS MESSAGE TO THE > INTENDED RECIPIENT, YOU ARE HEREBY NOTIFIED THAT ANY DISSEMINATION, > DISTRIBUTION OR COPYING OF THE COMMUNICATION IS STRICTLY PROHIBITED. IF > YOU > HAVE RECEIVED THIS COMMUNICATION IN ERROR, PLEASE NOTIFY IMMEDIATELY AT > [email protected] OR BY TELEPHONE AT 817-458-1764. > > > THANK YOU. >
