[Logo] JavaRanch » JavaRanch Saloon
  Search | FAQ | Recent Topics | Hot Topics
Register / Login


Reply Bookmark it! Watch this topic JavaRanch » Forums » Application Frameworks » Struts
 
RSS feed
 
New topic
Author

How to configure tiles with JSF+Struts2 Integration ?

Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Messages: 15

Hello All,
Good day.
I have integrated Struts2 with JSF.But I am not able to configure Tiles with this environment.Because I used
" <package name="jsf" extends="jsf-default"
namespace="/jsf/sample-jsf"> " in struts.xml ...

And I may use Tiles with this scenerio then I have to
"extends = "tiles-default" " in struts.xml...

So I couldn't figure out this issue And I dont know what are the entries would place in struts.xml...If anyone knows give me your suggestion..Thanks in Advance

Cheers,
-Marimuthu Udayakumar
http://teknoturfian.blogspot.com

Thanks and Regards,
P.Marimuthu Udayakumar
David Newton
Author
Bartender

Joined: Sep 29, 2008
Messages: 6884

If I remember correctly you *can* extend multiple packages. In this case it's not likely to work, but it's easy enough to try.

When/if it doesn't, you'd need to create a package that merged the two package's peculiarities together (interceptor stacks, whatever else custom they include).

Consultant/Trainer | Polyglottal Developer | Struts Committer/PMC | Struts 2 Web Application Development
Marimuthu Udayakumar
Greenhorn

Joined: Jun 17, 2008
Messages: 15

Dear David Newton ,
Thanks for your suggestion , I found the solution that use of extend the multiple packages.
and I have put the entry in web.xml,struts.xml,tiles.xml files like below.Its working fine.I got the flow.

web.xml
*******




struts.xml
********



struts-jsf.xml
***********




tiles.xml
*******



Note:
I have implemented jsf tag in all jsp files (layout.jsp.header.jsp,footer.jsp.body.jsp).But i have used <f:view></f:view> in layout jsp only and I used <f:subview id="header"> ..... </f:subview > tag for every content container like header,footer,body.

Thanks,
-Marimuthu Udayakumar
http://teknoturfian.blogspot.com




Thanks and Regards,
P.Marimuthu Udayakumar
 
 
 
Reply Bookmark it! Watch this topic JavaRanch » Forums » Application Frameworks » Struts
 
RSS feed
 
New topic
The most intelligent Java IDE