Actually, that's the correct behavior... at least that's how it's been since T3!
All the For_0 hiddens values are used during rewind and they're
expected this way

I'm guessing you're trying to do some javascript that relates to those?
Do you really need to use those values? I'd prefer not to tie the js so much
to tapestry's internals...

On Feb 6, 2008 12:22 PM, Richard Hoberman
<[EMAIL PROTECTED]> wrote:
> Hi All
>
> Below is a form snippet followed by the html generated by Tapestry
> 4.1.5.  The LI element ids are sensibly "For_0" through "For_N".  The
> hidden fields corresponding to these items are ALL named "For_0".
> Surely the appended digit should be incremented so as to correspond with
> the LI ids?
>
> Am I missing something?
>
> Richard Hoberman
>
> <form jwcid="[EMAIL PROTECTED]" listener="listener:onSubmitCities"
> updateComponents="jwcidcityList">
>
>             <span jwcid="[EMAIL PROTECTED]" encode="false"
> value="ognl:ordering"/>
>
>             <ul id="cityList" jwcid="[EMAIL PROTECTED]">
>                 <li jwcid="@For" source="ognl:itinerary.itineraryItems"
>                                  converter="ognl:itineraryItemConverter"
>                                  value="ognl:currentItineraryItem"
>                                  class="sortable">
>                     <div class="cityInfo">
>                         <h4 class="col1">
>                             <span jwcid="@Insert"
> value="ognl:currentItineraryItem.city.name">Amsterdam</span>
>
>                         </h4>
>                     </div>
>                 </li>
>             </ul>
>         </form>
>
> <form method="post" action="/cbe/app" id="cities">
> <div style="display:none;" id="citieshidden"><input type="hidden" 
> name="formids" value="order,For_0" />
> <input type="hidden" name="seedids" 
> value="ZH4sIAAAAAAAAAFvzloG1vIAhT6c4tagsMzlVxUCnIDEdRCXn5xbk56XmlYDZeSWJmXmpRUB2cWpxcWZ+HohVACSCM1JzcoC0Y14lhIw3gNKGUNoISDvlp4CkkzNLMlOLVQwAKH0YxHYAAAA="
>  />
> <input type="hidden" name="component" value="cities" />
>
> <input type="hidden" name="page" value="ReorderingTestPage" />
> <input type="hidden" name="service" value="direct" />
> <input type="hidden" name="session" value="T" />
> <input type="hidden" name="updateParts" value="cityList" />
> <input type="hidden" name="reservedids" value="updateParts" />
> <input type="hidden" name="submitmode" value="" />
> <input type="hidden" name="submitname" value="" />
> <input type="hidden" name="order" id="order" value="5003,5004,5005" />
> <input type="hidden" name="For_0" value="Pl5003" />
> <input type="hidden" name="For_0" value="Pl5004" />
> <input type="hidden" name="For_0" value="Pl5005" />
> </div>
>
>
>
>                         <ul id="cityList">
>                                 <li class="sortable" id="For_0">
>                                         <div class="cityInfo">
>
>                                                 <h4 class="col1">
>                                                         London
>                                                 </h4>
>                                         </div>
>                                 </li><li class="sortable" id="For_1">
>                                         <div class="cityInfo">
>                                                 <h4 class="col1">
>                                                         Amsterdam
>                                                 </h4>
>                                         </div>
>
>                                 </li><li class="sortable" id="For_2">
>                                         <div class="cityInfo">
>                                                 <h4 class="col1">
>                                                         Rotterdam
>                                                 </h4>
>                                         </div>
>                                 </li>
>                         </ul>
>                 </form>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Andreas Andreou - [EMAIL PROTECTED] - http://blog.andyhot.gr
Tapestry / Tacos developer
Open Source / JEE Consulting

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

Reply via email to