Arash Bijanzadeh wrote:
I could not figure out what shall I use in the action tag of jscookmenu? I couldn't figure out what nav_page1 or go_page1 means in the config file and the menu handlers!

The action string in jscookmenu can be a literal string, in which case you write a navigation rule in the faces-config.xml:

<navigation-rule>
  <navigation-case>
    <from-outcome>go_page1</from-outcome>
    <to-view-id>/jsp/pages/page1.jsp</to-view-id>
  </navigation-case>
</snavigation-rule>

It can also be a binding to an action method:
  action="#{menuBean.navigate}"
where the menuBean  managed bean has:
  public String navigate() {
    // calculate destination
    return "go_page1";
  }

Regards,

Simon

Reply via email to