Dear Mike, thank you for this little "lesson" :) I'm pretty new on the JSF's and facelets' world...
regards Marc >-----Original Message----- >From: Mike Kienenberger [mailto:[EMAIL PROTECTED] >Sent: 09 February 2007 04:14 >To: MyFaces Discussion >Subject: Re: panelNavigation2 and navigationMenuItems [Solved] > >Yeah, the error didn't match the posted page code. > >You'll probably want to get in the habit of using ><ui:remove></ui:remove> for commenting under facelets. > > >On 2/8/07, AMIR-TAHMASSEB Marc ><[EMAIL PROTECTED]> wrote: >> Arghhh I solved my problem !!! >> >> In my template, I had a comment (because I was trying and testing >> panelNavigation2) >> >> <t:div id="breadcrumbs"> >> <h:form> >> <t:panelNavigation2 id="nav1" layout="list"> >> <t:navigationMenuItems id="navitems" >> value="${navigation.breadcrumbsItems}" /> >> </t:panelNavigation2> >> <!-- >> <t:panelNavigation2 layout="list"> >> <t:commandNavigation2 >> value="#{session.messages.home}" action="go_home" >> actionListener="#{navigation.actionListener}" /> >> </t:panelNavigation2> >> --> >> </h:form> >> </t:div> >> >> And it was the comment that generate the actionListener error. >> >> By erasing the comment (like the example I sent and just below), >> everything is ok (with or without the actionLitener method in >> NavigationBean >> >> <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> >> >> Thank you a lot Mike and sorry for this useless message... I >didn't know >> that the comments were interpreted ! >> >> regards, >> >> Marc >> >> >> >> >-----Original Message----- >> >From: AMIR-TAHMASSEB Marc >> >Sent: 08 February 2007 12:08 >> >To: MyFaces Discussion >> >Subject: RE: panelNavigation2 and navigationMenuItems >> > >> >I didn't want to use actionListener, but i have the same problem by >> >adding it to my page ! >> > >> >The error message is exactly the same than before ! >> > >> >Here is new code of the NavigationBean : >> > >> >public class NavigationBean implements Serializable { >> > >> > private static final long serialVersionUID = 1L; >> > private List<NavigationMenuItem> breadcrumbsItems; >> > >> > private static final Log log = >> >LogFactory.getLog(NavigationBean.class); >> > >> > >> > public NavigationBean() { >> > setBreadcrumbsItems(new ArrayList<NavigationMenuItem>()); >> > >> >>breadcrumbsItems.add(getMenuNavigationItem("#{session.messages.home}", >> >"go_home")); >> > } >> > >> > public List<NavigationMenuItem> getBreadcrumbsItems() { >> > return this.breadcrumbsItems; >> > } >> > >> > public String actionListener(ActionEvent event) { >> > return "go_home"; >> > } >> > >> > public void setBreadcrumbsItems(List<NavigationMenuItem> >> >breadcrumbsItems) { >> > this.breadcrumbsItems = breadcrumbsItems; >> > } >> > >> > private static NavigationMenuItem getMenuNavigationItem(String >> >label,String action) { >> > NavigationMenuItem item = new >> >NavigationMenuItem(label, action); >> > item.setActionListener("#{navigation.actionListener}"); >> > item.setValue(label); >> > return item; >> > } >> >} >> > >> > >> > >> >>-----Original Message----- >> >>From: Mike Kienenberger [mailto:[EMAIL PROTECTED] >> >>Sent: 07 February 2007 21:55 >> >>To: MyFaces Discussion >> >>Subject: Re: panelNavigation2 and navigationMenuItems >> >> >> >>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 >> > >> >

