1

Is there any JSF tag that we can use it in our page to load an external HTML source and put it into the resulted page :

something like this :

<div id="stackOverFlowPageId">
    <custTag:includeExternalHTMLSource 
       url="http://www.stackoverflow.com" [elementToInclude="body"] />
</div>

When a client request the JSF page that contain this code ,the server will handle this and load the page and put it into the div stackOverFlowPageId and send the result to the client.

Aritz
  • 30,971
  • 16
  • 136
  • 217
Mifmif
  • 3,132
  • 18
  • 23

1 Answers1

2

As you can make use of standard HTML tags in facelets too, just an iframe will do the work:

<div id="stackOverFlowPageId">
    <iframe src="http://www.w3schools.com" 
        height="100%" width="100%" />
</div>

Remember some sites do not enable to be included in frames for security reasons.

See also:

Community
  • 1
  • 1
Aritz
  • 30,971
  • 16
  • 136
  • 217