I have included a file like this in A.xhtml page
<ui:include src="B.xhtml" /> and trying to open it with this command
<a4j:commandButton value="Add user" onclick="#{rich:component('popup')}.show()" /> and here is my B.xhtml file
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:a4j="http://richfaces.org/a4j" xmlns:rich="http://richfaces.org/rich" xmlns:fn="http://java.sun.com/jsp/jstl/functions"> <f:metadata> <f:event listener="#{login.verifyLogin}" type="preRenderView" /> </f:metadata> <body> <ui:composition> <ui:define name="content"> <rich:popupPanel id="popup" modal="true" autosized="true" resizeable="false"> <h:form> <table cellspacing="20px"> <tr> ..... .... ..... </tr> </table> </h:form> </rich:popupPanel> </ui:define> </ui:composition> </body> </html> But popup window not opening What can be cause of the issue?
ui:include(try with ./B.xhtml if B is in the same folder as A) or in wrong position ofui:include(can produce the nested forms).includewill throwFile Not Found Exception<rich:popupPanel>. Show both parent and include in its entirety with the minimum necessary code to demonstrate the problem of "Hello" not showing up.