Meaningless Drivel is fun!*
The moose likes JSF and the fly likes how to create dynamice include Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "how to create dynamice include" Watch "how to create dynamice include" New topic
Author

how to create dynamice include

john smiths
Greenhorn

Joined: Feb 19, 2012
Posts: 3
Hi All:

I am using Icefaces 1.8.2 with JSF 1.1.
I can make the following include work:
<jsp:directive.include page="/test/contacts/testMain.jspx" />



However, I cannot make the following include work:
<jsp:directive.include page="#{sessionBean.tab.url}" />

I want the value to come from the bean "sessionBean.tab.url"

The only way I can make it work would be to convert the project to facelet and use this:
<ui:include src="#{sessionBean.tab.url}" />

I don't want to use facelet.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: how to create dynamice include