3 Replies Latest reply on Sep 15, 2011 1:43 PM by gjouy

    iteration on s:link null value on action method

    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 is 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.