JSF tag that load HTML from external source

后端 未结 1 1559
深忆病人
深忆病人 2020-12-21 21:20

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 :



        
相关标签:
1条回答
  • 2020-12-21 22:24

    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:

    • ui:include can not include pages with different server context
    • Overcoming "Display forbidden by X-Frame-Options"
    0 讨论(0)
提交回复
热议问题