2 Replies Latest reply on Nov 30, 2010 5:57 AM by gerryjun

    a4j:include does not trigger page.xml's

    gerryjun

      I'm modifying a seam-generated project, to make it one-page-all-ajax page.


      on the edit pages like edit.page.xml their is a call wire()


      <action execute="#{tableHome.wire}"/>



      , this does not appear to be being executed when the page is use like;




              
      <a4j:include  id="mainbody" viewId="#{mypageEdit.xhtml}" ></a4j:include>
      



      how can i call wire before the include, but after the button is executed, just like what would happen if page.xml's were being executed?


      Thanks


        • 1. Re: a4j:include does not trigger page.xml's
          antibrumm.mfrey0.bluewin.ch

          Hi
          You have to create the myEditPage.page.xml and put the action there. This should work

          • 2. Re: a4j:include does not trigger page.xml's
            gerryjun


            Hi Martin,


                     I already have a myEditPage.page.xml with an action execute, but the method does not appear to be being triggered, as i put in some log and sys.out but im not getting any output to indicate its being executed.


                     calling the page directly via myEditPage.seam executes the method, but using it as a a4j:include viewId does not.


                     that is my problem, is it normally not executed when used as an a4j:include? and how i can achieve the same effect if in-case page.xml are not executed when used as an include.


            Thanks