You need this in subcomponent:
public void reset() {
super.reset();
_aString = null;
}
Not really sure if I understand what you are trying to do with the repetition.
If you just want to have a cell that you can update why not use AjaxInPlace?
Aloha,
Mr. Johnny Miller
Web Development Manager
Kahalawai Media Company
Lahaina, HI 96761
tel: (808) 661-7962 | mobile: (808) 283-0791
website | e-mail
On Sep 20, 2012, at 2:58 AM, Pascal Robert <[email protected]> wrote:
> I added a test case on GitHub:
>
> https://github.com/pascalrobert/AjaxTestCase
>
>> Pascal, could you post the code of this TestsPascal component ?
>>
>> Alex
>>
>> 2012/9/19 Pascal Robert <[email protected]>
>> So I moved to divs and the problem still persist. "Funny" thing is that the
>> update is really a partial submit and the response only have the HTML for
>> the row I want to update. The ids are also matching and I'm not updating the
>> whole table.
>>
>>> Yes, I don't think that updating table structure works very well. You need
>>> to use div's for layout if you want that. Updating the contents of a cell
>>> works.
>>>
>>>
>>> Chuck
>>>
>>> On 2012-09-18, at 1:19 PM, Henrique Prange wrote:
>>>
>>>> Hi Pascal,
>>>>
>>>> I had all sort of problems trying to update just a single row of a table.
>>>> I've only been able to update the contents of a cell (using an
>>>> AjaxUpdateContainer inside of a <td>) or the entire table successfully.
>>>>
>>>> Cheers,
>>>>
>>>> Henrique
>>>>
>>>> On 18/09/2012, at 15:27, Pascal Robert <[email protected]> wrote:
>>>>
>>>>> 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" />
>>>>>
>>>>> The method is called only one time.
>>>>> _______________________________________________
>>>>> Do not post admin requests to the list. They will be ignored.
>>>>> Webobjects-dev mailing list ([email protected])
>>>>> Help/Unsubscribe/Update your Subscription:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/hprange%40gmail.com
>>>>>
>>>>> This email sent to [email protected]
>>>>
>>>>
>>>> _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list ([email protected])
>>>> Help/Unsubscribe/Update your Subscription:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net
>>>>
>>>> This email sent to [email protected]
>>>
>>> --
>>> Chuck Hill Senior Consultant / VP Development
>>>
>>> Practical WebObjects - for developers who want to increase their overall
>>> knowledge of WebObjects or who are trying to solve specific problems.
>>> http://www.global-village.net/gvc/practical_webobjects
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list ([email protected])
>> Help/Unsubscribe/Update your Subscription:
>> https://lists.apple.com/mailman/options/webobjects-dev/alexis.tual%40gmail.com
>>
>> This email sent to [email protected]
>>
>
>
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list ([email protected])
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/jlmiller%40kahalawai.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]