Hi there,

  I need to do this in my JSP:

  <webwork:iterator name="permission">
    <webwork:include page="/template/standard/checkbox.jsp">
      <webwork:param name="name" value="someUniqueName"/>
      <webwork:param name="value" value="shortAccessRight"/>
      <webwork:param name="label" value="longAccessRight"/>
    </webwork:include>
  </webwork:iterator>

  Where 'permission' is an ArrayList and the short- and longAccessRight
are calls to the ArrayList's getter methods.

  The problem lies in the 'someUniqueName' part.  When the page is
submitted I need to know which checkboxes have been selected so this
name has to be unique.  I don't know how I can do this!  

  I've tried using a webwork/jsp combination (eg <webwork:param
name="name" value="string<%= uniquenumber %>"/>) but this doesn't work
and even if it did I'd have to have the appropriate getString1(),
getString2() etc thus limiting the number of checkboxes I can actually
have and making the use of the iterator tag somewhat contrived.

  Someone must have done something similar to this before...any ideas?

Greg Lucas-Smith


_______________________________________________
Webwork-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/webwork-user

Reply via email to