• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Ajax inside a Repetition
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Ajax inside a Repetition


  • Subject: Ajax inside a Repetition
  • From: Dawn Lockhart <email@hidden>
  • Date: Tue, 24 Mar 2009 12:29:15 -0400
  • Thread-topic: Ajax inside a Repetition

I have a repetition with check boxes in each row. It worked like a charm
until I upgraded to WO 5.4 and Wonder revision 8988.

If there are items in the repetition when the page initially loads, they all
work fine, but if I add items to the repetition with an AjaxSubmitButton and
update the container, then only the first row of the repetition works. If I
press F5 and reload the page, then everything works.

<wo:AjaxUpdateContainer id="ListUpdateID">
<wo:WORepetition list="$list" item="$item" index="$rowNumber">
    <td><wo:AjaxObserveField updateContainerID="$updateContainerID"

action="$checked" fullSubmit="$no">
            <wo:checkbox checked="$item.doNotShip" />
        </wo:AjaxObserveField>
    </td>
    <td>
        <wo:AjaxUpdateContainer id="$updateContainerID">
            <wo:WOTextField id="$calendarRowId" size="12"

value="$item.date" />&nbsp;
            <wo:CalendarPopUp calendarFieldId="$calendarRowId" />
        </wo:AjaxUpdateContainer>
    </td>
</wo:WORepetition>
</wo:AjaxUpdateContainer>

<wo:AjaxSubmitButton action="$add" value="Add"

updateContainerID="ListUpdateID" />

When I look at the generated JavaScript, it seems to only generate the
JavaScript that registers the observe field if I manually refresh the page.
How do I get the fields registered without refreshing the whole page?

I tried removing the observe field and having the checkbox call a setChecked
method in the Java class and that didn't work either, it only hit the
setChecked method for the first row and not subsequent rows unless I
refreshed.

TIA,
Dawn

 _______________________________________________
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

  • Follow-Ups:
    • Re: Ajax inside a Repetition
      • From: Travis Britt <email@hidden>
  • Prev by Date: Re: Webobjects design: multiple editing contexts
  • Next by Date: A few basic questions about EOF
  • Previous by thread: Webobjects design: primary keys with business meaning and allowing users to type them in!
  • Next by thread: Re: Ajax inside a Repetition
  • Index(es):
    • Date
    • Thread