Help coderanch get a
new server
by contributing to the fundraiser
  • 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

include jspf in another jspf

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Saloon Keeper
Posts: 27933
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 27933
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Saloon Keeper
Posts: 27933
198
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
eat bricks! HA! And here's another one! And a tiny ad!
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic