voyent
Dynamic include in tabset (Facelets or Jsp ?)  XML
Forum Index -> Woodstock to ICEfaces Migration
Author Message
singhde

Joined: 30/Mar/2009 00:00:00
Messages: 20
Offline


I want to build a web application, where the content of all tabs in a tabset will be jsps.(I mean each tab will be associated with a specific Jsp and this jsp will be displayed as tab content on the click of a tab)
To achieve this i tried the JSP static include but it didn't work for me.

Please suggest which is better to use jsp or Facelets because i will be using this feature quite frequently in my application.

I googled a lot but tried few codes but could not get through and have been getting nested form and other errors.

A sample working code to include jsp or Facelets will be appreciated.

Thanks in advance !
mkat

Joined: 16/Oct/2008 00:00:00
Messages: 96
Offline


Facelets is definitely better in my opinion.

Facelet include example:
Code:
<ice:panelTab disabled="#{mypage.disableTabs}"  id="panelTab3" label="tab">
                             <ice:panelLayout id="panelLayout3" style="position: inherit; width: 100%; height: 100%;">
                                <ui:include src="#{mypage.tabcontent}"></ui:include>
                             </ice:panelLayout>
                         </ice:panelTab>


include's src in mypage backing:
Code:
public String getTabContent{
 return "mytabContent.jsp"
 }


entirety of mytabContent.jsp:
Code:
<div  xmlns:f="http://java.sun.com/jsf/core"
 
         xmlns:h="http://java.sun.com/jsf/html"
 
         xmlns:ice="http://www.icesoft.com/icefaces/component"
 
         xmlns:ui="http://java.sun.com/jsf/facelets"
 
         xmlns:c="http://java.sun.com/jstl/core"
 
         xmlns:fn="http://java.sun.com/jsp/jstl/functions">
 <ice:outputText value="Test"/>
 Page content goes here!
                    
                
            </div>

Lazarus__

Joined: 05/Feb/2008 00:00:00
Messages: 46
Offline


Hi there,

I have the same problem but I would not like to use facelets mainly because the application that i am developing does not contain hudge forms so I would use facelets just include the pages in the tabs. I tried with the <jsp:include page=""></jsp:include> but does not work.

Can you help me please?


thanks and regards

Laz
 
Forum Index -> Woodstock to ICEfaces Migration
Go to:   
Powered by JForum 2.1.7ice © JForum Team