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