4 Replies Latest reply on Mar 31, 2009 9:19 AM by julienc

    Iteration and action on link

    julienc

      Hello guy,

      I'll try to iterate on a list to construct dynamic menu.
      i'll try with rich:datalist, c:foreach , ... and it's the same problem on the s:link action method the value is null.

      Example

      <a4j:repeat var="menu" value="#{menus_list.initMenu()}">
      <s:link action="#{menus_list.setSelected(menu)}"
      view="/#{menu.url}"></s:link>
      </a4j:repeat>
      


      So in setSelected(menu) we always have menu = null.

      How get the menu selected in my bean ? what should i use?

      Just for information with an h:commandLink we get the good value of menu but it's not a real link

      Thanks.