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?
