2007/6/15, Ray Clough <[EMAIL PROTECTED]>:
So far, it doesn't work.
It seems that you have done everything. What is your exact problem?
3. in web-xml add the specified servlet reference. If the config parameter is incorrect on the web site, what should it be?
org.apache.tiles.impl.BasicTilesContainer.DEFINITIONS_CONFIG For other parameters, see: http://tiles.apache.org/config-reference.html
Note that the TilesListener is already specified in the web.xml file because it was needed for Struts-2/Tiles-2. Could I get by without specifying the Tiles Servlet, and just use a config param to specify the tiles.xml file as the tiles definition source?
If you mean a "context" parameter, then yes. You can drop TilesServlet and use TilesListener instead.
It seems like T2 is intercepting and rendering responses ending in "*.tiles". Is that correct, and is it configurable? My habit has been to use "*.screen" as my Tiles pages mappings.
It's the "TilesDispatchServlet" and currently it is not configurable (it lacks some code). http://tiles.apache.org/tutorial/advanced/utils.html Anyway, if you want to write a patch to make it configurable, we'll be happy :-)
Finally, what would be needed to make S2 work with T2, but not using the Struts-Tiles plugin? It seems to me that one of the weaknesses of the S2 architecture is using a single rendering scheme by specifying a 'type' for the result mappings. This precludes compound rendering types, like jsf-tiles inside S2. That is, I can't have a page with some portions rendered as JSF, some non-JSF, and use Tiles to compose them.
Using S2/T2 plugin does not preclude, AFAIK, using JSF (you should ask the Struts Users mailing list for this to be sure). The integration between S2 and T2 is only in the result type and in the startup and processing.
As to how the documentation could be clearer about use of servlet OR filter OR listener - I misunderstood it, but would have understood a sentence like: "To configure your application to use Tiles-2, you need to modify the web-xml file to specify using either (1) the TilesServlet, or (2) the TilesFilter, or (3) the TilesListener. The required elements are shown below: ....."
I just updated the site in another way, wait about an hour and see if it is ok.
Also the migration guide does not address some of the steps I specified above, like removing the struts-tiles-xxx.jar file, or removing the tiles-processor and tiles-plugin elements from the struts-config.xml file. I guess those steps are required, but the documentation never told me that, only my previous experience. Lots of people haven't any previous experience to guide them.
Well thanks! Why don't you open an issue for that? Remember to use the "TILESSHARED" project. If you want you can write a patch for the site. We always welcome help by others. Ciao Antonio
