[ZPT] (no subject)

Michael Long mlong@datalong.com
Thu, 07 Nov 2002 00:19:21 -0500


I am building a table where each row is a form. The last row rendered
builds the url string incorrectly. All the other rows build the url
correctly. The first url below works correctly the second does not.

http://myurl?RoleId=3&RoleName=Users&Id=3&frmAction=UpdateRole&id=&x=18&y=9
http://myurl?RoleId=3&RoleName=Users&Id=3&frmAction=UpdateRole&RoleId=&RoleName=&id=&x=18&y=9

Here is the script to build the table:

<table border="5" cellpadding="5">
  <tr align="center" class="tblHead">
    <th width="75">Role Id</th>
    <th width="125">Role Name</th>
    <th colspan="2" width="120">Action</th>
  </tr>
      <tr align="center"
          tal:attributes="class python:repeat['role'].odd() and 'odd' or
'even'"
          tal:repeat="role request/AllRoles">
         <form action="" method="get">
           <td><input tal:attributes="value role/role_id|default"
                      type="text" name="RoleId" size="3"></td>
           <td><input tal:attributes="value role/role_name|nothing"
                      type="text" name="RoleName" size="12"></td>
           <td><input type="image" src="Edit_txt.gif"></td>
           <td><input type="image" src="Delete_txt.gif">
               <input type="hidden" name="Id"
                      tal:attributes="value role/role_id|nothing">
               <input type="hidden" name="frmAction"
value="UpdateRole"></td>
         </form>
      </tr>
</table>

What could be causing this?

Thanks,
Mike