0 Replies Latest reply on Aug 17, 2009 8:31 PM by Arbi Sookazian

    restrictions using ui:include with factory pattern?

    Arbi Sookazian Master

      I was using this:


      <ui:include src="/EquipmentProcessingViewModalPanel.xhtml" />



      and my @Factory method was not executing.


      When I commented the tag above in my main facelet and pasted the modalPanel code directly into the main facelet, it works.


      Why?  I was including at the top like this:


      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
                            "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
           xmlns:s="http://jboss.com/products/seam/taglib"
           xmlns:ui="http://java.sun.com/jsf/facelets"
           xmlns:f="http://java.sun.com/jsf/core"
           xmlns:h="http://java.sun.com/jsf/html"
           xmlns:rich="http://richfaces.org/rich" 
           xmlns:a4j="http://richfaces.org/a4j"
           template="/templates/normal.xhtml">
           
           <ui:define name="body">
           
                <ui:include src="/pleaseWaitModalPanel.xhtml" />
                <!-- <ui:include src="/EquipmentProcessingViewModalPanel.xhtml" /> -->
                <ui:include src="/EquipmentProcessingHistoryModalPanel.xhtml" />



      but don't think the insert location matters AFAAIK.  thx.