Hi everybody,
 
 
I have a problem with panelNavigation2 and navigationMenuItems. I use :
- myfaces 1.1.4
- tomahawk 1.1.3
- facelets 1.1.12
 
I just want to display a navigation item list with just one element,
HOME
 
But I have a big JSF error (see below)
 
Does someone have already the same problem ?
 
Thank's for your Help,
 
Marc 
 
 
 
Here is my JSP-facelets template code :

        <t:div id="breadcrumbs">
         <h:form>
          <t:panelNavigation2 id="nav1" layout="list">
           <t:navigationMenuItems id="navitems"
value="${navigation.breadcrumbsItems} />
          </t:panelNavigation2>
         </h:form>
        </t:div>

In my faces-config I have :

        <managed-bean>
         <managed-bean-name>navigation</managed-bean-name>
        
<managed-bean-class>ec.eo.eoweb.presentation.bean.NavigationBean</manage
d-bean-class>
         <managed-bean-scope>session</managed-bean-scope>
        </managed-bean>
         
        <navigation-rule>
         <navigation-case>
          <from-outcome>go_home</from-outcome>
          <to-view-id>/home.xhtml</to-view-id>
          <redirect />
         </navigation-case>
        </navigation-rule>

And finaly, my NavigationBean is the following :

        public class NavigationBean implements Serializable {
            
            private static final long serialVersionUID = 1L;
            private List<NavigationMenuItem> breadcrumbsItems;
         
            public NavigationBean() {
            }
         
            public List<NavigationMenuItem> getBreadcrumbsItems() {
                setBreadcrumbsItems(new
ArrayList<NavigationMenuItem>());
                breadcrumbsItems.add(getMenuNavigationItem("Home",
"go_home"));
                return this.breadcrumbsItems;
            }
            
            public void setBreadcrumbsItems(List<NavigationMenuItem>
breadcrumbsItems) {
                this.breadcrumbsItems = breadcrumbsItems;
            }
         
            private static NavigationMenuItem
getMenuNavigationItem(String label,String action) {
                NavigationMenuItem item = new NavigationMenuItem(label,
action);
                return item;
            }
        
        }

 
I have the following error whee i want to use navigationMenuItems in my
panelNavigation2 :

        16:04:44,491 INFO  [STDOUT] 07-Feb-2007 16:04:44
com.sun.facelets.FaceletViewHandler handleRenderException
        SEVERE: Error Rendering View[/home.xhtml]
        javax.el.PropertyNotFoundException: Bean:
ec.eo.eoweb.presentation.bean.NavigationBean, property: actionListener
         at
com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELCo
ntext.java:146)
         at com.sun.el.parser.AstValue.getValue(AstValue.java:96)
         at
com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
         at
com.sun.facelets.el.ELText$ELTextVariable.toString(ELText.java:174)
         at
com.sun.facelets.el.ELText$ELTextComposite.toString(ELText.java:115)
         at
com.sun.facelets.compiler.CommentInstruction.write(CommentInstruction.ja
va:38)
         at
com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java
:39)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:242)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSuppo
rt.java:249)
         at
com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:5
73)
         at
org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:384
)
         at
javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:252)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
         at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
ter.java:144)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
         at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilte
r.java:81)
         at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:202)
         at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:173)
         at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:213)
         at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:178)
         at
org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipa
lValve.java:39)
         at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAs
sociationValve.java:159)
         at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.j
ava:59)
         at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:126)
         at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:105)
         at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:107)
         at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1
48)
         at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:85
6)
         at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:744)
         at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint
.java:527)
         at
org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorker
Thread.java:112)
         at java.lang.Thread.run(Thread.java:595)
        16:04:44,616 DEBUG [FacesServlet] service end
        

 
 
 
 
Marc Kamran AMIR-TAHMASSEB
European Ombudsman Office
Web Developer
http://www.ombudsman.europa.eu <http://www.ombudsman.europa.eu/> 

Reply via email to