Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

include jspf in another jspf  RSS feed

 
elijah light
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
elijah light
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 18662
71
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!