• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
  • paul wheaton
Sheriffs:
  • Tim Cooke
  • Devaka Cooray
  • Rob Spoor
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:

including a JSF page inside another JSF

 
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
</f:subview>

It is throwing the following error.

19:53:49,609 WARN [taglib] Can't leverage base class
java.lang.IllegalStateException
at com.sun.faces.taglib.jsf_core.ViewTag.getComponentType(ViewTag.java:258)
at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:215)
at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:476)
at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:660)
at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1111)
at com.sun.faces.taglib.jsf_core.ViewTag.doStartTag(ViewTag.java:179)
at org.apache.jsp.display_jsp._jspx_meth_f_005fview_005f0(displayTree_jsp.java:155)

Can anyone say what went wrong?
 
Ranch Hand
Posts: 36
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
simply:

<jsp:include page="fileName.jsp"flush="false">
<jsp:param name="ParmName" value="#{param.pName}" /></jsp:include>
[ August 27, 2007: Message edited by: Denise Smith ]
 
That feels good. Thanks. Here's a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic