4 Replies Latest reply on Jun 12, 2008 5:02 AM by jan-martijnw

    ui:composition will NOT render

    jan-martijnw

      Hi Everyone,

      ui:composition is the only tag that will nog render in my jsf page. I would like to use this tag to load a template, but it wil not render, even without the template element.

      Does someone know what i'm missing?

      This is de source in IE:

      
      
      
      
      
      
      
      
      <html>
      <head>
      <title>repeater</title>
      <link rel='stylesheet' type='text/css' href='/kms/a4j_3_1_2.GAorg/richfaces/renderkit/html/css/panelMenu.xcss/DATB/eAFjlbr0AAAC6gHS.jsf' /><script type='text/javascript' src='/kms/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/a4j_3_1_2.GAorg.ajax4jsf.javascript.PrototypeScript.jsf'></script><script type='text/javascript' src='/kms/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/a4j_3_1_2.GAorg.ajax4jsf.javascript.AjaxScript.jsf'></script><script type='text/javascript' src='/kms/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/utils.js.jsf'></script><script type='text/javascript' src='/kms/a4j_3_1_2.GAorg/ajax4jsf/javascript/scripts/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/form.js.jsf'></script><script type='text/javascript' src='/kms/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/form.js.jsf'></script><script type='text/javascript' src='/kms/a4j_3_1_2.GAorg/richfaces/renderkit/html/scripts/+sfgRmluamFuX1R5cGU9amF2YV9zY3JpcHQmRmluamFuX0xhbmc9dGV4dC9qYXZhc2NyaXB0+/panelMenu.js.jsf'></script></head>
      
      <body>
      
      
       <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:a4j="http://richfaces.org/a4j"
       xmlns:rich="http://richfaces.org/rich"
       template="/pages/kms-template.jsf">
       <style>
       .cols {
       vertical-align: top;
       width: 50%;
       }
      
       .tooltip {
       background-color: #{ richSkin . generalBackgroundColor
       }
      
       ;
       border-width
       :3px;
      
      
       padding
       :10px;
      
      
       }
       .tooltip-text {
       width: 350px;
       height: 80px;
       cursor: arrow;
       border-width: 2px;
       text-align: center;
       display: table-cell;
       vertical-align: middle;
       }
      
       .tooltipData {
       font-weight: bold;
       }
       </style>
      
       <form id="form" method="post" action="/kms/pages/echo.jsf" enctype="application/x-www-form-urlencoded">
      
      
      
       <table width="100%">
      <tbody>
      <tr>
      <td class="cols"><div id="form:_id1" style="width:220; ;"><input id="form:_id1selectedItemName" name="form:_id1selectedItemName" type="hidden" /><div class="dr-pmenu-top-group-div" id="tdhideform:_id2"><table border="0" cellpadding="0" cellspacing="0" class="dr-pmenu-top-group rich-pmenu-group " id="tablehideform:_id2" style="; "><tr><td class="dr-pmenu-nowrap"><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="leftIconform:_id2" /></td><td class="dr-pmenu-group-self-label rich-pmenu-group-self-label rich-pmenu-top-group-self-label" id="iconform:_id2" style="width:100%"><input name="panelMenuStateform:_id2" type="hidden" /><input name="panelMenuActionform:_id2" type="hidden" />ARBO</td><td><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="rightIconform:_id2" /></td></tr></table></div><div class="dr-pmenu-top-group-div" id="tdhideform:_id3"><table border="0" cellpadding="0" cellspacing="0" class="dr-pmenu-top-group rich-pmenu-group " id="tablehideform:_id3" style="; "><tr><td class="dr-pmenu-nowrap"><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="leftIconform:_id3" /></td><td class="dr-pmenu-group-self-label rich-pmenu-group-self-label rich-pmenu-top-group-self-label" id="iconform:_id3" style="width:100%"><input name="panelMenuStateform:_id3" type="hidden" /><input name="panelMenuActionform:_id3" type="hidden" />Rechtspositie en Arbeidsvoorwaarden</td><td><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="rightIconform:_id3" /></td></tr></table></div><div class="dr-pmenu-top-group-div" id="tdhideform:_id4"><table border="0" cellpadding="0" cellspacing="0" class="dr-pmenu-top-group rich-pmenu-group " id="tablehideform:_id4" style="; "><tr><td class="dr-pmenu-nowrap"><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="leftIconform:_id4" /></td><td class="dr-pmenu-group-self-label rich-pmenu-group-self-label rich-pmenu-top-group-self-label" id="iconform:_id4" style="width:100%"><input name="panelMenuStateform:_id4" type="hidden" /><input name="panelMenuActionform:_id4" type="hidden" />Organisatie en Ontwikkeling</td><td><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="rightIconform:_id4" /></td></tr></table></div><div class="dr-pmenu-top-group-div" id="tdhideform:_id5"><table border="0" cellpadding="0" cellspacing="0" class="dr-pmenu-top-group rich-pmenu-group " id="tablehideform:_id5" style="; "><tr><td class="dr-pmenu-nowrap"><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="leftIconform:_id5" /></td><td class="dr-pmenu-group-self-label rich-pmenu-group-self-label rich-pmenu-top-group-self-label" id="iconform:_id5" style="width:100%"><input name="panelMenuStateform:_id5" type="hidden" /><input name="panelMenuActionform:_id5" type="hidden" />Bedrijfsvoering</td><td><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="rightIconform:_id5" /></td></tr></table></div><div class="dr-pmenu-top-group-div" id="tdhideform:_id6"><table border="0" cellpadding="0" cellspacing="0" class="dr-pmenu-top-group rich-pmenu-group " id="tablehideform:_id6" style="; "><tr><td class="dr-pmenu-nowrap"><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="leftIconform:_id6" /></td><td class="dr-pmenu-group-self-label rich-pmenu-group-self-label rich-pmenu-top-group-self-label" id="iconform:_id6" style="width:100%"><input name="panelMenuStateform:_id6" type="hidden" /><input name="panelMenuActionform:_id6" type="hidden" />Inkoop</td><td><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="rightIconform:_id6" /></td></tr></table></div><div class="dr-pmenu-top-group-div" id="tdhideform:_id7"><table border="0" cellpadding="0" cellspacing="0" class="dr-pmenu-top-group rich-pmenu-group " id="tablehideform:_id7" style="; "><tr><td class="dr-pmenu-nowrap"><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="leftIconform:_id7" /></td><td class="dr-pmenu-group-self-label rich-pmenu-group-self-label rich-pmenu-top-group-self-label" id="iconform:_id7" style="width:100%"><input name="panelMenuStateform:_id7" type="hidden" /><input name="panelMenuActionform:_id7" type="hidden" />Budgettering en Begroting</td><td><img src="/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf" alt="" vspace="0" hspace="0" width="16" height="16" id="rightIconform:_id7" /></td></tr></table></div><div style="display:none"><script type="text/javascript" id ="scriptform:_id1">
      new PanelMenu('form:_id1',false,'');
      var params = new Object();new PanelMenuItem(params,{myId:'form:_id2',parentId:'form:_id1'},{type:"node",onopen:";",onclose:";",event:"click",mode:"none",target:"",disabled:false,target:"",name:"ARBO"},{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,true,false,false,"A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:_id2':'form:_id2'} ,'actionUrl':'/kms/pages/echo.jsf'} )","","left","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf");
      var params = new Object();new PanelMenuItem(params,{myId:'form:_id3',parentId:'form:_id1'},{type:"node",onopen:";",onclose:";",event:"click",mode:"none",target:"",disabled:false,target:"",name:"Rechtspositie en Arbeidsvoorwaarden"},{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,true,false,false,"A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:_id3':'form:_id3'} ,'actionUrl':'/kms/pages/echo.jsf'} )","","left","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf");
      var params = new Object();new PanelMenuItem(params,{myId:'form:_id4',parentId:'form:_id1'},{type:"node",onopen:";",onclose:";",event:"click",mode:"none",target:"",disabled:false,target:"",name:"Organisatie en Ontwikkeling"},{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,true,false,false,"A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:_id4':'form:_id4'} ,'actionUrl':'/kms/pages/echo.jsf'} )","","left","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf");
      var params = new Object();new PanelMenuItem(params,{myId:'form:_id5',parentId:'form:_id1'},{type:"node",onopen:";",onclose:";",event:"click",mode:"none",target:"",disabled:false,target:"",name:"Bedrijfsvoering"},{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,true,false,false,"A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:_id5':'form:_id5'} ,'actionUrl':'/kms/pages/echo.jsf'} )","","left","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf");
      var params = new Object();new PanelMenuItem(params,{myId:'form:_id6',parentId:'form:_id1'},{type:"node",onopen:";",onclose:";",event:"click",mode:"none",target:"",disabled:false,target:"",name:"Inkoop"},{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,true,false,false,"A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:_id6':'form:_id6'} ,'actionUrl':'/kms/pages/echo.jsf'} )","","left","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf");
      var params = new Object();new PanelMenuItem(params,{myId:'form:_id7',parentId:'form:_id1'},{type:"node",onopen:";",onclose:";",event:"click",mode:"none",target:"",disabled:false,target:"",name:"Budgettering en Begroting"},{},new Array("dr-pmenu-hovered-element","rich-pmenu-hovered-element"),0,true,false,false,"A4J.AJAX.Submit('_viewRoot','form',event,{'parameters':{'form:_id7':'form:_id7'} ,'actionUrl':'/kms/pages/echo.jsf'} )","","left","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangleDown/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconTriangle/DATB/eAFjYGAAAAADAAE_.jsf","/kms/a4j_3_1_2.GAorg.richfaces.renderkit.html.iconimages.PanelMenuIconSpacer/DATB/eAFjYGAAAAADAAE_.jsf");
      
      </script></div></div></td>
      </tr>
      </tbody>
      </table>
      
       <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id14" /><input type="hidden" name="form" value="form" />
      <script type="text/javascript">
      <!--
      function clearFormHiddenParams_form(curFormName) {
       var curForm = document.forms[curFormName];
      }
      //-->
      </script>
      </form>
       </ui:composition>
      
       <table></table>
       <h2>Kennisgebieden</h2>
       <form id="_id3" method="post" action="/kms/pages/echo.jsf" enctype="application/x-www-form-urlencoded">
      
      
      
       <a href="../index.jsp">Back to index</a>
       <br>
       Item 1..6 of 6
      
      
      
      
      
      
      
      
       <table border="1" cellpadding="2" cellspacing="0">
      <thead>
      <tr>
      <th scope="col">Titel</th>
      </tr>
      </thead>
      <tbody>
      <tr>
      <td>ARBO</td>
      </tr>
      <tr>
      <td>Rechtspositie en Arbeidsvoorwaarden</td>
      </tr>
      <tr>
      <td>Organisatie en Ontwikkeling</td>
      </tr>
      <tr>
      <td>Bedrijfsvoering</td>
      </tr>
      <tr>
      <td>Inkoop</td>
      </tr>
      <tr>
      <td>Budgettering en Begroting</td>
      </tr>
      </tbody>
      </table>
      
       <input type="hidden" name="com.sun.faces.VIEW" id="com.sun.faces.VIEW" value="_id14" /><input type="hidden" name="_id3" value="_id3" />
      <script type="text/javascript">
      <!--
      function clearFormHiddenParams__id3(curFormName) {
       var curForm = document.forms[curFormName];
      }
      //-->
      </script>
      </form>
      
      
      </body>
      </html>
      
      


        • 1. Re: ui:composition will NOT render
          ilya_shaikovsky

          seems some mistake in application configuration file.

          • 2. Re: ui:composition will NOT render
            jan-martijnw

            Hi!

            Thnx for you reply, I'm still strugling to find the problem. Maybe you can tel more if I show some of my configuration:

            My Libraries:

             antlr:antlr:jar:2.7.6:compile
             aopalliance:aopalliance:jar:1.0:compile
             asm:asm:jar:1.5.3:compile
             asm:asm-attrs:jar:1.5.3:compile
             avalon-framework:avalon-framework:jar:4.1.3:compile
             cglib:cglib:jar:2.1_3:compile
             com.sun.facelets:jsf-facelets:jar:1.1.14:runtime
             commons-beanutils:commons-beanutils:jar:1.7.0:compile
             commons-collections:commons-collections:jar:3.2:compile
             commons-digester:commons-digester:jar:1.8:compile
             commons-logging:commons-logging:jar:1.1:compile
             dom4j:dom4j:jar:1.6.1:compile
             javax.faces:jsf-api:jar:1.1_02:compile
             javax.faces:jsf-impl:jar:1.1_02:runtime
             javax.persistence:persistence-api:jar:1.0:compile
             javax.servlet:jstl:jar:1.1.2:compile
             javax.servlet:servlet-api:jar:2.4:compile
             javax.transaction:jta:jar:1.0.1B:compile
             jboss:javassist:jar:3.3.ga:compile
             jboss:jboss-archive-browsing:jar:5.0.0alpha-200607201-119:compile
             junit:junit:jar:4.1:compile
             log4j:log4j:jar:1.2.12:compile
             logkit:logkit:jar:1.0.1:compile
             net.sf.ehcache:ehcache:jar:1.2.3:compile
             org.hibernate:hibernate:jar:3.2.1.ga:compile
             org.hibernate:hibernate-annotations:jar:3.2.1.ga:compile
             org.hibernate:hibernate-entitymanager:jar:3.2.1.ga:compile
             org.richfaces.framework:richfaces-api:jar:3.1.2.GA:compile
             org.richfaces.framework:richfaces-impl:jar:3.1.2.GA:compile
             org.richfaces.ui:richfaces-ui:jar:3.1.2.GA:compile
             org.springframework:spring:jar:2.5:compile
             org.springframework:spring-beans:jar:2.0.2:compile
             org.springframework:spring-context:jar:2.0.2:compile
             org.springframework:spring-core:jar:2.0.2:compile
             org.springframework:spring-dao:jar:2.0.2:compile
             org.springframework:spring-hibernate3:jar:2.0.2:compile
             org.springframework:spring-jdbc:jar:2.0.2:compile
             org.springframework:spring-jpa:jar:2.0.2:compile
             org.springframework:spring-mock:jar:2.0.2:compile
             org.springframework:spring-support:jar:2.0.2:compile
             org.springframework:spring-web:jar:2.0.2:compile
             org.springframework:spring-webmvc:jar:2.0.2:compile
             taglibs:standard:jar:1.1.2:compile
            


            The JSP page:

            
            <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
            <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
            <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
            <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
            <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
            <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
            <html>
            <head>
            <title>repeater</title>
            </head>
            
            <body>
            <f:view>
            
             <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:a4j="http://richfaces.org/a4j"
             xmlns:rich="http://richfaces.org/rich"
             template="/pages/kms-template.jsf">
             <style>
            .cols {
             vertical-align: top;
             width: 50%;
            }
            
            .tooltip {
             background-color: #{
             richSkin
             .
            
             generalBackgroundColor
            }
            
            ;
            border-width
            
            
            :3
            px
            ;
            
            
            
            
            padding
            
            
            :10
            px
            ;
            
            
            
            
            }
            .tooltip-text {
             width: 350px;
             height: 80px;
             cursor: arrow;
             border-width: 2px;
             text-align: center;
             display: table-cell;
             vertical-align: middle;
            }
            
            .tooltipData {
             font-weight: bold;
            }
            </style>
            
             <h:form id="form">
             <h:panelGrid columns="2" columnClasses="cols" width="100%">
             <rich:panelMenu binding="#{userMenuController.panelMenu}"
             width="220" />
             </h:panelGrid>
             </h:form>
             </ui:composition>
            
             <h:messages errorStyle="color: red" infoStyle="color: green"
             layout="table" />
             <h2>Kennisgebieden</h2>
             <h:form>
            
            
             <a href="../index.jsp">Back to index</a>
             <br>
             <h:outputText
             value="Item #{kennisgebiedController.firstItem + 1}..#{kennisgebiedController.lastItem} of #{kennisgebiedController.aantalGeregistreerdeKennisgebieden}" />
             <h:dataTable
             value='#{kennisgebiedController.kennisgebieden}' var='dataTableItem'
             border="1" cellpadding="2" cellspacing="0">
            
             <h:column>
             <f:facet name="header">
             <h:outputText value="Titel" />
             </f:facet>
             <h:outputText value="#{dataTableItem.titel}" />
             </h:column>
             </h:dataTable>
             </h:form>
            
            </f:view>
            </body>
            </html>
            


            Spring applicationconfig:

            <?xml version="1.0" encoding="UTF-8"?>
            <beans xmlns="http://www.springframework.org/schema/beans"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://www.springframework.org/schema/beans
             http://www.springframework.org/schema/beans/spring-beans.xsd">
            
            
             <!--
            
             Creation of the JPA EntityManager for injection into the DAO's
            
             -->
             <bean id="entityManagerFactoryKms"
             class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean">
             <property name="dataSource" ref="dataSourceKms" />
             <property name="jpaVendorAdapter">
             <bean
             class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter">
             <property name="showSql" value="true" />
             <property name="generateDdl" value="true" />
            
             <property name="databasePlatform"
             value="org.hibernate.dialect.SQLServerDialect" />
             </bean>
             </property>
            
             </bean>
            
             <!-- The JNDI-Datasource -->
             <bean id="dataSourceKms"
             class="org.springframework.jndi.JndiObjectFactoryBean">
             <property name="jndiName"
             value="java:comp/env/jdbc/kms" />
             </bean>
            
             <!-- TransactionManager -->
             <bean id="transactionManager"
             class="org.springframework.orm.jpa.JpaTransactionManager">
             <property name="entityManagerFactory"
             ref="entityManagerFactoryKms" />
             <property name="dataSource" ref="dataSourceKms" />
             </bean>
            
             <!-- The Spring Transactionproxy -->
             <bean id="baseTransactionProxy"
             class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"
             abstract="true">
             <property name="transactionManager" ref="transactionManager" />
             <property name="transactionAttributes">
             <props>
             <prop key="*">PROPAGATION_REQUIRED</prop>
             </props>
             </property>
             </bean>
            
             <!--
             #############################################################################################
             # #
             # SERVICES: Declaring and Injecting #
             # #
             #############################################################################################
             -->
             <bean id="kennisgebiedServiceTarget"
             class="nl.minjus.dji.sscno.kennismanagement.service.KennisgebiedDAO">
             <property name="entityManagerFactory"
             ref="entityManagerFactoryKms" />
             </bean>
             <bean id="kennisgebiedService" parent="baseTransactionProxy">
             <property name="target" ref="kennisgebiedServiceTarget" />
             </bean>
            
             <!--
             #############################################################################################
             # #
             # CONTROLLERS(managedBeans): Declaring and Injecting #
             # #
             #############################################################################################
             -->
             <bean name="kennisgebiedController"
             class="nl.minjus.dji.sscno.kennismanagement.managedBeans.KennisgebiedController">
             <property name="kennisgebiedService">
             <ref bean="kennisgebiedService" />
             </property>
             </bean>
            
             <bean name="userMenuController"
             class="nl.minjus.dji.sscno.kennismanagement.managedBeans.UserMenuController">
             <property name="kennisgebiedService">
             <ref bean="kennisgebiedService" />
             </property>
             </bean>
            
            </beans>
            


            faces-config:
            <?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>
             <application>
             <variable-resolver>
             org.springframework.web.jsf.DelegatingVariableResolver
             </variable-resolver>
             </application>
             <managed-bean>
             <managed-bean-name>kennisgebiedController</managed-bean-name>
             <managed-bean-class>
             nl.minjus.dji.sscno.kennismanagement.managedBeans.KennisgebiedController
             </managed-bean-class>
             <managed-bean-scope>session</managed-bean-scope>
             <managed-property>
             <property-name>kennisgebiedService</property-name>
             <value>#{kennisgebiedService}</value>
             </managed-property>
             </managed-bean>
            </faces-config>


            web.xml:
            <?xml version="1.0"?>
            <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
            
             <display-name>Kennismanagement Webapplicatie (Het KMS)</display-name>
            
             <!-- Context paramaters -->
             <context-param>
             <param-name>com.sun.faces.verifyObjects</param-name>
             <param-value>false</param-value>
             </context-param>
            
             <context-param>
             <param-name>com.sun.faces.validateXml</param-name>
             <param-value>true</param-value>
             </context-param>
            
             <context-param>
             <param-name>contextConfigLocation</param-name>
             <param-value>/WEB-INF/kms-service.xml</param-value>
             </context-param>
            
             <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>blueSky</param-value>
             </context-param>
            
             <context-param>
             <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
             <param-value>server</param-value>
             </context-param>
            
             <!-- Filters -->
             <filter>
             <display-name>RichFaces Filter</display-name>
             <filter-name>richfaces</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
            
             <filter-mapping>
             <filter-name>richfaces</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>
            
             <!-- Listeners -->
             <listener>
             <listener-class>
             org.springframework.web.context.ContextLoaderListener
             </listener-class>
             </listener>
             <listener>
             <listener-class>
             org.springframework.web.context.request.RequestContextListener
             </listener-class>
             </listener>
             <listener>
             <listener-class>
             com.sun.faces.config.ConfigureListener
             </listener-class>
             </listener>
            
            
             <!-- Faces Servlet -->
             <servlet>
             <servlet-name>Faces Servlet</servlet-name>
             <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
             <load-on-startup>1</load-on-startup>
             </servlet>
            
             <!-- Faces Servlet Mapping -->
             <servlet-mapping>
             <servlet-name>Faces Servlet</servlet-name>
             <url-pattern>*.jsf</url-pattern>
             </servlet-mapping>
            </web-app>
            
            


            I hope you can now tel me some more :)

            I'm Really stuk

            Thnx in advance!

            JM

            • 3. Re: ui:composition will NOT render
              daniel.soneira

              I don't see a taglib entry for "ui" at the top?

              <%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%>


              and the template attribute of your ui:composition seems wrong too - you don't specify the url that you would enter in the browser (.jsf), but the real filename (.jsp / .xhtml / .jspx).

              Then I miss two other things in your web.xml:

              DEFAULT - Suffix (how your files really are named - is used instead of .jsf)
              <context-param>
               <param-name>javax.faces.DEFAULT_SUFFIX</param-name>
               <param-value>.jspx</param-value>
              </context-param>
              


              The View Handler
              <context-param>
               <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
               <param-value>com.sun.facelets.FaceletViewHandler</param-value>
              </context-param>
              


              • 4. Re: ui:composition will NOT render
                jan-martijnw

                Hi!

                Thnx voor je quick reply. When i add the:

                {code}
                <%@ taglib uri="http://java.sun.com/jsf/facelets" prefix="ui"%>
                {code}

                eclipse tells me that's it is a unknown tag. But i thought i had all neede libraries. Do you think that i miss one?

                Jan-Martijn