Hi!
 
I'm using MyFaces and Tomcat with Jboss, but I have a similar approach of including pages for example with header and footer.
 
This is my header.jsp

---------------------header.jsp--------------------------------

<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>

<head>

<f:loadBundle basename="MessageResources" var="messages" />

<title><h:outputText value="#{messages.headerTitle}" /> </title>

<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/styles.css" />

<script type="text/_javascript_" src="${pageContext.request.contextPath}/_javascript_/_javascript_.js"></script>

</head>

-----------------------------------------------------------------

And this is a jsp-page where I include it:
 

<f:view>

<html>

<%@include file="header.jsp"%>

<body>

Hope that this can help you! :)
 
Regards,
 
Eivind


From: Patrick McCabe [mailto:[EMAIL PROTECTED]
Sent: 3. august 2006 19:32
To: [email protected]
Subject: <jsf:include> and portlets

Hi, not sure if this is the correct place to ask this question, but here goes.

I am working on a website that uses Jetspeed portal, MyFaces and Tomcat.

I am trying to include a fragment in one of my jsp pages as follows

<f:subview id="classifiedsMenugaced">
            <jsp:include page="/view/inc/menu.jsp" flush="true"/>
 </f:subview>

The problem is that the included page does not get interpreted.  When I view the source code, it is exactly as it is in the jsp file

Here is my included menu.jsp
            <t:dataTable
                id="affiliateCategoryList"
                value="#{ClassifiedAffiliateBean.classifiedCategoryBeanList}"
                var="categoryBean"
                rowIndexVar="row">
           
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Categories" />
                    </f:facet>
                    <h:panelGroup>
                    <t:commandLink action="" rendered="#{ categoryBean.cc.name != ClassifiedListingBackingBean.categoryId}">
                        <h:outputText value="#{categoryBean.cc.name} " />
                        <t:updateActionListener property="#{ ClassifiedListingBackingBean.categoryId}" value="#{categoryBean.cc.name}" />
                        <t:updateActionListener property="#{ClassifiedListingBackingBean.cpl }" value="#{null}" />
                    </t:commandLink>
                    <h:outputText value="#{categoryBean.cc.name}" rendered="#{ categoryBean.cc.name == ClassifiedListingBackingBean.categoryId}" />
                    <h:outputText value="(#{categoryBean.numListings})" />
                    </h:panelGroup>
                </h:column>
            </t:dataTable>

Does anybody have any idea as to how to get this working ?

Thanks

Pat

Reply via email to