6 Replies Latest reply on Mar 20, 2007 9:52 AM by Andreas Franke

    rerender templating

    Andreas Franke Apprentice

      Hello everyone,

      Is it possible with facelets/templates and a4j rerender to redraw only the ui:insert tag of the main-template.

      I tried this without success. Sometime the resultscreen show only xml or the whole page is rerendert not only the content.

      Here what I have tried...

      main.xhtml (template)

      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
       "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       xmlns:t="http://myfaces.apache.org/tomahawk">
      <head>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <title>SF</title>
      <link href="./stylesheet/theme.css" rel="stylesheet" type="text/css" />
      </head>
      
      <body>
       <div id="bodycontent">
       <div id="north">
       </div>
      
       <div id="west"><ui:include src="./layout/navigation.xhtml" /></div>
      
       <a4j:outputPanel id="center">
       <h:panelGroup id="group">
       <ui:insert name="content" />
       </h:panelGroup>
       </a4j:outputPanel>
       </div>
      </body>
      </html>
      


      navigation.xhtml
      
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       xmlns:t="http://myfaces.apache.org/tomahawk">
       <h:form>
      
      
       <rich:panelBar height="300" id="panelbar" width="160">
       <rich:panelBarItem binding="#{pagecontent.myBarItem}" id="sf" label="SF">
       <a4j:region><a4j:commandLink action="#{pagecontent.find}" value="button" reRender="center"></a4j:commandLink></a4j:region>
       </rich:panelBarItem>
       <rich:panelBarItem binding="#{pagecontent.myBarItem2}" id="adb" label="Addressbook" contentClass="activeItem">
       <a4j:region><a4j:commandLink action="#{pagecontent.find}" value="button" reRender="center"></a4j:commandLink></a4j:region>
       </rich:panelBarItem>
       </rich:panelBar>
       </h:form>
      </ui:composition>
      


      action="#{pagecontent.find}" calls the find method to return the outcome(i.e. usereditor).

      usereditor.xhtml
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       xmlns:t="http://myfaces.apache.org/tomahawk"
       template="main.xhtml">
       <ui:define name="content">
       <br/>
       <h:form>
       <s:validateAll>
       <f:facet name="aroundInvalidField">
       <s:span styleClass="errors"/>
       </f:facet>
       <div id="undiv" class="entry">
       <div class="label"><h:outputLabel for="username">Username:</h:outputLabel></div>
       <div class="input">
       <s:decorate>
       <h:inputText id="username" value="#{user.username}" required="true" partialSubmit="true" ></h:inputText>
       <br/>
       <s:message/>
       </s:decorate>
       </div>
       </div>
      </s:validateAll>
      </h:form>
      </ui:define>
      </ui:composition>
      


      navigation.xml
      <?xml version='1.0' encoding='UTF-8'?>
      <!DOCTYPE faces-config PUBLIC
       "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
       "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
      
      <faces-config>
      
       <navigation-rule>
       <navigation-case>
       <from-outcome>home</from-outcome>
       <to-view-id>/home.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       </navigation-rule>
       <navigation-rule>
       <navigation-case>
       <from-outcome>usereditor</from-outcome>
       <to-view-id>/usereditor.xhtml</to-view-id>
       <redirect />
       </navigation-case>
       </navigation-rule>
      </faces-config>
      


      If I call the startpage (userlist.seam) of this application all is perfect.
      But when i press the button of the navigation the page is displayed as xml or sometimes the whole page is rerendert
       <?xml version="1.0" ?>
      - <html xmlns="http://www.w3.org/1999/xhtml">
      - <head>
       <link type="text/css" rel="stylesheet" href="/sonderfreigabe/a4j.res/org/richfaces/renderkit/html/css/panelbar.xcss/DATA/eAE7rKHHAgAD6AEe.seam" />
       <script type="text/javascript" src="/sonderfreigabe/a4j.res/org.ajax4jsf.framework.ajax.AjaxScript.seam" />
       <script type="text/javascript" src="/sonderfreigabe/a4j.res/prototype.js.seam" />
       <script type="text/javascript" src="/sonderfreigabe/a4j.res/org.ajax4jsf.framework.ajax.ImageCacheScript.seam" />
       <script type="text/javascript" src="/sonderfreigabe/a4j.res/org/richfaces/renderkit/html/scripts/browser_info.js.seam" />
       <script type="text/javascript" src="/sonderfreigabe/a4j.res/org/richfaces/renderkit/html/scripts/panelbar.js.seam" />
       <meta name="Ajax-Update-Ids" content="" />
       <title />
       </head>
      - <body>
      - <span id="ajax-update-ids">
       <input type="hidden" name="jsf_tree_64" id="jsf_tree_64" value="rO0ABXNyAEdvcmcuYXBhY2hlLm15ZmFjZXMuYXBwbGljYXRpb24uVHJlZVN0cnVjdHVyZU1hbmFnZXIkVHJlZVN0cnVjdENvbXBvbmVudEZZF9icSvbPAgAEWwAJX2NoaWxkcmVudABKW0xvcmcvYXBhY2hlL215ZmFjZXMvYXBwbGljYXRpb24vVHJlZVN0cnVjdHVyZU1hbmFnZXIkVHJlZVN0cnVjdENvbXBvbmVudDtMAA9fY29tcG9uZW50Q2xhc3N0ABJMamF2YS9sYW5nL1N0cmluZztMAAxfY29tcG9uZW50SWRxAH4AAlsAB19mYWNldHN0ABNbTGphdmEvbGFuZy9PYmplY3Q7eHB1cgBKW0xvcmcuYXBhY2hlLm15ZmFjZXMuYXBwbGljYXRpb24uVHJlZVN0cnVjdHVyZU1hbmFnZXIkVHJlZVN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AGQAAAAF3BAAAAAFzcQB+AK1xAH4BKHB4cHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHVxAH4AAAAAAAN1cQB+AAAAAAANdXEAfgAAAAAABHVxAH4AAAAAAAd0AAVfaWQ0N3BxAH4BLnBzcQB+AAY/QAAAAAAADHcIAAAAEAAAAAFxAH4AJHQACDE5NDVlOTJieHBwcHBwcHBwcHBwcHBwcHBwcHB4dXEAfgAAAAAAA3VxAH4AAAAAAA51cQB+AAAAAAAEdXEAfgAAAAAAB3QABV9pZDQ5cHQAFGphdmF4LmZhY2VzLk1lc3NhZ2VzcHNxAH4ABj9AAAAAAAAMdwgAAAAQAAAAAXEAfgAkdAAIMTk0NWU4ZDh4cHBxAH4BIXBwcHBwcHBwcHBwcHBwcHBwdXEAfgAAAAAAA3VxAH4AAAAAABt1cQB+AAAAAAAFdXEAfgAAAAAAB3QAA3JlZ3B0ABJqYXZheC5mYWNlcy5CdXR0b25wc3EAfgAGP0AAAAAAAAx3CAAAABAAAAABcQB+ACR0AAgxOTQ1ZThjZHhwcHNxAH4AeHNxAH4Ae3NxAH4AfncmABIje3VzZXJlZGl0b3Iuc2F2ZX0AEGphdmEubGFuZy5TdHJpbmd1cQB+AIAAAAAAcHB4dzYANC91c2VyZWRpdG9yLnhodG1sIEA4NCw3NiBhY3Rpb249IiN7dXNlcmVkaXRvci5zYXZlfSJ4cHB0AARSZWdpcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHh4eHh4" />
       <input type="hidden" name="jsf_viewid" id="jsf_viewid" value="/usereditor.xhtml" />
       </span>
       <meta id="Ajax-Response" name="Ajax-Response" content="true" />
       </body>
       </html>
      


      and the address bar shows
      http://localhost:8080/sonderfreigabe/usereditor.seam?_rtid=1

      (what is the parameter _rtid?)

      What can I do to redisplay only the changing content of the page using navigationrules and templates when such navigation button is clicked?

      Hope for response!!!


      Thanks
      Andi

        • 1. Re: rerender templating
          Ilya Shaikovsky Master

          Works as designed. There is two main usecases

          1) reRender pointed to the some elements on the page - will redisplay them. outcome returned by action must be "null"
          2) outcome present. it must be one. So after ajax submit - redirect will be performed. The whole page - reRendered. rendered - isn't necessary in this case. (The case you've made)

          To organize your case - you may use <a4j:include>. It allows to change it content from nested to the subview ajax components without reRendering the whole page. So ajax-ed internal wizard-like navigation fired. Look for ajax4jsf examples and developer Guide references for more information.

          • 2. Re: rerender templating
            Andreas Franke Apprentice

            Hi,

            thank you for response. I already used <a4j:include> to dynamic rerender the content. But in this case couldn't use navigation-rules.

            Is there an explicite example how to solve the problem like these?



            Thanks
            Andi

            • 4. Re: rerender templating
              Andreas Franke Apprentice

              Ok, I try to explain. (Only the changes to first post)


              main.xhtml

              <a4j:outputPanel id="center">
               <h:panelGroup id="dritter">
               <a4j:include viewId="#{pagecontent.mySite}" />
               </h:panelGroup>
              </a4j:outputPanel>
              

              (<a4j:include viewId="#{pagecontent.mySite}"/> -> mySite set to specific page in find method called from actionListener in navigation.xhtml. In this case set to usereditor.xhtml)

              navigation.xhtml
              <rich:panelBar height="300" id="panelbar" width="160">
               <rich:panelBarItem binding="#{pagecontent.myBarItem}" id="sf" label="Sonderfreigaben">
               <a4j:region><a4j:commandLink actionListener="#{pagecontent.find}" value="button" reRender="center"></a4j:commandLink></a4j:region>
               </rich:panelBarItem>
               <rich:panelBarItem binding="#{pagecontent.myBarItem2}" id="adb" label="Adressbuch" contentClass="activeItem">
               <a4j:region><a4j:commandLink actionListener="#{pagecontent.find}" value="button" reRender="center"></a4j:commandLink></a4j:region>
               </rich:panelBarItem>
              </rich:panelBar>
              

              (actionListener="#{pagecontent.find}" -> public void find(ActionEvent event))

              usereditor.xhtml
              <ui:composition xmlns="http://www.w3.org/1999/xhtml"
               xmlns:ui="http://java.sun.com/jsf/facelets"
               xmlns:h="http://java.sun.com/jsf/html"
               xmlns:f="http://java.sun.com/jsf/core"
               xmlns:s="http://jboss.com/products/seam/taglib"
               xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
               xmlns:rich="http://richfaces.ajax4jsf.org/rich"
               xmlns:t="http://myfaces.apache.org/tomahawk">
              
               <br/>
               <a4j:form>
               <s:validateAll>
               <f:facet name="aroundInvalidField">
               <s:span styleClass="errors"/>
               </f:facet>
               <div id="undiv" class="entry">
               <div class="label"><h:outputLabel for="username">Username:</h:outputLabel></div>
               <div class="input">
               <s:decorate>
               <h:inputText id="username" value="#{user.username}" required="true" partialSubmit="true" ></h:inputText>
               <br/>
               <s:message/>
               </s:decorate>
               </div>
               </div>
               </s:validateAll>
               </a4j:form>
              </ui:composition>
              

              (no template="main.xhtml" because this is the include site from main.xhtml)

              Now the navigation-rule is not working expected because usereditor.xhtml has no main.xhtml as template. If this rule is in use only usereditor is displayed no navigation or header etc.
               <navigation-rule>
               <navigation-case>
               <from-outcome>usereditor</from-outcome>
               <to-view-id>/usereditor.xhtml</to-view-id>
               <redirect />
               </navigation-case>
               </navigation-rule>
              


              This works gread with partial page rendering (reRender) when I use the navigation. But navigation-rules not working, because there no templates now.

              Perhaps a mess in my mind?

              What would you recommend?


              Thanks
              Andi

              • 5. Re: rerender templating
                Ilya Shaikovsky Master

                sorry, I've loss some code in me sentences because of HTML tags :(

                In your case you need remove redirect from the rule. And use renderRegionOnly="false" on the controls that reRenders the outputPanel.

                • 6. Re: rerender templating
                  Andreas Franke Apprentice

                  Hi,

                  I'am no native speaker so I don't understand this

                  "ilya_shaikovsky" wrote:
                  sorry, I've loss some code in me sentences because of HTML tags :(


                  Is this meaning that you need the whole code published not only abstract?


                  To your suggestion.
                  Is it right you mean that usereditor should have main.xhtml as template. usereditor is included in main.xhtml -> so main is also included in main?!?
                  Then chages to <a4j:region renderRegionOnly="false"> and redirect removed from rule.

                  This is the exeption
                  4:43:35,506 ERROR [[/sonderfreigabe]] Session event listener threw exception
                  java.lang.NullPointerException
                   at org.jboss.seam.mock.MockExternalContext.getRequestCookieMap(MockExternalContext.java:181)
                   at org.jboss.seam.core.Selector.getCookieValue(Selector.java:59)
                   at org.jboss.seam.security.Identity.initCredentialsFromCookie(Identity.java:90)
                   at org.jboss.seam.security.Identity.create(Identity.java:83)
                   at org.jboss.seam.security.RuleBasedIdentity.create(RuleBasedIdentity.java:44)
                   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
                   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
                   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
                   at java.lang.reflect.Method.invoke(Method.java:597)
                   at org.jboss.seam.util.Reflections.invoke(Reflections.java:18)
                   at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:121)
                   at org.jboss.seam.Component.callComponentMethod(Component.java:1802)
                   at org.jboss.seam.Component.callCreateMethod(Component.java:1725)
                   at org.jboss.seam.Component.newInstance(Component.java:1714)
                   at org.jboss.seam.contexts.Lifecycle.startup(Lifecycle.java:165)
                   at org.jboss.seam.contexts.Lifecycle.beginSession(Lifecycle.java:225)
                   at org.jboss.seam.servlet.SeamListener.sessionCreated(SeamListener.java:41)
                   at org.apache.catalina.session.StandardSession.tellNew(StandardSession.java:384)
                   at org.apache.catalina.session.StandardSession.setId(StandardSession.java:356)
                   at org.apache.catalina.session.ManagerBase.createSession(ManagerBase.java:824)
                   at org.apache.catalina.session.StandardManager.createSession(StandardManager.java:290)
                   at org.apache.catalina.connector.Request.doGetSession(Request.java:2225)
                   at org.apache.catalina.connector.Request.getSession(Request.java:2024)
                   at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:831)
                   at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:842)
                   at org.apache.myfaces.renderkit.html.util.AddResourceFactory.getInstance(AddResourceFactory.java:279)
                   at org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:126)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.ajax4jsf.framework.ajax.xmlfilter.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:96)
                   at org.ajax4jsf.framework.ajax.xmlfilter.BaseFilter.doFilter(BaseFilter.java:220)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:45)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:57)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:432)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
                   at org.jboss.web.tomcat.tc5.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:156)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
                   at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
                   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
                   at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
                   at java.lang.Thread.run(Thread.java:619)
                  14:43:37,491 ERROR [STDERR] 20.03.2007 14:43:36 com.sun.facelets.FaceletViewHandler handleRenderException
                  SCHWERWIEGEND: Error Rendering View[/main.xhtml]
                  javax.faces.FacesException: UIInclude component _id14 could't include page with path userlist.xhtml
                  


                  Without the main.xhtml as template in usereditor/userlist.xhtml and used navigation-rule only the content of userlist/editor is displayed but not the whole site.

                  Sorry for my misunderstand. A short example should be helpful.


                  Thanks