0

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?

9
  • What does the generates onclick look like? Commented Jul 28, 2015 at 14:00
  • Problem can be in path of B.xhtml in ui:include (try with ./B.xhtml if B is in the same folder as A) or in wrong position of ui:include (can produce the nested forms). Commented Jul 28, 2015 at 14:04
  • @VasilLukach both file are inside same folder otherwise include will throw File Not Found Exception Commented Jul 28, 2015 at 17:37
  • @Makhiel I did not get your point i added a space which was missing Commented Jul 28, 2015 at 17:39
  • 1
    Just use plain text like "Hello" instead of <rich:popupPanel>. Show both parent and include in its entirety with the minimum necessary code to demonstrate the problem of "Hello" not showing up. Commented Jul 28, 2015 at 17:52

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.