1 Reply Latest reply on Apr 5, 2007 8:37 AM by Ilya Shaikovsky

    Unable to pass an expression into the value attribute of <h:

    varshita bathina Newbie

      Hiiii
      I am displaying various links from db using coomandLink tag,anf i want to know ""which link is clicked on" " by the user and depending on that clicked one i wanna display the corresponding details in a separate page.So here is the jsp snippet i am using:


      <%ApproveBean a = new ApproveBean();
      ArrayList categories = new ArrayList();
      categories = a.getCategories();%>
      <table align="center" styleClass="outputBlack">
      <%for (int i = 0; i < categories.size(); i++) {%>
      <tr bgcolor="#B0C4DE">
      <td><%=categories.get(i)%></td>
      <tr>
      <%ArrayList values = new ArrayList();
      values = a.getPendingList(String.valueOf(categories.get(i)));
      for (int j = 0; j < values.size(); j = j + 6) {
      String b = (String) values.get(j + 1);%>
      <tr>
      <td><h:commandLink action="#{approveBean.action}">
      <f:verbatim>
      <%=values.get(j + 1)%>
      </f:verbatim>
      <param name="var1" value="<%=values.get(j+1)%>" />
      </h:commandLink></td>
      </tr>
      <%}
      }%>
      





      can any one help me!!

      thanks in advance,
      Varshita.