in the component dynamicAnswersLoop you use
<binding name="index2" value="index2"/>

use

<binding name="index" value="index2"/>

(name is index and not index2)



Tapestry wrote:
Ooops...forgot to disable html...but the lady would never protest too much! [Twisted Evil]
HTML snippet:

<table width="100%" align="left">
          <tr><span jwcid="dynamicStepsLoop">
                <td><span class="style1" jwcid="questionText"></span></td>
<tr><span jwcid="dynamicAnswersLoop"> <td><span jwcid="answerText"></span></td>
                
                </span></tr>
</span></tr> </table>

Specification:

<component id="dynamicStepsLoop" type="For">
           <binding name="source" value="algSteps"/>
           <binding name="element" value="literal:tr"/>
           <binding name="index" value="index"/>
        </component>
    <component id="questionText" type="Insert">
        <binding name="value" value="algSteps[index].question"/>
    </component>
    <component id="dynamicAnswersLoop" type="For">
        <binding name="source" value="stepAnswers"/>
        <binding name="element" value="literal:tr"/>
        <binding name="index2" value="index2"/>
    </component>
    <component id="answerText" type="Insert">
        <binding name="value" value="stepAnswers[index2].displayAnswer"/>
    </component>


-------------------- m2f --------------------

Sent from www.TapestryForums.com

Read this topic online here: <<topic_link>>

http://www.tapestryforums.com/viewtopic.php?p=11389#11389

-------------------- m2f --------------------





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to