Forums Register Login

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

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
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.
"How many licks ..." - I think all of this dog's research starts with these words. Tasty tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 3166 times.
Similar Threads
JSF not working with Struts Tiles
Include a common resource in all pages
To Hans: Difference between Struts and JSF
about accesing js function in JSP
Embedded JSF Pages into another JSF Page.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 14:55:07.