myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mike Kienenberger" <mkien...@gmail.com>
Subject Re: panelNavigation2 and navigationMenuItems
Date Wed, 07 Feb 2007 20:54:43 GMT
Something doesn't compute.   Your page code doesn't have
"actionListener" in it, but that's what the error is referring to.
Are you sure you're posting the correct page code?

javax.el.PropertyNotFoundException: Bean:
ec.eo.eoweb.presentation.bean.NavigationBean, property: actionListener



On 2/7/07, AMIR-TAHMASSEB Marc <marc.amir-tahmasseb@ombudsman.europa.eu> wrote:
>
>
> 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</managed-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(LegacyELContext.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.java:38)
>  at
> com.sun.facelets.compiler.UIInstructions.encodeBegin(UIInstructions.java:39)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:242)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.tag.jsf.ComponentSupport.encodeRecursive(ComponentSupport.java:249)
>  at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:573)
>  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(ApplicationFilterChain.java:252)
>  at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>  at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>  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:81)
>  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.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
>  at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
>  at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java: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:148)
>  at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
>  at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
>  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:595)
> 16:04:44,616 DEBUG [FacesServlet] service end
>
>
>
>
>
> Marc Kamran AMIR-TAHMASSEB
> European Ombudsman Office
> Web Developer
> http://www.ombudsman.europa.eu

Mime
View raw message