• 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
Re: Really weird Ajax update problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Really weird Ajax update problem


  • Subject: Re: Really weird Ajax update problem
  • From: Pascal Robert <email@hidden>
  • Date: Thu, 20 Sep 2012 07:10:59 -0400

I moved to stateless for the sub-component (by extending from ERXStatelessComponent) and it still calls the sub-component for all rows instead of the table row I'm updating. And the table is now all divs.

> Possible cause would be binding synchronisation.
> Try to disable automatic sync binding on TestsPascal, or trace and debug those sync calls to see if they are causing this.
>
> --
> jfv
>
> Le 2012-09-18 à 14:27, Pascal Robert a écrit :
>
>> Hi guys,
>>
>> I have a table with a chunk of AjaxUpdateContainer and AjaxObserveField in it.  Each row have its own AjaxUpdateContainer, so when a observe field action is triggered, I'm calling a sub-component to fill one of the columns.
>>
>> Problem is: if the table have 10 rows, the sub-component is called 10 times instead of updating just the row where I put some text in the field that is observed. But the weird thing is that if instead of calling my sub-component and I call a
>>
>> The problem:
>>
>> <wo:form>
>> <wo:AjaxUpdateContainer id="main_table">
>> <table style="width: 100%;">
>> <wo:loop list="$childsSpec" item="$childSpec">
>>   <wo:AjaxUpdateContainer class="row" elementName="tr" id="$childSpec.spec.ID">
>>     <td class="full-height">
>>         <table width="100%">
>>             <td class="parts_column">
>>               <ul>
>>                 <wo:loop list="$~availablesPartsForSpec(childSpec.spec)" item="$partItem">
>>                       <li>
>>                         <wo:AjaxObserveField updateContainerID="$childSpec.spec.ID" action="$~addPartsFromLot(partItem)">
>> 				<wo:textfield value="$quantityToAdd" size="4" numberformat="#" style="padding: 0px; margin: 0px;" />
>> 			  </wo:AjaxObserveField>
>>                       </li>
>>                 </wo:loop>
>>               </ul>
>>             </td>
>>             <td class="manifest_column"> <wo:TestsPascal texte="allo" /> </td>
>>           </tr>
>>         </table>
>>     </td>
>>   </wo:AjaxUpdateContainer>
>> </wo:loop>
>> </table>
>> </wo:AjaxUpdateContainer>
>> </wo:form>
>>
>> If I change this:
>>
>> <wo:TestsPascal texte="allo" />
>>
>> to this:
>>
>> <wo:str value="$~someMethodThatReturnAString" />


 _______________________________________________
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: Really weird Ajax update problem
      • From: Amedeo Mantica <email@hidden>
References: 
 >Really weird Ajax update problem (From: Pascal Robert <email@hidden>)
 >Re: Really weird Ajax update problem (From: Jean-François Veillette <email@hidden>)

  • Prev by Date: Re: Fwd: build in utf-8
  • Next by Date: Re: WOTable class does not exist in Wonder and WOlips?
  • Previous by thread: Re: Really weird Ajax update problem
  • Next by thread: Re: Really weird Ajax update problem
  • Index(es):
    • Date
    • Thread