9 Replies Latest reply on Dec 7, 2009 4:35 AM by Ilya Shaikovsky

    <a4j:include>

    Roger Lee Apprentice

      I'm trying to use the <a4j:include> to include some XHTML on a rich:tab of a rich:tabPanel.

      I using;

      <rich:tabPanel>
      <rich:tab id="homeTab" label="Home">
      <!-- <a4j:include viewId="/home.xhtml" /> -->
      </rich:tab>

      <rich:tab id="mapTab" label="Map">
      <a4j:include viewId="/map.xhtml" />
      </rich:tab>

      <rich:tab id="journeysTab" label="Journeys">
      <!-- <a4j:include viewId="/journeys.xhtml" /> -->
      </rich:tab>

      <rich:tab id="reportsTab" label="Reports">
      <!-- <a4j:include viewId="/reports.xhtml" /> -->
      </rich:tab>

      <rich:tab id="yourAccountTab" label="Your Account">
      <!-- <a4j:include viewId="/account.xhtml" /> -->
      </rich:tab>

      <rich:tab id="devicesToTrackTab" label="Devices to Track">
      <!-- <a4j:include viewId="/devicesToTrack.xhtml" /> -->
      </rich:tab>
      </rich:tabPanel>

      No matter where I put map.xhtml it's not found.

      What am I doing wrong?

        • 1. Re: <a4j:include>
          Ilya Shaikovsky Master

          if you dealing with can't be included exceptions from include - them could be risen not only if page not found but if included page itself contains some unreachable includes or wrong templates definitions.

          • 2. Re: <a4j:include>
            Roger Lee Apprentice

             

            "ilya_shaikovsky" wrote:
            if you dealing with can't be included exceptions from include - them could be risen not only if page not found but if included page itself contains some unreachable includes or wrong templates definitions.


            All the pages work fine when used (currently) as a <rich:toolBarGroup>



            • 3. Re: <a4j:include>
              Nick Belaevski Master

              Hi,

              Just to clarify: so, when you are using tabs, pages are not found, but found when you use rich:toolBarGroup? Do you use a4j:include for the case of rich:toolBarGroup too?

              • 4. Re: <a4j:include>
                Roger Lee Apprentice

                 

                "nbelaevski" wrote:

                Just to clarify: so, when you are using tabs, pages are not found, but found when you use rich:toolBarGroup? Do you use a4j:include for the case of rich:toolBarGroup too?


                Using toobar currently (works);

                <rich:toolBarGroup>
                 <h:outputText value="#{projectName}:" style="FONT-SIZE: small; FONT-FAMILY: 'Arial';"/>
                 <s:link id="menuHomeId" view="/home.xhtml" value="Home" propagation="none" style="FONT-FAMILY: 'Arial'; FONT-SIZE: small;"/>
                 <s:link id="menuMapId" view="/map.xhtml" value="Map" rendered="#{identity.loggedIn}" propagation="none" style="FONT-FAMILY: 'Arial'; FONT-SIZE: small;"/>
                 <s:link id="menuItineryId" view="/journeys.xhtml" value="Journeys" rendered="#{identity.loggedIn}" propagation="none" style="FONT-FAMILY: 'Arial'; FONT-SIZE: small;"/>
                 <s:link id="menuReportsId" view="/reports.xhtml" value="Reports" rendered="#{identity.loggedIn}" propagation="none" style="FONT-FAMILY: 'Arial'; FONT-SIZE: small;"/>
                 <s:link id="menuYourAccountId" view="/account.xhtml" value="Your Account" rendered="#{identity.loggedIn}" propagation="none" style="FONT-FAMILY: 'Arial'; FONT-SIZE: small;"/>
                 <s:link id="menuDevicesToTrack" view="/devicesToTrack.xhtml" value="Devices to Track" rendered="#{identity.loggedIn}" propagation="none" style="FONT-FAMILY: 'Arial'; FONT-SIZE: small;"/>
                 </rich:toolBarGroup>



                Want to use tabs. Can't find includes;
                <rich:tabPanel>
                 <rich:tab id="homeTab" label="Home">
                 <!-- <a4j:include viewId="/home.xhtml" /> -->
                 </rich:tab>
                
                 <rich:tab id="mapTab" label="Map">
                 <a4j:include viewId="/map.xhtml" />
                 </rich:tab>
                
                 <rich:tab id="journeysTab" label="Journeys">
                 <!-- <a4j:include viewId="/journeys.xhtml" /> -->
                 </rich:tab>
                
                 <rich:tab id="reportsTab" label="Reports">
                 <!-- <a4j:include viewId="/reports.xhtml" /> -->
                 </rich:tab>
                
                 <rich:tab id="yourAccountTab" label="Your Account">
                 <!-- <a4j:include viewId="/account.xhtml" /> -->
                 </rich:tab>
                
                 <rich:tab id="devicesToTrackTab" label="Devices to Track">
                 <!-- <a4j:include viewId="/devicesToTrack.xhtml" /> -->
                 </rich:tab>
                 </rich:tabPanel>
                

                No matter where i put the say, map.xhtml it doesn't find it.

                • 5. Re: <a4j:include>
                  Nick Belaevski Master

                  What are JSF/Facelets/RF versions?

                  • 6. Re: <a4j:include>
                    Roger Lee Apprentice

                     

                    "nbelaevski" wrote:
                    What are JSF/Facelets/RF versions?


                    Seam: 2.2.0.GA
                    Rich Faces: richfaces-ui-3.3.2.GA

                    Deployed as an EAR on JBoss: jboss-4.2.3.GA


                    • 7. Re: <a4j:include>
                      Ilya Shaikovsky Master

                      http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces

                      check for example dataTable.xhtml in this folder.

                      We using including into tab panel across many demo pages so can't confirm this.

                      • 8. Re: <a4j:include>
                        Roger Lee Apprentice

                         

                        "ilya_shaikovsky" wrote:
                        http://anonsvn.jboss.org/repos/richfaces/branches/community/3.3.X/samples/richfaces-demo/src/main/webapp/richfaces

                        check for example dataTable.xhtml in this folder.

                        We using including into tab panel across many demo pages so can't confirm this.


                        Was trying to use;

                        <a4j:include>

                        but if I use (as per example);

                        <rich:tab id="mapTab" label="Map">
                        <ui:include src="/map.xhtml" />
                        </rich:tab>

                        I get;

                        An Error Occurred:
                        Could not Resolve Variable [Overflow]: request
                        +- Stack Trace
                        javax.el.ELException: Could not Resolve Variable [Overflow]: request
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:64)
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)
                        at com.sun.facelets.el.VariableMapperWrapper.resolveVariable(VariableMapperWrapper.java:60)

                        etc etc .....

                        • 9. Re: <a4j:include>
                          Ilya Shaikovsky Master

                          so seems the problem in included page as I said previously.

                          please paste its content somewhere.