File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes including a JSF page inside another JSF Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "including a JSF page inside another JSF" Watch "including a JSF page inside another JSF" New topic

including a JSF page inside another JSF

Elizabath Lima
Ranch Hand

Joined: Nov 23, 2005
Posts: 32
Hi All,

I'm trying to include a JSF page inside another page using an <a4j:commandLink>. I could include an html page using this ajax.
I'm trying to include the a jsf contained page using the following code:

<f:subview id="sub1">
<a4j:include viewId="#{bean.viewPageName}"></a4j:include>

It is throwing the following error.

19:53:49,609 WARN [taglib] Can't leverage base class
at com.sun.faces.taglib.jsf_core.ViewTag.getComponentType(
at javax.faces.webapp.UIComponentELTag.createComponent(
at javax.faces.webapp.UIComponentClassicTagBase.createChild(
at javax.faces.webapp.UIComponentClassicTagBase.findComponent(
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(
at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(
at org.apache.jsp.display_jsp._jspx_meth_f_005fview_005f0(

Can anyone say what went wrong?
Denise Smith
Ranch Hand

Joined: Jul 26, 2005
Posts: 36

<jsp:include page="fileName.jsp"flush="false">
<jsp:param name="ParmName" value="#{param.pName}" /></jsp:include>
[ August 27, 2007: Message edited by: Denise Smith ]

Surround yourself with learners...They will educate you!
I agree. Here's the link:
subject: including a JSF page inside another JSF
jQuery in Action, 3rd edition