I am struggling to find the answer to how to reference an ActionListener when 
programatically making a menu with IceFaces.


  |     public List<MenuItem> getMenuModel() {
  |             menuModel = new ArrayList<MenuItem>();
  | 
  |             if (loggedInUser.getLoggedIn()) {
  |                     MenuItem users = new MenuItem();
  |                     users.setValue(messages.get("menu_item_users"));
  |                     menuModel.add(users);
  | 
  |                     // User Find
  |                     MenuItem users_find = new MenuItem();
  |                     users_find.setValue(messages.get("menu_item_find"));
  |                     //users_find.setActionListener(???);
  | 


if the menu was static we would use something like:

  | <ice:menuItem value="Find" action="#{menuBean.findAction}" />
  | 

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997797#3997797

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997797
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to