Using Tiles with WebFlow and JSF
Hi,
I downloaded the WebFlow 1.0 EA and tried out the sellitem-jsf sample app. Is there a way I can use Tiles with JSF, instead of including files using jsp:include.
Thanks,
Vineet
Vineet,
I currently use Tiles with SWF and had no problems.
Thanks for your prompt response. Could you point me to some documentation on how to do that, or if you don't mind describing the steps that you took. I am very familiar with how Spring MVC/Tiles works.
Thanks a lot.
Just wanted to mention again that I am tring to use Tiles with JSF/Webflow. I was able to use Tiles with plain Webflow (no JSF).
I would love to know how to use Tile with JSF and Webflow. Thanks again.
Take a look at the spring reference manual, that will get you going. Here is a link to the section of interest:
sp...tml#view-tiles
Hi,
I have used Tiles with plain Webflow before (no JSF).
I am looking at the sellitem-jsf sample and would love to know how to use Tiles with JSF in that sample application.
I'm not sure where to start as Webflow does the navigation and JSF handles the view part. I looked deeper and found a ViewIdResolver class in org..webflow.executor.jsf interface. There is a simple implementation which in part of FlowNavigationHandler.java.Code: public static class DefaultViewIdResolver implements ViewIdResolver {
public String resolveViewId(String viewName) {
return viewName;
} }
I am not sure how I can use tiles in this scenario, as it seems that WebFlow is calling JSF for views.
Any help is appreciated.
You would need to configure JSF to use Tiles (my last project used both), if memory serves me right. If you are using Apache's MyFaces Implementation, see the following link.
myfaces/Tiles...ht=%28Tiles%29
Hopes this helps and good luck.
What vineet wanted is using SWF + JSF + TILES all together, however, the solutions you provided only address two of them, either SWF +JSF, or JSF + TILES, we want to get all three working together.
I'm still looking forward to see someone could solve this.
Ok, I knew what Vineet wanted.
I admit, I have not used all three (JSF, TILES, SWF) together in the same application, however, I don't see why they can't all be combined. What are the issues/problems you are running into? Code? Stacktrace?
Can anyone else comment on this? Keith, what do you think?
Hi Curtney,
You are absolutely right, these 3 can be integrated. Infact, I was able to do the integration after you pointed me to the MyFaces reference a few weeks ago.
I quick follow up question: the current solution is myfaces specific. Is there a way to do the JSF/tiles integration with Sun Reference implementation.
Thanks,
Vineet |