Yeah,  this is covered by the servlet container implementors.   public
Object[] HttpServletRequest.getParameterValues(String key) {..}

It's how radio groups / multiple select choices / checkboxes all work.

On Feb 6, 2008 10:15 AM, Davor Hrg <[EMAIL PROTECTED]> wrote:
> I dont know definitely on what the standard is (specialy because
> browsers choose to implement them how ever they want)
>
> but using same name for multiple inputs usualy means array
> .. php recognizes this if input name edns with "[]"
>
> Davor Hrg
>
> On Feb 6, 2008 12:27 PM, Richard Hoberman
>
> <[EMAIL PROTECTED]> wrote:
> > Thanks (again), Andreas.  You are right and I have found a way that
> > doesn't require using these pairs.  I assumed that the POST protocol
> > mandated unique names, but I haven't been able to turn up anything
> > justifying my assumption.
> >
> > Best regards
> >
> > Richard
> >
> >
> > Andreas Andreou wrote:
> > > 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]
> > >>
> > >>
> > >>
> > >
> > >
> > >
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Jesse Kuhnert
Tapestry / OGNL / Dojo team member/developer

Open source based consulting work centered around
dojo/tapestry/tacos/hivemind. http://blog.opencomponentry.com

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

Reply via email to