aspose file tools
The moose likes JSF and the fly likes include jspf in another jspf Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » JSF
Reply Bookmark "include jspf in another jspf" Watch "include jspf in another jspf" New topic
Author

include jspf in another jspf

elijah light
Greenhorn

Joined: Jul 19, 2012
Posts: 3
I'm working on a JSF project on NetBeans.
I'm using JSPF fragments for modularity.
My JSPF directory is "/WEB-INF/jspf".
I'm using for including JSPF files.
The problem is: I tried to include a JSPF file in another JSPF file but it didn't work.

Can anybody give any idea about the problem please?
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14572
    
    7

Welcome to the JavaRanch, Elijah!

JSP-format web pages are obsolete as of JSF2. They have been replaced with View Definition Language (.xhtml). There are several Facelets tags that can include view components inside of other view components.


Customer surveys are for companies who didn't pay proper attention to begin with.
elijah light
Greenhorn

Joined: Jul 19, 2012
Posts: 3
Firstly thank you very much.

And then, why i didn't use .xhtml is i had problems while creating swfobject inside an .xhtml page and i went down to .jsp
And i guess this is the topic of another question.

Thanks anyway.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14572
    
    7

Use the JSF f:verbatim tags to enclose the Flash video.

Better yet, don't do Flash video. But on that one, I'm swimming against the current.
elijah light
Greenhorn

Joined: Jul 19, 2012
Posts: 3
Hello again,

i was usig



i changed it and i linked swfobject statically.
it works for google chrome but no for firefox.
ie even has no idea about xhtml

i guess java is a little bit fast in transition to xhtml in comparison with browsers.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14572
    
    7

The ".xhtml" in JSF is actually View Definition Language, not w3c-standard html4. It is syntactically similar to xhtml in that it is subject to XML syntax rules, but the actual VDL is never sent to the client. It's compiled to create the UIComponent tree from which the JSF renderers generate the actual outgoing HTML. Assuming that HTML renderers are being used. People tend to forget that the renderers are plugin modules and that JSF can render other types of documents besides HTML if it's configured to do so.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: include jspf in another jspf
 
Similar Threads
Is it possible to use [jsp:include] in a JSP Tag File?
Include-prelude and include-coda not Working?
jsp:include not working for jspf file in /WEB-INF
include file path
jsp static include - no joy