• Post Reply Bookmark Topic Watch Topic
  • New Topic

is there any way to include or show html files inside JSF files in runtime?  RSS feed

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
Thank you for reading my post.
is there any way that we could include some html files into jsf files in runtime?

imagine that we have tens of already designed static html pages and it is growing, we should include this pages into one of our jsf pages in runtime based on user inputs in prev JSF pages.

What i do not know is the method or tag that help me to include one HTML inot a jsf page.

Thanks
 
Tim Holloway
Bartender
Posts: 18781
74
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Technically, you can't include an HTML file inside a JSP for the same reason that you can't include an HTML file inside another HTML file. Except when you're using frames to stitch multiple pages together, an HTML file (or data stream) is supposed to precisely define one and only one page display.

That's as opposed to HTML fragments, which might be copied in to form parts of an HTML page display.

The process of building up HTML pages from common part definitions is known as tiling. The actual HTML sent to the used may come in whole or in part from JSF or JSP definitions as well as from HTML. There are several mechanisms that support that, including Struts tiles and Facelets.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!