Adding iframe to JSF components
问题 Is it possible to add an iframe to a JSF component(RichFaces, PrimeFaces) from backing bean? I need to embed externel webpages in my homepage. And user needs to set this url. I cannot use jQuery. I am not able to find any iframe equivalent JSF component. Is there any particular reason for this? 回答1: Just use plain HTML. <iframe src="#{bean.iframeUrl}"></iframe> The most probable reason why a component doesn't exist is because there would be no extra advantages to offer when wrapping it in a