Re: WORepetition inside Form
Re: WORepetition inside Form
- Subject: Re: WORepetition inside Form
- From: Markus Ruggiero <email@hidden>
- Date: Sat, 09 Mar 2019 13:52:21 +0100
I'd think this is due to the two phases of processing a request:
takeValuesFromRequest() and invokeAction(). In both phases WO needs to unroll
the repetition by looping over it. Thus twice! And then for the form action to
actually do its job another pass through the loop is probably needed so that
the item is properly set for the action method.
---markus---
> On 9 Mar 2019, at 03:52, Jeffrey Schmitz <email@hidden> wrote:
>
> Hello List
>
> I have a WORepetition inside a form and it gets invoked once when bringing up
> the page and works great. However on submittal of the form containing the
> repetition, the WORepetition gets invoked twice more, like it’s re-building
> the page twice more before the form action is even invoked. In short, my
> question is why does it act like it’s rebuilding the page not only once, but
> twice on a form submittal when in my mind it shouldn’t be being invoked at
> all? Is there anyway to avoid this?
>
> The _group12FirstRndGamesLists, is the repetition that gets re-run on page
> submittal:
>
> <wo:WORepetition list="$_group12FirstRndGamesLists"
> item="$_groupGames">
> <wo:WORepetition list="$_groupGames" item="$_currGame">
> <div class="pickCell pickCell1 leftSide"> <wo:PickGameComp
> showTooltip="$showStats" gamePopup="$_currGame" /> </div>
> </wo:WORepetition>
> </wo:WORepetition>
>
>
> Thanks
> Jeff
>
>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden