I am trying to wrap my head around how to do this in tapestry. 

I have a form with 20 select components that are created with the loop 
component. 

Given a Map<Group, User> groupMap...

Each select component's value (user) is a value in the map. 

Each label (group) for each select is the key of the map

when a select components value has been changed, I want to update the map with 
it value.

I understand that if this was just one select component I could just say 
something like OnChangeFromSelectID or a zone. 

But I'm trying to understand how to do this with 20 select components:

TML:
<table>

  <tr>
   <td colspan="2">
     <label>Group</label>
       </td>
         </tr>
          <t:loop source="salesGroups" value="group" element="tr">
            <td><t:label for="GroupName">${group.groupName}</t:label></td>
            <td><t:select t:id="GroupName" model="userModel" value="GroupUser"  
/></td>
          </t:loop>
</table>

PAGE CLASS?:
    public Object onGroupNameChange(User user)
    {    
      groupMap.put(group, recipient);
    }


I'm still new but i'm starting to get the hang of T5...
Thanks!
-Russell

Reply via email to