I did not get any replies to my post. I think I will go with the first approach as I listed below as I don’t have too many pages to navigate within a tab.


From: Lorinda Swick [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 11, 2005 7:40 PM
To: 'MyFaces Discussion'
Subject: RE: Question regarding panelTabbedPane and subview

 

This is similar to the question I just posted.  Have there been any responses?   Amit, could you find a solution?

 

Thanks. -Lorinda

 


From: Amit Modi [mailto:[EMAIL PROTECTED]
Sent: Wednesday, January 05, 2005 5:34 PM
To: MyFaces Discussion
Subject: Question regarding panelTabbedPane and subview

 

Hi,

 

I have a tabbedPanel consisting of various tabs. Each tabs content is added as a sub view (using jsp:include) to the main JSF.

Each tab is supposed to provide standard add, edit, delete, search functionality for the selected tab using various included JSFs.

 

 How can I show a different included JSF in the selected tab depending on the action without losing the selected tab?

 

 1. One approach can be to have all forms/pages added as sub views to the tab and control their rendered attribute using the backing bean (rendering only one at a time).

2. Another could be to provide the name of the included JSF at runtime which is again difficult to achieve with <jsp: include>

 

I think there would be a better way which I am missing. Can somebody please suggest?

 

Thanks

Amit Modi

Reply via email to