Yes, I forgot to mention that the ID is unique, I'm appending the rowNumber
to each ID. 

The whole repetition is wrapped in an AjaxUpdateContainer. When you check
the checkbox, I need it to hide/show the calendar. I just realized I forgot
to leave the conditional on the calendar column that hides/shows the field
if the checkbox is checked.

Tried changing the AjaxObserveField's updateContainerID to the outer
container 'ListUpdateID' and still no luck. When an item is added to the
repetition, only the checkbox and calendar in the first row work.


On 3/24/09 2:44 PM, "Travis Britt" <tbr...@phigment.org> wrote:

> It looks like you're binding the ID for your AjaxUpdateContainer in a
> repetition -- are you sure the IDs are unique?
> 
> Have you tried wrapping the repetition with the AjaxUpdateContainer
> and updating the entire repetition? Then you should also be able to
> wrap the checkboxes in one AjaxObserveField.
> 
> tb
> 
> On Mar 24, 2009, at 12:29 PM, Dawn Lockhart wrote:
> 
>> 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:not condition="$item.doNotShip">
>>            <wo:WOTextField id="$calendarRowId" size="12"
>> 
>> value="$item.date" />&nbsp;
>>            <wo:CalendarPopUp calendarFieldId="$calendarRowId" />
            </wo:not>
>>        </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      (Webobjects-dev@lists.apple.com)
>> Help/Unsubscribe/Update your Subscription:
>> http://lists.apple.com/mailman/options/webobjects-dev/tbritt%40phigment.org
>> 
>> This email sent to tbr...@phigment.org
> 

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to