That’s clever Samuel. Using the components as building blocks to piggy back 
from each other. Bravo :-)

> On Nov 11, 2023, at 5:12 PM, Samuel Pelletier via Webobjects-dev 
> <webobjects-dev@lists.apple.com> wrote:
> 
> Hi,
> 
> I managed to achieve your goal in my apps using this pattern :
>       - Create a submit js function using an AjaxSubmitButton
>       - Use the created function in afterUpdateElement on AjaxAutoComplete. 
> 
> <wo:AjaxSubmitButton updateContainerID = "_parent" functionName = 
> "addLigneAvecFormat" action = "$selectionnerProduit" />
> <wo:AjaxAutoComplete ... afterUpdateElement = "addLigneAvecFormat" />
> 
> Regards,
> 
> Samuel
> 
> 
>> Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev 
>> <webobjects-dev@lists.apple.com <mailto:webobjects-dev@lists.apple.com>> a 
>> écrit :
>> 
>> Tim,
>> 
>> Sorry!. I could not put it to work. I am sure that I am making something 
>> wrong.
>> 
>> My AjaxAutocomplete is
>> 
>> <wo:AjaxAutoComplete id = "customers" afterUpdateElement = "observe" class = 
>> "form-control" list = "$currentValuesForCustomers" selection = "$global" 
>> value = "$value" item = "$currentValue" />
>> 
>> And then I have a AjaxObserveField as follows
>> 
>> 
>> <wo:AjaxObserveField observeFieldID = "customers" updateContainerID = 
>> "invoiceslist" action = "$customerSelected"></wo:AjaxObserveField>
>> 
>> 
>> Can you see what I am doing wrong?
>> 
>> Stavros
>> 
>> 
>> 
>>> On 9 Nov 2023, at 10:00 PM, webobjects-dev-requ...@lists.apple.com wrote:
>>> 
>>> Send Webobjects-dev mailing list submissions to
>>>     webobjects-dev@lists.apple.com
>>> 
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>>     https://lists.apple.com/mailman/listinfo/webobjects-dev
>>> or, via email, send a message with subject or body 'help' to
>>>     webobjects-dev-requ...@lists.apple.com
>>> 
>>> You can reach the person managing the list at
>>>     webobjects-dev-ow...@lists.apple.com
>>> 
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of Webobjects-dev digest..."
>>> 
>>> 
>>> Today's Topics:
>>> 
>>>   1. AjaxAutoComplete (Stavros Panidis)
>>>   2. Re: AjaxAutoComplete (D Tim Cummings)
>>>   3. Re: AjaxAutoComplete (Jesse Tayler)
>>> 
>>> 
>>> ----------------------------------------------------------------------
>>> 
>>> Message: 1
>>> Date: Thu, 9 Nov 2023 09:54:40 +0200
>>> From: Stavros Panidis <stavros.pani...@gmail.com>
>>> To: webobjects-dev@lists.apple.com
>>> Subject: AjaxAutoComplete
>>> Message-ID: <d762b351-ea47-436b-88c8-741d23354...@gmail.com>
>>> Content-Type: text/plain;   charset=us-ascii
>>> 
>>> Hi,
>>> 
>>> Is there any trick available to make AjaxAutoComplete field observable (by 
>>> AjaxAobserveField) ?
>>> 
>>> Many thanks in advance for your help
>>> 
>>> Stavros
>>> 
>>> ------------------------------
>>> 
>>> Message: 2
>>> Date: Thu, 9 Nov 2023 20:00:33 +1000
>>> From: D Tim Cummings <t...@triptera.com.au>
>>> To: webobjects-dev@lists.apple.com
>>> Subject: Re: AjaxAutoComplete
>>> Message-ID: <c2899e4f-b36b-472b-afbf-638796449...@triptera.com.au>
>>> Content-Type: text/plain; charset=UTF-8; format=flowed
>>> 
>>> Set parameter afterUpdateElement to "observe" and it will behave like it 
>>> is in an AjaxObserveField
>>> 
>>> <wo:AjaxAutoComplete list = "$listCustomerName" size = "50" value = 
>>> "$theCustomerName" afterUpdateElement = "observe" />
>>> 
>>> Tim
>>> 
>>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:
>>>> Hi,
>>>> 
>>>> Is there any trick available to make AjaxAutoComplete field observable (by 
>>>> AjaxAobserveField) ?
>>>> 
>>>> Many thanks in advance for your help
>>>> 
>>>> Stavros
>>>>  _______________________________________________
>>>> 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:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
>>>> 
>>>> This email sent to t...@triptera.com.au
>>> 
>>> 
>>> ------------------------------
>>> 
>>> Message: 3
>>> Date: Thu, 9 Nov 2023 12:00:52 -0500
>>> From: Jesse Tayler <jtay...@oeinc.com>
>>> To: D Tim Cummings <t...@triptera.com.au>
>>> Cc: webobjects-dev@lists.apple.com
>>> Subject: Re: AjaxAutoComplete
>>> Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com>
>>> Content-Type: text/plain; charset="utf-8"
>>> 
>>> I have used Ajax quite easily on a couple of components and for some 
>>> reason, implementing even the simplest test was failing on updating a 
>>> component of a similar sort.
>>> 
>>> Before I make a wholly new component ? are there flags or tests aside from 
>>> jQuery which seems fine? I don?t readily see why this just isn?t seemingly 
>>> observing and updating the way I expect?
>>> 
>>> Thoughts?
>>> 
>>>> On Nov 9, 2023, at 5:00 AM, D Tim Cummings via Webobjects-dev 
>>>> <webobjects-dev@lists.apple.com> wrote:
>>>> 
>>>> Set parameter afterUpdateElement to "observe" and it will behave like it 
>>>> is in an AjaxObserveField
>>>> 
>>>> <wo:AjaxAutoComplete list = "$listCustomerName" size = "50" value = 
>>>> "$theCustomerName" afterUpdateElement = "observe" />
>>>> 
>>>> Tim
>>>> 
>>>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote:
>>>>> Hi,
>>>>> 
>>>>> Is there any trick available to make AjaxAutoComplete field observable 
>>>>> (by AjaxAobserveField) ?
>>>>> 
>>>>> Many thanks in advance for your help
>>>>> 
>>>>> Stavros
>>>>> _______________________________________________
>>>>> 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:
>>>>> https://lists.apple.com/mailman/options/webobjects-dev/tim%40triptera.com.au
>>>>> 
>>>>> This email sent to t...@triptera.com.au
>>>> _______________________________________________
>>>> 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:
>>>> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com
>>>> 
>>>> This email sent to jtay...@oeinc.com
>>> 
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL: 
>>> <https://lists.apple.com/archives/webobjects-dev/attachments/20231109/a4ce1245/attachment.htm>
>>> 
>>> ------------------------------
>>> 
>>> Subject: Digest Footer
>>> 
>>> _______________________________________________
>>> Webobjects-dev mailing list
>>> Webobjects-dev@lists.apple.com
>>> https://lists.apple.com/mailman/listinfo/webobjects-dev
>>> 
>>> 
>>> ------------------------------
>>> 
>>> End of Webobjects-dev Digest, Vol 20, Issue 56
>>> **********************************************
>> 
>> _______________________________________________
>> 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:
>> https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com 
>> <https://lists.apple.com/mailman/options/webobjects-dev/samuel%40samkar.com>
>> 
>> This email sent to sam...@samkar.com <mailto:sam...@samkar.com>
> 
> _______________________________________________
> Do not post admin requests to the list. They will be ignored.
> Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com 
> <mailto:Webobjects-dev@lists.apple.com>)
> Help/Unsubscribe/Update your Subscription:
> https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com 
> <https://lists.apple.com/mailman/options/webobjects-dev/aaron%40chatnbike.com>
> 
> This email sent to aa...@chatnbike.com <mailto:aa...@chatnbike.com>
 _______________________________________________
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:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

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

Reply via email to