Hi,
main jsp:
<
ig:tabItem value="General Information" selected="false">
<jsp:include page="next.jspf"/>
</ig:tabItem>
jspf page:
<f:subview id="next">
<body>
<hx:graphicImageEx styleClass="graphicImageEx" id="imageEx1" value="/theme/images/Documents_ico_4.ico" width="15" height="15">
</hx:graphicImageEx>
<hx:outputLinkEx value=someDoc.doc styleClass="outputLinkEx" id="linkEx1">
<h:outputText id="text1" styleClass="outputText" value="Updates"></h:outputText>
</hx:outputLinkEx>
<h:outputText styleClass="outputText" id="text2" value="for the NPI Process"></h:outputText>
</h:panelGrid>
</hx:scriptCollector>
</body>
</f:subview>
Thanks!!!!
The problem was <f:view> tag in the "Next.jsp" page.
I did all you advised and deleted this tag and now it's working excellent.
Thanks again for the fast an good service,
Anat.
Hi Anat,
I tried to reproduce your case and this is the solution I made out
1) The main jsp :
f:verbatim>
<jsp:include page="next.jsp"></jsp:include>
</f:verbatim>
2) The next.jsp :
Make sure that someDoc.doc is put in quotation marks
<hx:outputLinkEx value="someDoc.doc" styleClass="outputLinkEx" id="linkEx1">
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%><%@ taglib prefix="f" uri="http://java.sun.com/jsf/core"%><%@ taglib prefix="h" uri="http://java.sun.com/jsf/html"%><%@ taglib prefix="hx" uri="http://www.ibm.com/jsf/html_extended" %><!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"></head><body><f:subview id="next"><hx:scriptCollector id="scriptCollector1"> <h:panelGrid styleClass="panelGrid" id="grid1" columns="3"> <hx:graphicImageEx styleClass="graphicImageEx" id="imageEx1" value="/theme/images/Documents_ico_4.ico" width="15" height="15"> </hx:graphicImageEx> <hx:outputLinkEx value="someDoc.doc" styleClass="outputLinkEx" id="linkEx1"> <h:outputText id="text1" styleClass="outputText" value="Updates"></h:outputText> </hx:outputLinkEx> <h:outputText styleClass="outputText" id="text2" value="for the NPI Process"></h:outputText> </h:panelGrid></hx:scriptCollector></f:subview></body></html>
Sorry, It's exactly what I'm doing, but still getting the same error.
Attached the two files.
I'll appreciate it very much, if you'll help me solve this problem.
Thanks,
Please, include all the source of the pages and check if your jsp-s meet the following requirements:
1. The "top level" JSF page must have an <f:view> tag surrounding all JSF tags being used.
2. You must have <h:form> tag (it is good practice to add also id to form tag)
3. The content of the included JSF (faces) page fragments need to be surrounded with <f:subview> tags. These <f:subview> tags can either be in the included page or surround the include statement in the including page. Either is fine.
4. All non JSF tags and content in the included JSF (faces) page fragments need to be surrounded by <f:verbatim> tags.
Thanks for your answer.
I tried your suggestion and got this error “[Servlet Error]-[Faces Servlet]: javax.faces.FacesException: Assertion Failed”.
Please advice.