[Zope] Value of radio button

Dieter Maurer dieter@handshake.de
Wed, 26 Jun 2002 21:29:04 +0200

Rebecca.R.Hepper@seagate.com writes:
 > ....
 > <table class="normal">
 >   <tr>&nbsp;</tr>
 >   <tr valign="top" align="left"  tal:repeat="folders
 > python:here.objectValues('Folder')">
 >      <th tal:define="foldersName folders/title" tal:content
 > ="foldersName">Title</th>
 >       <td><input type="radio" name="release" value=foldersName></td>
 >     </tr>
 > </table>
Others already told you about the "tal:attributes" in the "input" tag.

You will need a second modification:

    The "tal:define" in "th" is local. The definition disappears
    as soon as you leave the "th" element.

    Either use "global foldersName" or add an additional (artificial)
    tag around both "th" and "td" and give it the definition.
    You may use "tal:dummy" (or another tag in the "tal" namespace).
    As an element in the "tal" namespace, there will be not tags