File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSF and the fly likes how to include one jsf page in another jsf page ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSF
Reply locked New topic
Author

how to include one jsf page in another jsf page ?

a phil
Greenhorn

Joined: Nov 11, 2008
Posts: 9
Hi,

I need to include one jsf page into another jsf page. (Both are JSF pages)

Requirement:
say page2 has to be included in page1. page1 and page2 are supposed to use same backing bean to update their page values. In fact both page1 and page2 are supposed to be as one single page. Since this is creating a huge monster page.. i am planning to move out some stuff and create a separate page called 'page2' and want to include this inside page1 and during rendering both page values are updated from single backing bean

Will a simple <@include file="page2.jsf"> work in page1. I am aware that to do this we need to place the contents of page2 in <f:subView></f:subView> tags. But am not sure if this works for a single backing bean. Will this update both the pages the included page and the including page with the values from the same singlebacking bean during rendering ??

My other concern is how do i configure page2 on the face-config.xml ?

Am really new to this JSF include idea.. How do I go about... Please hollar again if my requirement is not clear.. I can elucidate well. a quick reply is really appreciated.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60810
    
  65

Please do not post the same question more than once.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
 
subject: how to include one jsf page in another jsf page ?
 
Similar Threads
linking jsp pages in a liferay portlet
Need to understand the Request Scope
Initialising request scoped bean
how to include one jsf page in another jsf page ?
Pass data between managed/ backing beans