Re: AjaxAutoComplete
No problem at all Tim. I will try a little bit more. Thanks to all! Stavros > On 12 Nov 2023, at 3:56 AM, 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. Re: AjaxAutoComplete (D Tim Cummings) > 2. Re: AjaxAutoComplete (Samuel Pelletier) > 3. Re: Replay request (Andr? Rothe) > 4. Re: AjaxAutoComplete (Aaron Rosenzweig) > > > -- > > Message: 1 > Date: Sun, 12 Nov 2023 07:34:24 +1000 > From: D Tim Cummings > To: webobjects-dev@lists.apple.com > Subject: Re: AjaxAutoComplete > Message-ID: > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Hi Stavros > > Sorry to mislead you. I thought you were looking for the behaviour of > AjaxObserveField to send updated data back to the server immediately > rather than updating a container on the current page. There may be a way > to do what you ask but I have never tried it. Maybe you could put some > javascript in afterUpdateElement to update a different field which is in > an AjaxObserveField. > > Regards > > Tim > > On 10/11/23 20:55, Stavros Panidis wrote: >> Tim, >> >> Sorry!. I could not put it to work. I am sure that I am making >> something wrong. >> >> My AjaxAutocomplete is >> >> > class = "form-control" list = "$currentValuesForCustomers" selection = >> "$global" value = "$value" item = "$currentValue" /> >> >> And then I have a AjaxObserveField as follows >> >> >> > "invoiceslist" action = "$customerSelected"> >> >> 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 >>> To: webobjects-dev@lists.apple.com >>> Subject: AjaxAutoComplete >>> Message-ID: >>> 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 >>> To: webobjects-dev@lists.apple.com >>> Subject: Re: AjaxAutoComplete >>> Message-ID: >>> Content-Type: text/plain; charset=UTF-8; format=flowed >>> >>> Set parameter afterUpdateElement to "observe" and it will behave like it >>> is in an AjaxObserveField >>> >>> >> "$theCustomerName" afterUpdateElement = "observe" /> >>> >>> Tim >>> >>> On 9/11/23 17:54, Stavros Panidis via Webobjects-dev wrote: >>>>
Re: AjaxAutoComplete
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 > 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. > > "addLigneAvecFormat" action = "$selectionnerProduit" /> > > > Regards, > > Samuel > > >> Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev >> 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 >> >> > "form-control" list = "$currentValuesForCustomers" selection = "$global" >> value = "$value" item = "$currentValue" /> >> >> And then I have a AjaxObserveField as follows >> >> >> > "invoiceslist" action = "$customerSelected"> >> >> >> 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 >>> To: webobjects-dev@lists.apple.com >>> Subject: AjaxAutoComplete >>> Message-ID: >>> 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 >>> To: webobjects-dev@lists.apple.com >>> Subject: Re: AjaxAutoComplete >>> Message-ID: >>> Content-Type: text/plain; charset=UTF-8; format=flowed >>> >>> Set parameter afterUpdateElement to "observe" and it will behave like it >>> is in an AjaxObserveField >>> >>> >> "$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 >>> To: D Tim Cummings >>> Cc: webobjects-dev@lists.apple.com >>> Subject: Re: AjaxAutoComplete >>> Message-ID: <48f21de2-2301-4c1f-a473-25d1850a4...@oeinc.com> >
Re: AjaxAutoComplete
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. Regards, Samuel > Le 10 nov. 2023 à 05:55, Stavros Panidis via Webobjects-dev > a écrit : > > Tim, > > Sorry!. I could not put it to work. I am sure that I am making something > wrong. > > My AjaxAutocomplete is > > "form-control" list = "$currentValuesForCustomers" selection = "$global" > value = "$value" item = "$currentValue" /> > > And then I have a AjaxObserveField as follows > > > "invoiceslist" action = "$customerSelected"> > > > 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 >> To: webobjects-dev@lists.apple.com >> Subject: AjaxAutoComplete >> Message-ID: >> 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 >> To: webobjects-dev@lists.apple.com >> Subject: Re: AjaxAutoComplete >> Message-ID: >> Content-Type: text/plain; charset=UTF-8; format=flowed >> >> Set parameter afterUpdateElement to "observe" and it will behave like it >> is in an AjaxObserveField >> >> > "$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 >> To: D Tim Cummings >> 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 >>> wrote: >>> >>> Set parameter afterUpdateElement to "observe" and it will behave like it is >>> in an AjaxObserveField >>> >>> >> "$theCustomerName" afterUpdateEle
Re: AjaxAutoComplete
Hi Stavros Sorry to mislead you. I thought you were looking for the behaviour of AjaxObserveField to send updated data back to the server immediately rather than updating a container on the current page. There may be a way to do what you ask but I have never tried it. Maybe you could put some javascript in afterUpdateElement to update a different field which is in an AjaxObserveField. Regards Tim On 10/11/23 20:55, Stavros Panidis wrote: Tim, Sorry!. I could not put it to work. I am sure that I am making something wrong. My AjaxAutocomplete is class = "form-control" list = "$currentValuesForCustomers" selection = "$global" value = "$value" item = "$currentValue" /> And then I have a AjaxObserveField as follows "invoiceslist" action = "$customerSelected"> 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 To: webobjects-dev@lists.apple.com Subject: AjaxAutoComplete Message-ID: 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 To: webobjects-dev@lists.apple.com Subject: Re: AjaxAutoComplete Message-ID: Content-Type: text/plain; charset=UTF-8; format=flowed Set parameter afterUpdateElement to "observe" and it will behave like it is in an AjaxObserveField 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 To: D Tim Cummings 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 wrote: Set parameter afterUpdateElement to "observe" and it will behave like it is in an AjaxObserveField "$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> --
AjaxAutoComplete
Tim, Sorry!. I could not put it to work. I am sure that I am making something wrong. My AjaxAutocomplete is And then I have a AjaxObserveField as follows 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 > To: webobjects-dev@lists.apple.com > Subject: AjaxAutoComplete > Message-ID: > 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 > To: webobjects-dev@lists.apple.com > Subject: Re: AjaxAutoComplete > Message-ID: > Content-Type: text/plain; charset=UTF-8; format=flowed > > Set parameter afterUpdateElement to "observe" and it will behave like it > is in an AjaxObserveField > > "$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 > To: D Tim Cummings > 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 >> wrote: >> >> Set parameter afterUpdateElement to "observe" and it will behave like it is >> in an AjaxObserveField >> >> > "$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) >> Hel
Re: AjaxAutoComplete
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 > wrote: > > Set parameter afterUpdateElement to "observe" and it will behave like it is > in an AjaxObserveField > > "$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 ___ 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
Re: AjaxAutoComplete
Set parameter afterUpdateElement to "observe" and it will behave like it is in an AjaxObserveField "$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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
AjaxAutoComplete
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/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete in AjaxModalDialog
Hi Samuel, Yes that is basically what we did. We rolled back prototype to version 1.7 Regards, Ricardo > > On Dec 5, 2021, at 8:13 AM, Samuel Pelletier wrote: > > Hi Ricardo, > > I also noticed the problem outside modal dialog after testing it. After many > try and errors, I found a pattern. There is a problem with the latest > prototype.js clonePosition when the element is inside a float block (at > least). > > I simplified the clone position to use the new (prototype 1.7) Layout > functions and it fixes my problems. > > Here is the diff from my GitHub fork, can you give it a try on your apps. If > you have good results, I will create a pull request for the main Wonder > source. > > https://github.com/wocommunity/wonder/compare/master...spelletier:Fix_prototype_clonePosition?expand=1#diff-b6bffd9eba6821e533154f2617bd3a1c5ec0378a3cbbb2acce98ecd245e3a085 > > Regards, > > Samuel > > > >> Le 4 déc. 2021 à 22:55, Ricardo Parada a écrit : >> >> Hi Samuel, >> >> That sounds like a problem that we had that was solved by rolling back >> prototype.js to version 1.7 >> >> I believe wonder uses a more recent version, 1.7.3. We tried 1.7, 1.7.1, >> 1.7.2 and 1.7.3. >> >> I think all versions prior to 1.7.3 fix the display of AjaxAutoComplete. >> >> By the way, for us, the problem occurred outside ajax modal dialogs too when >> the page was scrolled if I remember correctly. >> >> But we also had other stuff that required Ajax dragging and for that we had >> to roll back all the way to the good old 1.7 >> >> I think I discussed this problem in the WebObjects slack channel and I may >> have included screenshots of what I was seeing. >> >> Hope that helps. >> >> Sent from my iPhone >> >>>> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev >>>> wrote: >>> >>> Hi, >>> >>> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works >>> OK. A very strange problem occur when the main page is scrolled though, the >>> selection choices are displayed with a vertical distance from the textfield >>> that correspond to the vertical scroll of the main page bellow. >>> >>> It seems the javascript code compute this offset and set the absolute >>> position using it. This is fine on the scrolled contents but not inside a >>> modal dialog. >>> >>> Someone knows a work around for this problem ? >>> >>> Regards, >>> >>> Samuel >>> >>> >>> ___ >>> 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/rparada%40mac.com >>> >>> This email sent to rpar...@mac.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
Re: AjaxAutoComplete in AjaxModalDialog
Hi Ricardo, I also noticed the problem outside modal dialog after testing it. After many try and errors, I found a pattern. There is a problem with the latest prototype.js clonePosition when the element is inside a float block (at least). I simplified the clone position to use the new (prototype 1.7) Layout functions and it fixes my problems. Here is the diff from my GitHub fork, can you give it a try on your apps. If you have good results, I will create a pull request for the main Wonder source. https://github.com/wocommunity/wonder/compare/master...spelletier:Fix_prototype_clonePosition?expand=1#diff-b6bffd9eba6821e533154f2617bd3a1c5ec0378a3cbbb2acce98ecd245e3a085 Regards, Samuel > Le 4 déc. 2021 à 22:55, Ricardo Parada a écrit : > > Hi Samuel, > > That sounds like a problem that we had that was solved by rolling back > prototype.js to version 1.7 > > I believe wonder uses a more recent version, 1.7.3. We tried 1.7, 1.7.1, > 1.7.2 and 1.7.3. > > I think all versions prior to 1.7.3 fix the display of AjaxAutoComplete. > > By the way, for us, the problem occurred outside ajax modal dialogs too when > the page was scrolled if I remember correctly. > > But we also had other stuff that required Ajax dragging and for that we had > to roll back all the way to the good old 1.7 > > I think I discussed this problem in the WebObjects slack channel and I may > have included screenshots of what I was seeing. > > Hope that helps. > > Sent from my iPhone > >> On Dec 3, 2021, at 3:27 PM, Samuel Pelletier via Webobjects-dev >> wrote: >> >> Hi, >> >> I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works >> OK. A very strange problem occur when the main page is scrolled though, the >> selection choices are displayed with a vertical distance from the textfield >> that correspond to the vertical scroll of the main page bellow. >> >> It seems the javascript code compute this offset and set the absolute >> position using it. This is fine on the scrolled contents but not inside a >> modal dialog. >> >> Someone knows a work around for this problem ? >> >> Regards, >> >> Samuel >> >> >> ___ >> 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/rparada%40mac.com >> >> This email sent to rpar...@mac.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
AjaxAutoComplete in AjaxModalDialog
Hi, I want to use AjaxAutoComplete inside AjaxModalDialog and usually, it works OK. A very strange problem occur when the main page is scrolled though, the selection choices are displayed with a vertical distance from the textfield that correspond to the vertical scroll of the main page bellow. It seems the javascript code compute this offset and set the absolute position using it. This is fine on the scrolled contents but not inside a modal dialog. Someone knows a work around for this problem ? Regards, Samuel ___ 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
Re: Safari ignores autocomplete="off" in AjaxAutoComplete component
This is the problem: After spending quite some time googling and reading I found a solution (and yes, others have observed the same silly behaviour). https://bytes.grubhub.com/disabling-safari-autofill-for-a-single-line-address-input-b83137b5b1c7";> We didn’t have a label element, just an input with a placeholder value. Our solution was to add a name attribute with the word “search” in it. Safari considers “search” a valid AutoFIll value and maps it to an input that does not require AutoFIll, so it doesn’t attempt to check the values for placeholder or label. We were unable to find a Safari AutoFIll regex list ,such as the AutoFill Regex provided by Chrome. We cannot say which values other than “search” would prevent AutoFill from showing. I have modified the Wonder component AjaxAutoComplete.java as follows: /** * Overridden to set the IDs for the field and the div tag. */ @Override public void awake() { super.awake(); divName = safeElementID() + "_div"; fieldName = safeElementID() + "_search_field"; // note: added the string "search" to the generated fieldname indicatorName = safeElementID() + "_indicator"; } This is very simple and fixes the issue. I don't know whether such a fix breakes someone's own project in case you rely on the naming of the field. Thus I decided to implement our own component based on the Wonder one and leave the frameworks alone. ---markus--- > On 29 Aug 2019, at 15:30, Samuel Pelletier wrote: > > Hi Markus, > > I do not experience this problem on my side. I do not remember experienced it > either. I'm currently using Safari 12.1.2 on Mojave and on iOS 12.4 devices > with latest Wonder. > > The only problem I experience with AutoComplete is on iOS, the popup does not > appears at the field location. > > Samuel > > >> Le 29 août 2019 à 07:21, Markus Ruggiero via Webobjects-dev >> a écrit : >> >> Seems there is a big issue with Safari and AjaxAutoComplete. The textfield >> is explicitly set to autocomplete="off" but Safari ignores this. So when the >> user starts typing Safari OVERLAYS the autocomplete list from the component >> with its own autocomplete stuff making the component's provided pick list >> unusable. The very same thing works correctly in Firefox. >> >> Anybody knows what is going on here and how to fix this? >> >> ---markus--- >> >> ___ >> 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 >> >> This email sent to sam...@samkar.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
Re: Safari ignores autocomplete="off" in AjaxAutoComplete component
Hi Markus, I do not experience this problem on my side. I do not remember experienced it either. I'm currently using Safari 12.1.2 on Mojave and on iOS 12.4 devices with latest Wonder. The only problem I experience with AutoComplete is on iOS, the popup does not appears at the field location. Samuel > Le 29 août 2019 à 07:21, Markus Ruggiero via Webobjects-dev > a écrit : > > Seems there is a big issue with Safari and AjaxAutoComplete. The textfield is > explicitly set to autocomplete="off" but Safari ignores this. So when the > user starts typing Safari OVERLAYS the autocomplete list from the component > with its own autocomplete stuff making the component's provided pick list > unusable. The very same thing works correctly in Firefox. > > Anybody knows what is going on here and how to fix this? > > ---markus--- > > ___ > 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 > > This email sent to sam...@samkar.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
Safari ignores autocomplete="off" in AjaxAutoComplete component
Seems there is a big issue with Safari and AjaxAutoComplete. The textfield is explicitly set to autocomplete="off" but Safari ignores this. So when the user starts typing Safari OVERLAYS the autocomplete list from the component with its own autocomplete stuff making the component's provided pick list unusable. The very same thing works correctly in Firefox. Anybody knows what is going on here and how to fix this? ---markus--- ___ 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
Re: AjaxAutoComplete
Louis: Always make sure that all Ajax elements have unique id’s. If the items in the list have a unique attribute like “employeeId” or something, in your java you can make the id = aac_employeeId. You can also generate id values like in some Wonder components: public String id() { String id = _id; if (id == null) { id = ERXWOContext.safeIdentifierName(context(), true); _id = id; } return id; } Then, different elements in the row could have id’s like: public String modalDialogId() { return "rowModalDialog_" + id(); } public String checkboxId() { return "rowCheckbox_" + id(); } public String autoCompleteId() { return “rowAutoComplete" + id(); } Tim Worman UCLA GSE&IS > On Feb 13, 2015, at 1:25 PM, Louis Demers wrote: > > Hi, > > I successfully used AjaxAutoComplete in a few places in my app. I was > able to get 2 AjaxAutoComplete to work in the same page but I get this > “quouizy" feeling I did it wrong but got it working anyway. > > But now I’m trying to use it inside a wo:repetition and not getting any luck. > Is that possible ? I seem to remember discussion about setting unique > element ID but could not locate anything in the mail archives. > > Pointers ? > > Thanks for any help > > > > PS: Here is how I got 2 AjaxAutoComplete to work in the same page. > > Partial .wo _ > > sold by: > "$candidateSeller" displayString = "$aSeller.fullName" item = "$aSeller" > selection = "$selectedSeller" maxItems = "20" size = "20" /> > > > > > > > > sold to: > "$candidateBuyer" displayString = "$aBuyer.fullName" item = "$aBuyer" > selection = "$selectedBuyer" maxItems = "20" size = "20" /> > > > > > > Partial .wo _ > > > Partial .java ___ > > public String aSellerString; > public Contact aSeller; > private Contact selectedSeller; > > public String aBuyerString; > public Contact aBuyer; > private Contact selectedBuyer; > > // > __ > public NSArray candidateSeller() { > return Contact.suggestions(ec, aSellerString); > } > > // > __ > public NSArray candidateBuyer() { > return Contact.suggestions(ec, aBuyerString); > } > > // > __ > public NSArray candidateBiller() { > return Contact.suggestions(ec, aBillerString); > } > > // > __ > public NSArray candidateSpec() { > return Spec.suggestions(ec, aSpecString); > } > > // > __ > public Contact getSelectedSeller() { > return selectedSeller; > } > > public void setSelectedSeller(Contact selectedItem) { > sal.setSoldByRelationship(selectedItem); > selectedSeller = selectedItem; > } > > // > __ > public Contact getSelectedBuyer() { > return selectedBuyer; > } > > public void setSelectedBuyer(Contact selectedItem) { > sal.setSoldToRelationship(selectedItem); > selectedBuyer = selectedItem; > } > > // > __ > > > > > > Louis Demers eng. > www.obzerv.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/lists%40thetimmy.com > > This email sent to li...@thetimmy.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
AjaxAutoComplete
Hi, I successfully used AjaxAutoComplete in a few places in my app. I was able to get 2 AjaxAutoComplete to work in the same page but I get this “quouizy" feeling I did it wrong but got it working anyway. But now I’m trying to use it inside a wo:repetition and not getting any luck. Is that possible ? I seem to remember discussion about setting unique element ID but could not locate anything in the mail archives. Pointers ? Thanks for any help PS: Here is how I got 2 AjaxAutoComplete to work in the same page. Partial .wo _ sold by: sold to: Partial .wo _ Partial .java ___ public String aSellerString; public Contact aSeller; private Contact selectedSeller; public String aBuyerString; public Contact aBuyer; private Contact selectedBuyer; // __ public NSArray candidateSeller() { return Contact.suggestions(ec, aSellerString); } // __ public NSArray candidateBuyer() { return Contact.suggestions(ec, aBuyerString); } // __ public NSArray candidateBiller() { return Contact.suggestions(ec, aBillerString); } // __ public NSArray candidateSpec() { return Spec.suggestions(ec, aSpecString); } // __ public Contact getSelectedSeller() { return selectedSeller; } public void setSelectedSeller(Contact selectedItem) { sal.setSoldByRelationship(selectedItem); selectedSeller = selectedItem; } // __ public Contact getSelectedBuyer() { return selectedBuyer; } public void setSelectedBuyer(Contact selectedItem) { sal.setSoldToRelationship(selectedItem); selectedBuyer = selectedItem; } // __ Louis Demers eng. www.obzerv.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
AjaxAutoComplete in Tables
Hi all, i have a table with a loop for the line (tr). Each line displays one entity. I need to edit field of the entity directly in the table. One of this field is an AjaxAutoComplete. I so use this component in some other parts of my application and it works fine. But now in the table i have some problems. First the choices are not a lot so i used isLocal=true. In the table with these option the div with the choices don't show up when the component gets the focus, outside the table everything is fine. When i change isLocal=false, the choices are displayed but not filtered. Any idea? Tobias ** ___ 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
Re: AjaxUpdateContainer and AjaxAutoComplete together?
AjaxUpdateTrigger worked just fine alone. I would make that work. given in the .java public NSArray updateContainers = new NSArray(new String[] {"uc3ID", "uc4ID"}); if UC1 is updated, so will UC3 and UC4 but not UC2 although this is pseudo code, the concept works. I have an app I can send you if you want. --- On Mon, 8/27/12, Pascal Robert wrote: > From: Pascal Robert > Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together? > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Monday, August 27, 2012, 11:18 AM > Hi Ted, > > Yes I did try to use AjaxUpdateTrigger but nothing get > triggered even if my array indeed contains the two > containers id. Are you using it with AjaxAutoComplete? > > > If I read this correctly, you are trying to update two > containers? did you see: AjaxUpdateTrigger > > > > updateContainerID="specDescription" > observeFieldID="specName_field" /> > > updateContainerID="specSupplierPartNumber" > observeFieldID="specName_field" /> > > > > they are both watching the same observeField > > > > AjaxUpdateTrigger is useful if you have multiple > containers on a page that are controlled by a central parent > component. AjaxUpdateTrigger allows you to pass in an array > of containers that need to be updated. An example of this is > if you have multiple editable areas on a page and only one > should be in edit mode at a time. If you put an > AjaxUpdateTrigger inside the edit view, you can set the > other components to not be in edit mode and trigger all of > the other update containers to update, reflecting their new > non-editable status. > > > > I have used this one with success. > > > > Ted > > > > --- On Thu, 8/16/12, Pascal Robert > wrote: > > > >> From: Pascal Robert > >> Subject: Re: AjaxUpdateContainer and > AjaxAutoComplete together? > >> To: "Theodore Petrosky" > >> Cc: "WebObjects Development" > >> Date: Thursday, August 16, 2012, 6:35 AM > >> > >> Le 2012-08-16 à 06:12, Theodore Petrosky a écrit > : > >> > >>> Pascal, > >>> > >>> shouldn't the id agree: > >>> > >>> > >>> > >>>> >>> > >>> >> updateContainerID="specDescription" > >>>> observeFieldID="specName_field" /> > >>> > >>> I mean you are observing 'specName' not > >> 'specName_field' > >> > >> It's AjaxAutoComplete who added _field itself. > >> > >>> or I am not seeing what you are observing > >>> > >>> Ted > >>> > >>> > >>> --- On Tue, 8/14/12, Pascal Robert > >> wrote: > >>> > >>>> From: Pascal Robert > >>>> Subject: AjaxUpdateContainer and > AjaxAutoComplete > >> together? > >>>> To: "WebObjects Development" > >>>> Date: Tuesday, August 14, 2012, 10:09 AM > >>>> I'm trying to use AjaxAutoComplete > >>>> and two AjaxUpdateContainer together, but I > have > >> problems > >>>> doing so. What I want to achieve is that > when an > >> item from a > >>>> list built by AjaxAutoComplete is selected, > I want > >> to > >>>> display two attributes from the selected > item. > >> Problem is > >>>> that I get this: > >>>> > >>>> août 14 09:55:27 WARN > er.ajax.Ajax - > >> You > >>>> performed an Ajax update, but no response > was > >> generated. A > >>>> common cause of this is that you spelled > your > >>>> updateContainerID wrong. You > specified a > >> container ID > >>>> 'specSupplierPartNumber'. > >>>> > >>>> HTML code: > >>>> > >>>> > >> > >>>> > >> >>>> id="simpleComplete"> > >>>> > > >>>> >> list="$currentSpecs" > >>>> value="$specName" item="$specItem" > >>>> displayString="$specItem.ID" > >> selection="$specSelection" > >>>> /> > >>>> > > >>>> >> updateCon
Re: AjaxUpdateContainer and AjaxAutoComplete together?
Hi Ted, Yes I did try to use AjaxUpdateTrigger but nothing get triggered even if my array indeed contains the two containers id. Are you using it with AjaxAutoComplete? > If I read this correctly, you are trying to update two containers? did you > see: AjaxUpdateTrigger > > observeFieldID="specName_field" /> > observeFieldID="specName_field" /> > > they are both watching the same observeField > > AjaxUpdateTrigger is useful if you have multiple containers on a page that > are controlled by a central parent component. AjaxUpdateTrigger allows you to > pass in an array of containers that need to be updated. An example of this is > if you have multiple editable areas on a page and only one should be in edit > mode at a time. If you put an AjaxUpdateTrigger inside the edit view, you can > set the other components to not be in edit mode and trigger all of the other > update containers to update, reflecting their new non-editable status. > > I have used this one with success. > > Ted > > --- On Thu, 8/16/12, Pascal Robert wrote: > >> From: Pascal Robert >> Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together? >> To: "Theodore Petrosky" >> Cc: "WebObjects Development" >> Date: Thursday, August 16, 2012, 6:35 AM >> >> Le 2012-08-16 à 06:12, Theodore Petrosky a écrit : >> >>> Pascal, >>> >>> shouldn't the id agree: >>> >>> >>> >>>> >> >>> > updateContainerID="specDescription" >>>> observeFieldID="specName_field" /> >>> >>> I mean you are observing 'specName' not >> 'specName_field' >> >> It's AjaxAutoComplete who added _field itself. >> >>> or I am not seeing what you are observing >>> >>> Ted >>> >>> >>> --- On Tue, 8/14/12, Pascal Robert >> wrote: >>> >>>> From: Pascal Robert >>>> Subject: AjaxUpdateContainer and AjaxAutoComplete >> together? >>>> To: "WebObjects Development" >>>> Date: Tuesday, August 14, 2012, 10:09 AM >>>> I'm trying to use AjaxAutoComplete >>>> and two AjaxUpdateContainer together, but I have >> problems >>>> doing so. What I want to achieve is that when an >> item from a >>>> list built by AjaxAutoComplete is selected, I want >> to >>>> display two attributes from the selected item. >> Problem is >>>> that I get this: >>>> >>>> août 14 09:55:27 WARN er.ajax.Ajax - >> You >>>> performed an Ajax update, but no response was >> generated. A >>>> common cause of this is that you spelled your >>>> updateContainerID wrong. You specified a >> container ID >>>> 'specSupplierPartNumber'. >>>> >>>> HTML code: >>>> >>>> >> >>>> >>>>> id="simpleComplete"> >>>> >>>> > list="$currentSpecs" >>>> value="$specName" item="$specItem" >>>> displayString="$specItem.ID" >> selection="$specSelection" >>>> /> >>>> >>>> > updateContainerID="specDescription" >>>> observeFieldID="specName_field" /> >>>> >>>> >>> updateContainerID="specSupplierPartNumber" >>>> observeFieldID="specName_field" /> >>>> >> >>>> >> >>>> >>>> >>> id="specSupplierPartNumber">>>> value="$specSelection.manufacturerPartNumber" >>>> /> >>>> >> >>>> >>>> >>> id="specDescription">>>> value="$specSelection.description" >>>> /> >>>> >> >>>> >>>> And I see that two POST requests like this are >> made: >>>> >>>>POST >>>> >> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175 >>>> >>>> The setter for specSelection is never called. And >> yes, it's >>>> wrapped in a form. >>>> ___ >>>> 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/tedpet5%40yahoo.com >>>> >>>> This email sent to tedp...@yahoo.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
Re: AjaxUpdateContainer and AjaxAutoComplete together?
If I read this correctly, you are trying to update two containers? did you see: AjaxUpdateTrigger they are both watching the same observeField AjaxUpdateTrigger is useful if you have multiple containers on a page that are controlled by a central parent component. AjaxUpdateTrigger allows you to pass in an array of containers that need to be updated. An example of this is if you have multiple editable areas on a page and only one should be in edit mode at a time. If you put an AjaxUpdateTrigger inside the edit view, you can set the other components to not be in edit mode and trigger all of the other update containers to update, reflecting their new non-editable status. I have used this one with success. Ted --- On Thu, 8/16/12, Pascal Robert wrote: > From: Pascal Robert > Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together? > To: "Theodore Petrosky" > Cc: "WebObjects Development" > Date: Thursday, August 16, 2012, 6:35 AM > > Le 2012-08-16 à 06:12, Theodore Petrosky a écrit : > > > Pascal, > > > > shouldn't the id agree: > > > > > > > >> > > > updateContainerID="specDescription" > >> observeFieldID="specName_field" /> > > > > I mean you are observing 'specName' not > 'specName_field' > > It's AjaxAutoComplete who added _field itself. > > > or I am not seeing what you are observing > > > > Ted > > > > > > --- On Tue, 8/14/12, Pascal Robert > wrote: > > > >> From: Pascal Robert > >> Subject: AjaxUpdateContainer and AjaxAutoComplete > together? > >> To: "WebObjects Development" > >> Date: Tuesday, August 14, 2012, 10:09 AM > >> I'm trying to use AjaxAutoComplete > >> and two AjaxUpdateContainer together, but I have > problems > >> doing so. What I want to achieve is that when an > item from a > >> list built by AjaxAutoComplete is selected, I want > to > >> display two attributes from the selected item. > Problem is > >> that I get this: > >> > >> août 14 09:55:27 WARN er.ajax.Ajax - > You > >> performed an Ajax update, but no response was > generated. A > >> common cause of this is that you spelled your > >> updateContainerID wrong. You specified a > container ID > >> 'specSupplierPartNumber'. > >> > >> HTML code: > >> > >> > > >> > >> id="simpleComplete"> > >> > >> list="$currentSpecs" > >> value="$specName" item="$specItem" > >> displayString="$specItem.ID" > selection="$specSelection" > >> /> > >> > >> updateContainerID="specDescription" > >> observeFieldID="specName_field" /> > >> > >> >> updateContainerID="specSupplierPartNumber" > >> observeFieldID="specName_field" /> > >> > > >> > > >> > >> >> id="specSupplierPartNumber"> >> value="$specSelection.manufacturerPartNumber" > >> /> > >> > > >> > >> >> id="specDescription"> >> value="$specSelection.description" > >> /> > >> > > >> > >> And I see that two POST requests like this are > made: > >> > >> POST > >> > /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175 > >> > >> The setter for specSelection is never called. And > yes, it's > >> wrapped in a form. > >> ___ > >> 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/tedpet5%40yahoo.com > >> > >> This email sent to tedp...@yahoo.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
Re: AjaxUpdateContainer and AjaxAutoComplete together?
Le 2012-08-16 à 06:12, Theodore Petrosky a écrit : > Pascal, > > shouldn't the id agree: > > > >> > > observeFieldID="specName_field" /> > > I mean you are observing 'specName' not 'specName_field' It's AjaxAutoComplete who added _field itself. > or I am not seeing what you are observing > > Ted > > > --- On Tue, 8/14/12, Pascal Robert wrote: > >> From: Pascal Robert >> Subject: AjaxUpdateContainer and AjaxAutoComplete together? >> To: "WebObjects Development" >> Date: Tuesday, August 14, 2012, 10:09 AM >> I'm trying to use AjaxAutoComplete >> and two AjaxUpdateContainer together, but I have problems >> doing so. What I want to achieve is that when an item from a >> list built by AjaxAutoComplete is selected, I want to >> display two attributes from the selected item. Problem is >> that I get this: >> >> août 14 09:55:27 WARN er.ajax.Ajax - You >> performed an Ajax update, but no response was generated. A >> common cause of this is that you spelled your >> updateContainerID wrong. You specified a container ID >> 'specSupplierPartNumber'. >> >> HTML code: >> >> >> > id="simpleComplete"> >> >> > value="$specName" item="$specItem" >> displayString="$specItem.ID" selection="$specSelection" >> /> >> >> > observeFieldID="specName_field" /> >> >> > updateContainerID="specSupplierPartNumber" >> observeFieldID="specName_field" /> >> >> >> >> > id="specSupplierPartNumber">> value="$specSelection.manufacturerPartNumber" >> /> >> >> >> > id="specDescription">> value="$specSelection.description" >> /> >> >> >> And I see that two POST requests like this are made: >> >> POST >> /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175 >> >> The setter for specSelection is never called. And yes, it's >> wrapped in a form. >> ___ >> 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/tedpet5%40yahoo.com >> >> This email sent to tedp...@yahoo.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
Re: AjaxUpdateContainer and AjaxAutoComplete together?
Pascal, shouldn't the id agree: > observeFieldID="specName_field" /> I mean you are observing 'specName' not 'specName_field' or I am not seeing what you are observing Ted --- On Tue, 8/14/12, Pascal Robert wrote: > From: Pascal Robert > Subject: AjaxUpdateContainer and AjaxAutoComplete together? > To: "WebObjects Development" > Date: Tuesday, August 14, 2012, 10:09 AM > I'm trying to use AjaxAutoComplete > and two AjaxUpdateContainer together, but I have problems > doing so. What I want to achieve is that when an item from a > list built by AjaxAutoComplete is selected, I want to > display two attributes from the selected item. Problem is > that I get this: > > août 14 09:55:27 WARN er.ajax.Ajax - You > performed an Ajax update, but no response was generated. A > common cause of this is that you spelled your > updateContainerID wrong. You specified a container ID > 'specSupplierPartNumber'. > > HTML code: > > > id="simpleComplete"> > > value="$specName" item="$specItem" > displayString="$specItem.ID" selection="$specSelection" > /> > > observeFieldID="specName_field" /> > > updateContainerID="specSupplierPartNumber" > observeFieldID="specName_field" /> > > > > id="specSupplierPartNumber"> value="$specSelection.manufacturerPartNumber" > /> > > > id="specDescription"> value="$specSelection.description" > /> > > > And I see that two POST requests like this are made: > > POST > /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175 > > The setter for specSelection is never called. And yes, it's > wrapped in a form. > ___ > 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/tedpet5%40yahoo.com > > This email sent to tedp...@yahoo.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
Re: AjaxUpdateContainer and AjaxAutoComplete together?
Hi Pascal, Shouldn't the observefieldid = specName? Johnny Miller 808.661.7962 jlmil...@kahalawai.com www.kahalawai.com On Aug 14, 2012, at 4:09 AM, Pascal Robert wrote: > I'm trying to use AjaxAutoComplete and two AjaxUpdateContainer together, but > I have problems doing so. What I want to achieve is that when an item from a > list built by AjaxAutoComplete is selected, I want to display two attributes > from the selected item. Problem is that I get this: > > août 14 09:55:27 WARN er.ajax.Ajax - You performed an Ajax update, but no > response was generated. A common cause of this is that you spelled your > updateContainerID wrong. You specified a container ID > 'specSupplierPartNumber'. > > HTML code: > > > > value="$specName" item="$specItem" displayString="$specItem.ID" > selection="$specSelection" /> > observeFieldID="specName_field" /> > observeFieldID="specName_field" /> > > > value="$specSelection.manufacturerPartNumber" /> > > value="$specSelection.description" /> > > > And I see that two POST requests like this are made: > > POST > /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175 > > The setter for specSelection is never called. And yes, it's wrapped in a form. > ___ > 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/jlmiller%40kahalawai.com > > This email sent to jlmil...@kahalawai.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
AjaxUpdateContainer and AjaxAutoComplete together?
I'm trying to use AjaxAutoComplete and two AjaxUpdateContainer together, but I have problems doing so. What I want to achieve is that when an item from a list built by AjaxAutoComplete is selected, I want to display two attributes from the selected item. Problem is that I get this: août 14 09:55:27 WARN er.ajax.Ajax - You performed an Ajax update, but no response was generated. A common cause of this is that you spelled your updateContainerID wrong. You specified a container ID 'specSupplierPartNumber'. HTML code: And I see that two POST requests like this are made: POST /cgi-bin/WebObjects/Alexandria.woa/ajax/tY93dxbCSPWBvr50t7zbbg/3.0.15.5.1?_u=specDescription&1344952527175 The setter for specSelection is never called. And yes, it's wrapped in a form. ___ 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
Re: AjaxAutoComplete not getting request
I don't recall actually how does Ajax autocomplete is working. It uses the old scriptaculous autocomplete. I'll check on it. The old scriptaculous stuff should be thrown away. Sent from my iPhone On 29/giu/2012, at 17:46, Johnny Miller wrote: > OK. The component that was loaded through the switch subclassed a component > that subclassed ERXNonSynchronizingComponent. I changed > synchronizesVariablesWithBindings to return true and it started working. > > Do you think it possible to make it work with a non-synchronized component? > > Thank you, > > Johnny Miller > Kahalawai Media Corp. > www.kahalawai.com > > > > On Jun 29, 2012, at 10:59 AM, Amedeo Mantica wrote: > >> Does the JS resources get loaded ? >> >> Sent from my iPhone >> >> On 29/giu/2012, at 16:42, Johnny Miller wrote: >> >>> Hi, >>> >>> I'm working on a project where I'm emulating frame sets. I have various >>> editors that get loaded through a switch component depending on the >>> selected object's type. >>> >>> In one of the editors I'm using the AjaxAutoComplete component but it is >>> not working :(. I can see from the web inspector that the Ajax request is >>> getting made but if put a logging statement in the handleRequest method of >>> AjaxAutoComplete I can see that the request never reaches the component. >>> >>> As a test I put the AjaxAutoComplete up a level (into the component that >>> has the switch component) and it worked as expected. >>> >>> Any advice on how I might be able to trouble shoot this? >>> >>> Thank you, >>> >>> Johnny Miller >>> Kahalawai Media Corp. >>> www.kahalawai.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/amedeomantica%40me.com >>> >>> This email sent to amedeomant...@me.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
Re: AjaxAutoComplete not getting request
OK. The component that was loaded through the switch subclassed a component that subclassed ERXNonSynchronizingComponent. I changed synchronizesVariablesWithBindings to return true and it started working. Do you think it possible to make it work with a non-synchronized component? Thank you, Johnny Miller Kahalawai Media Corp. www.kahalawai.com On Jun 29, 2012, at 10:59 AM, Amedeo Mantica wrote: > Does the JS resources get loaded ? > > Sent from my iPhone > > On 29/giu/2012, at 16:42, Johnny Miller wrote: > >> Hi, >> >> I'm working on a project where I'm emulating frame sets. I have various >> editors that get loaded through a switch component depending on the selected >> object's type. >> >> In one of the editors I'm using the AjaxAutoComplete component but it is not >> working :(. I can see from the web inspector that the Ajax request is >> getting made but if put a logging statement in the handleRequest method of >> AjaxAutoComplete I can see that the request never reaches the component. >> >> As a test I put the AjaxAutoComplete up a level (into the component that has >> the switch component) and it worked as expected. >> >> Any advice on how I might be able to trouble shoot this? >> >> Thank you, >> >> Johnny Miller >> Kahalawai Media Corp. >> www.kahalawai.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/amedeomantica%40me.com >> >> This email sent to amedeomant...@me.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
Re: AjaxAutoComplete not getting request
Hi,Yes it does. If I look in Safari's web inspector I see something like this (see below).The form data looks right - it has the correct value that I typed in. But the response is null and I don't see that it touches the handleRequest method of AjaxAutoComplete.Request URL:http://localhost/cgi-bin/WebObjects/METSAdminApp_1.woa/-/ajax/95.0.7.11.5.1.1.3.1.1.2.1.19.0.0.1.1.1.3Request Method:POSTStatus Code:200 OKRequest Headersview sourceAccept:text/_javascript_, text/html, application/xml, text/xml, */*Content-type:application/x-www-form-urlencoded; charset=UTF-8Origin:http://localhostReferer:http://localhost/cgi-bin/WebObjects/METSAdminApp_1.woa/-/wo/94.0.7.11.5.1.1.3.1.1.2.1.7.1User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_4) AppleWebKit/534.57.2 (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2X-Requested-With:XMLHttpRequestForm Dataview URL encodede_0_7_11_5_1_1_3_1_1_2_1_19_0_0_1_1_1_3_field:OGResponse Headersview sourceConnection:closeContent-Length:31192Content-Type:text/htmlDate:Fri, 29 Jun 2012 21:03:03 GMTMS-Author-Via:DAVServer:Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.10 with Suhosin-Patch SVN/1.6.16Set-Cookie:wosid=emSii16ih6mVU52stftF5g; version="1"; path=/cgi-bin/WebObjects/METSAdminApp_1.woa, woinst=-; version="1"; path=/cgi-bin/WebObjects/METSAdminApp_1.woaThank you, Johnny MillerKahalawai Media Corp.www.kahalawai.com On Jun 29, 2012, at 10:59 AM, Amedeo Mantica wrote:Does the JS resources get loaded ?Sent from my iPhoneOn 29/giu/2012, at 16:42, Johnny Miller <jlmil...@kahalawai.com> wrote:Hi,I'm working on a project where I'm emulating frame sets. I have various editors that get loaded through a switch component depending on the selected object's type.In one of the editors I'm using the AjaxAutoComplete component but it is not working :(. I can see from the web inspector that the Ajax request is getting made but if put a logging statement in the handleRequest method of AjaxAutoComplete I can see that the request never reaches the component.As a test I put the AjaxAutoComplete up a level (into the component that has the switch component) and it worked as expected. Any advice on how I might be able to trouble shoot this?Thank you, Johnny MillerKahalawai Media Corp.www.kahalawai.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/amedeomantica%40me.comThis email sent to amedeomant...@me.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
Re: AjaxAutoComplete not getting request
Does the JS resources get loaded ? Sent from my iPhone On 29/giu/2012, at 16:42, Johnny Miller wrote: > Hi, > > I'm working on a project where I'm emulating frame sets. I have various > editors that get loaded through a switch component depending on the selected > object's type. > > In one of the editors I'm using the AjaxAutoComplete component but it is not > working :(. I can see from the web inspector that the Ajax request is > getting made but if put a logging statement in the handleRequest method of > AjaxAutoComplete I can see that the request never reaches the component. > > As a test I put the AjaxAutoComplete up a level (into the component that has > the switch component) and it worked as expected. > > Any advice on how I might be able to trouble shoot this? > > Thank you, > > Johnny Miller > Kahalawai Media Corp. > www.kahalawai.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/amedeomantica%40me.com > > This email sent to amedeomant...@me.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
AjaxAutoComplete not getting request
Hi, I'm working on a project where I'm emulating frame sets. I have various editors that get loaded through a switch component depending on the selected object's type. In one of the editors I'm using the AjaxAutoComplete component but it is not working :(. I can see from the web inspector that the Ajax request is getting made but if put a logging statement in the handleRequest method of AjaxAutoComplete I can see that the request never reaches the component. As a test I put the AjaxAutoComplete up a level (into the component that has the switch component) and it worked as expected. Any advice on how I might be able to trouble shoot this? Thank you, Johnny Miller Kahalawai Media Corp. www.kahalawai.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
Rép : Re: How to get selected Object of AjaxAutoComplete
Thanks Farrukh,I try again and tell you.Envoyé depuis iCloudLe 13 oct 2011 à 06:17, Farrukh Ijaz a écrit :Hi, Try following:1. Move the AAC out of AOF and see you get the selected value or2. Make sure your AjaxObserveField is wrapped by a form, typically ERXOptionalForm otherwise the values will never be set.I use quite often the AAC and I works just fine. It's a matter of setting it up properly.FarrukhOn 2011-10-13, at 3:47 PM, Raymond NANEON wrote:Hi Farrukh,The Object "session().selectedMotClefs" is null when my AjaxObserveField run the method refreshPop2. When I retired the attribute "select", there is the same thing. I get always null value in session().selectedMotClefs.Thaks for your helpEnvoyé depuis iCloudLe 13 oct 2011 à 05:16, Farrukh Ijaz <farrukh.i...@fuegodigitalmedia.com> a écrit :Hi Raymond,You should be able to retrieve the value from session().selectedMotCalefs property. You don't need to use "select" attribute. Simple code below using inline bindings:FarrukhOn 2011-10-13, at 11:04 AM, Raymond NANEON wrote:Hi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete {list = session.matchMotcClefs;value = session.motClefs;item = session.motClefsRepetition;displayString = session.motClefsRepetition.refidxval;selection = session.selectedMotClefs;select = session.selectedMotClefs.refidxval;//afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField {fullSubmit = true;elementName = "span";action = ctrl.refreshPop2;updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherchespublic WOActionResults refreshPop2() {if (getSelectedMotClefs() != null) {//}return null;}am I doing something wrong in using AjaxAutoComplete?ThanksEnvoyé depuis iCloud___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/farrukh.ijaz%40fuegodigitalmedia.comThis email sent to farrukh.i...@fuegodigitalmedia.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:http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.comThis email sent to farrukh.i...@fuegodigitalmedia.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to get selected Object of AjaxAutoComplete
Hi, Try following: 1. Move the AAC out of AOF and see you get the selected value or 2. Make sure your AjaxObserveField is wrapped by a form, typically ERXOptionalForm otherwise the values will never be set. I use quite often the AAC and I works just fine. It's a matter of setting it up properly. Farrukh On 2011-10-13, at 3:47 PM, Raymond NANEON wrote: > Hi Farrukh, > > The Object "session().selectedMotClefs" is null when my AjaxObserveField run > the method refreshPop2. When I retired the attribute "select", there is the > same thing. I get always null value in session().selectedMotClefs. > > Thaks for your help > Envoyé depuis iCloud > > Le 13 oct 2011 à 05:16, Farrukh Ijaz a > écrit : > >> Hi Raymond, >> >> You should be able to retrieve the value from session().selectedMotCalefs >> property. You don't need to use "select" attribute. Simple code below using >> inline bindings: >> >> > selection="$selectedItem" displayString="$item.propertyYouWantToShow" /> >> >> Farrukh >> >> On 2011-10-13, at 11:04 AM, Raymond NANEON wrote: >> >>> Hi All, >>> >>> I have a lill' problem with AjaxAutoComplete. I am having difficult to get >>> the selected Object bind to selection attribute. >>> >>> Here is my HMTL code : >>> >>> >> "motClefsAutoComplete1"/> >>> >>> Here is WOD code : >>> >>> motClefsAutoComplete1 : AjaxAutoComplete { >>> list = session.matchMotcClefs; >>> value = session.motClefs; >>> item = session.motClefsRepetition; >>> displayString = session.motClefsRepetition.refidxval; >>> selection = session.selectedMotClefs; >>> select = session.selectedMotClefs.refidxval; >>> //afterUpdateElement = ctrl.refreshPop2; >>> } >>> >>> autoCompAOF1 : AjaxObserveField { >>> fullSubmit = true; >>> elementName = "span"; >>> action = ctrl.refreshPop2; >>> updateContainerID = "pop2"; >>> } >>> >>> Here is my java method to get Selected Object : >>> >>>// Module de recherches >>> public WOActionResults refreshPop2() { >>> if (getSelectedMotClefs() != null) { >>> // >>> } >>> return null; >>> } >>> >>> am I doing something wrong in using AjaxAutoComplete? >>> >>> Thanks >>> Envoyé depuis iCloud >>> ___ >>> 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/farrukh.ijaz%40fuegodigitalmedia.com >>> >>> This email sent to farrukh.i...@fuegodigitalmedia.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: > http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com > > This email sent to farrukh.i...@fuegodigitalmedia.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Rép : Re: How to get selected Object of AjaxAutoComplete
Hi Farrukh,The Object "session().selectedMotClefs" is null when my AjaxObserveField run the method refreshPop2. When I retired the attribute "select", there is the same thing. I get always null value in session().selectedMotClefs.Thaks for your helpEnvoyé depuis iCloudLe 13 oct 2011 à 05:16, Farrukh Ijaz a écrit :Hi Raymond,You should be able to retrieve the value from session().selectedMotCalefs property. You don't need to use "select" attribute. Simple code below using inline bindings:FarrukhOn 2011-10-13, at 11:04 AM, Raymond NANEON wrote:Hi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete {list = session.matchMotcClefs;value = session.motClefs;item = session.motClefsRepetition;displayString = session.motClefsRepetition.refidxval;selection = session.selectedMotClefs;select = session.selectedMotClefs.refidxval;//afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField {fullSubmit = true;elementName = "span";action = ctrl.refreshPop2;updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherchespublic WOActionResults refreshPop2() {if (getSelectedMotClefs() != null) {//}return null;}am I doing something wrong in using AjaxAutoComplete?ThanksEnvoyé depuis iCloud___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/farrukh.ijaz%40fuegodigitalmedia.comThis email sent to farrukh.i...@fuegodigitalmedia.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: How to get selected Object of AjaxAutoComplete
Hi Raymond, You should be able to retrieve the value from session().selectedMotCalefs property. You don't need to use "select" attribute. Simple code below using inline bindings: Farrukh On 2011-10-13, at 11:04 AM, Raymond NANEON wrote: > Hi All, > > I have a lill' problem with AjaxAutoComplete. I am having difficult to get > the selected Object bind to selection attribute. > > Here is my HMTL code : > > "motClefsAutoComplete1"/> > > Here is WOD code : > > motClefsAutoComplete1 : AjaxAutoComplete { > list = session.matchMotcClefs; > value = session.motClefs; > item = session.motClefsRepetition; > displayString = session.motClefsRepetition.refidxval; > selection = session.selectedMotClefs; > select = session.selectedMotClefs.refidxval; > //afterUpdateElement = ctrl.refreshPop2; > } > > autoCompAOF1 : AjaxObserveField { > fullSubmit = true; > elementName = "span"; > action = ctrl.refreshPop2; > updateContainerID = "pop2"; > } > > Here is my java method to get Selected Object : > >// Module de recherches > public WOActionResults refreshPop2() { > if (getSelectedMotClefs() != null) { > // > } > return null; > } > > am I doing something wrong in using AjaxAutoComplete? > > Thanks > Envoyé depuis iCloud > ___ > 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/farrukh.ijaz%40fuegodigitalmedia.com > > This email sent to farrukh.i...@fuegodigitalmedia.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to get selected Object of AjaxAutoComplete
Hi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete { list = session.matchMotcClefs; value = session.motClefs; item = session.motClefsRepetition; displayString = session.motClefsRepetition.refidxval; selection = session.selectedMotClefs; select = session.selectedMotClefs.refidxval; //afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField { fullSubmit = true; elementName = "span"; action = ctrl.refreshPop2; updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherches public WOActionResults refreshPop2() { if (getSelectedMotClefs() != null) { // } return null; }am I doing something wrong in using AjaxAutoComplete?ThanksEnvoyé depuis iCloud ___ 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
Rép : Re: How to get SelectedObject from AjaxAutoComplete
Hi, here are methods code source in my Session.java. I put all methods which is used in the AjaxAutoComplete :package utt.rec.projet.server;motClefsAutoComplete1 : AjaxAutoComplete { id = "auto1"; list = session.matchMotcClefs; value = session.motClefs; item = session.motClefsRepetition; displayString = session.motClefsRepetition.refidxval; selection = session.selectedMotClefs; }/** * @return the motClefs */ public String getMotClefs() { return motClefs; } /** * @param motClefs * the motClefs to set */ public void setMotClefs(String motClefs) { if (!ERXStringUtilities.stringEqualsString(this.motClefs, motClefs)) { this.motClefs = motClefs; matchMotcClefs = null; } }//Search module list generator private NSArray lesMotsClefs(){ if(listMotclefs == null){ listMotclefs = EORefidx.fetchGetMotsClefsParents(session().defaultEditingContext()); } return listMotclefs; }/** TextField1*/ public NSArray matchMotcClefs() { if(matchMotcClefs == null){ if(motClefs == null){ matchMotcClefs = null; } else { matchMotcClefs = EORefidx.REFIDXVAL.containsAll(motClefs).filtered(lesMotsClefs()); } } return matchMotcClefs; }/** * @return the selectedMotClefs */ public EORefidx getSelectedMotClefs() { return selectedMotClefs; } /** * @param selectedMotClefs the selectedMotClefs to set */ public void setSelectedMotClefs(EORefidx selectedMotClefs) { this.selectedMotClefs = selectedMotClefs; }/** * @return the motClefsRepetition */ public EORefidx getMotClefsRepetition() { return motClefsRepetition; } /** * @param motClefsRepetition the motClefsRepetition to set */ public void setMotClefsRepetition(EORefidx motClefsRepetition) { this.motClefsRepetition = motClefsRepetition; }RayEnvoyé depuis iCloudLe 21 sep 2011 à 07:23, Henrique Gomes a écrit : On Sep 21, 2011, at 3:10 PM, Raymond NANEON wrote: > > Envoyé depuis iCloud > > Le 21 sep 2011 à 06:53, Henrique Gomes <li...@farol.pt> a écrit : > >> >> >> >> > selection = session.selectedMotClefs; >> >> How is that defined in your Session? >> I wonder why your are using the session at all. Why not a local variable on your WOComponent? >> >> > if (getSelectedMotClefs() != null) { >> >> >> What's the code for getSelectedMotClefs() ? > > public WOActionResults refreshPop2() { > if(session.getSelectedMotClefs() != null){ > > } > return null; > } > I meant the code on your Session.java where those methods are defined. > When I do selection in the AjaxAutoComplete, the method refreshPop2 run to get selectedObject pk. But my surprise is the selectedObject is always NULL. > > What's wrong? >> >> >> HG > > Ray >> >> >> On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote: >> >> > >> > >> >> >> >> Is the AutoComplete inside a form? >> > >> > Yes It's inside a form. >> >> >> >> >> >> Also, AjaxAutoComplete has both a value and a selection binding. You can use either of both. >> > >> > The value take the selection.attribute but I want the selection Only which is an Object to get his pk. >> > here my WOD : >> > motClefsAutoComplete1 : AjaxAutoComplete { >> > id = "auto1"; >> > list = session.matchMotcClefs; >> > value = session.motClefs;//Not this >> > item = session.motClefsRepetition; >> > displayString = session.motClefsRepetition.refidxval; >> > selection = session.selectedMotClefs;//I want this >> > } >> >> >> >> >> >> HG >> > >> > Ray >> >> >> >> >> >> On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote: >> >> >> >> > Help please, my project is stuck on this problem. >> >> > >> >> > When I use WORequest and use formValueForkey("autoComp1") I get a String of a textField component . Where is the selectedMotClefs I chose to fill the field? >> >> > >> >> > Thanks >> >> > Envoyé depuis iCloud >> >> > >> >> > Le 21 sep 2011 à 03:05, Raymond NANEON <rnan...@me.com> a écrit : >> >> > >> >> >> Hi All, >> >> >> >> >> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute. >> >> >> >> >> >> Here is my HMTL code : >> >> >> >> >> >> >> >> >> >> >> >&
Re: How to get SelectedObject from AjaxAutoComplete
On Sep 21, 2011, at 3:10 PM, Raymond NANEON wrote: > > Envoyé depuis iCloud > > Le 21 sep 2011 à 06:53, Henrique Gomes a écrit : > >> >> >> >> > selection = session.selectedMotClefs; >> >> How is that defined in your Session? >> I wonder why your are using the session at all. Why not a local variable on >> your WOComponent? >> >> > if (getSelectedMotClefs() != null) { >> >> >> What's the code for getSelectedMotClefs() ? > > public WOActionResults refreshPop2() { > if(session.getSelectedMotClefs() != null){ > > } > return null; > } > I meant the code on your Session.java where those methods are defined. > When I do selection in the AjaxAutoComplete, the method refreshPop2 run to > get selectedObject pk. But my surprise is the selectedObject is always NULL. > > What's wrong? >> >> >> HG > > Ray >> >> >> On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote: >> >> > >> > >> >> >> >> Is the AutoComplete inside a form? >> > >> > Yes It's inside a form. >> >> >> >> >> >> Also, AjaxAutoComplete has both a value and a selection binding. You can >> >> use either of both. >> > >> > The value take the selection.attribute but I want the selection Only which >> > is an Object to get his pk. >> > here my WOD : >> > motClefsAutoComplete1 : AjaxAutoComplete { >> > id = "auto1"; >> > list = session.matchMotcClefs; >> > value = session.motClefs;//Not this >> > item = session.motClefsRepetition; >> > displayString = session.motClefsRepetition.refidxval; >> > selection = session.selectedMotClefs;//I want this >> > } >> >> >> >> >> >> HG >> > >> > Ray >> >> >> >> >> >> On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote: >> >> >> >> > Help please, my project is stuck on this problem. >> >> > >> >> > When I use WORequest and use formValueForkey("autoComp1") I get a >> >> > String of a textField component . Where is the selectedMotClefs I chose >> >> > to fill the field? >> >> > >> >> > Thanks >> >> > Envoyé depuis iCloud >> >> > >> >> > Le 21 sep 2011 à 03:05, Raymond NANEON a écrit : >> >> > >> >> >> Hi All, >> >> >> >> >> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to >> >> >> get the selected Object bind to selection attribute. >> >> >> >> >> >> Here is my HMTL code : >> >> >> >> >> >> > >> >> "motClefsAutoComplete1"/> >> >> >> >> >> >> Here is WOD code : >> >> >> >> >> >> motClefsAutoComplete1 : AjaxAutoComplete { >> >> > id = "autoComp1"; >> >> >> list = session.matchMotcClefs; >> >> >> value = session.motClefs; >> >> >> item = session.motClefsRepetition; >> >> >> displayString = session.motClefsRepetition.refidxval; >> >> >> selection = session.selectedMotClefs; >> >> >> //afterUpdateElement = ctrl.refreshPop2; >> >> >> } >> >> >> >> >> >> autoCompAOF1 : AjaxObserveField { >> >> >> fullSubmit = true; >> >> >> elementName = "span"; >> >> >> action = ctrl.refreshPop2; >> >> >> updateContainerID = "pop2"; >> >> >> } >> >> >> >> >> >> Here is my java method to get Selected Object : >> >> >> >> >> >> // Module de recherches >> >> >> public WOActionResults refreshPop2() { >> >> >> if (getSelectedMotClefs() != null) { >> >> >> // >> >> >> } >> >> >> return null; >> >> >> } >> >> >> >> >> >> What is the way to have data of selectedMotClefs? >> >> >> >> >> >> Thanks >> >> >> Envoyé depuis iCloud >> >> >> ___ >> >> >> 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/rnaneon%40me.com >> >> >> >> >> >> This email sent to rnan...@me.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: >> >> > http://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt >> >> > >> >> > This email sent to li...@farol.pt >> >> >> ___ 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
Rép : Re: How to get SelectedObject from AjaxAutoComplete
Envoyé depuis iCloudLe 21 sep 2011 à 06:53, Henrique Gomes a écrit : > selection = session.selectedMotClefs; How is that defined in your Session? I wonder why your are using the session at all. Why not a local variable on your WOComponent? > if (getSelectedMotClefs() != null) { What's the code for getSelectedMotClefs() ? public WOActionResults refreshPop2() { if(session.getSelectedMotClefs() != null){ } return null; } When I do selection in the AjaxAutoComplete, the method refreshPop2 run to get selectedObject pk. But my surprise is the selectedObject is always NULL.What's wrong? HG Ray On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote: > > >> >> Is the AutoComplete inside a form? > > Yes It's inside a form. >> >> >> Also, AjaxAutoComplete has both a value and a selection binding. You can use either of both. > > The value take the selection.attribute but I want the selection Only which is an Object to get his pk. > here my WOD : > motClefsAutoComplete1 : AjaxAutoComplete { > id = "auto1"; > list = session.matchMotcClefs; > value = session.motClefs;//Not this > item = session.motClefsRepetition; > displayString = session.motClefsRepetition.refidxval; > selection = session.selectedMotClefs;//I want this > } >> >> >> HG > > Ray >> >> >> On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote: >> >> > Help please, my project is stuck on this problem. >> > >> > When I use WORequest and use formValueForkey("autoComp1") I get a String of a textField component . Where is the selectedMotClefs I chose to fill the field? >> > >> > Thanks >> > Envoyé depuis iCloud >> > >> > Le 21 sep 2011 à 03:05, Raymond NANEON <rnan...@me.com> a écrit : >> > >> >> Hi All, >> >> >> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute. >> >> >> >> Here is my HMTL code : >> >> >> >> >> >> >> >> Here is WOD code : >> >> >> >> motClefsAutoComplete1 : AjaxAutoComplete { >> > id = "autoComp1"; >> >> list = session.matchMotcClefs; >> >> value = session.motClefs; >> >> item = session.motClefsRepetition; >> >> displayString = session.motClefsRepetition.refidxval; >> >> selection = session.selectedMotClefs; >> >> //afterUpdateElement = ctrl.refreshPop2; >> >> } >> >> >> >> autoCompAOF1 : AjaxObserveField { >> >> fullSubmit = true; >> >> elementName = "span"; >> >> action = ""> >> >> updateContainerID = "pop2"; >> >> } >> >> >> >> Here is my java method to get Selected Object : >> >> >> >> // Module de recherches >> >> public WOActionResults refreshPop2() { >> >> if (getSelectedMotClefs() != null) { >> >> // >> >> } >> >> return null; >> >> } >> >> >> >> What is the way to have data of selectedMotClefs? >> >> >> >> Thanks >> >> Envoyé depuis iCloud >> >> ___ >> >> 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/rnaneon%40me.com >> >> >> >> This email sent to rnan...@me.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: >> > http://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt >> > >> > This email sent to li...@farol.pt >> ___ 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
Re: How to get SelectedObject from AjaxAutoComplete
> selection = session.selectedMotClefs; How is that defined in your Session? I wonder why your are using the session at all. Why not a local variable on your WOComponent? > if (getSelectedMotClefs() != null) { What's the code for getSelectedMotClefs() ? HG On Sep 21, 2011, at 2:47 PM, Raymond NANEON wrote: > > >> >> Is the AutoComplete inside a form? > > Yes It's inside a form. >> >> >> Also, AjaxAutoComplete has both a value and a selection binding. You can use >> either of both. > > The value take the selection.attribute but I want the selection Only which is > an Object to get his pk. > here my WOD : > motClefsAutoComplete1 : AjaxAutoComplete { > id = "auto1"; > list = session.matchMotcClefs; > value = session.motClefs;//Not this > item = session.motClefsRepetition; > displayString = session.motClefsRepetition.refidxval; > selection = session.selectedMotClefs;//I want this > } >> >> >> HG > > Ray >> >> >> On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote: >> >> > Help please, my project is stuck on this problem. >> > >> > When I use WORequest and use formValueForkey("autoComp1") I get a String >> > of a textField component . Where is the selectedMotClefs I chose to fill >> > the field? >> > >> > Thanks >> > Envoyé depuis iCloud >> > >> > Le 21 sep 2011 à 03:05, Raymond NANEON a écrit : >> > >> >> Hi All, >> >> >> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to >> >> get the selected Object bind to selection attribute. >> >> >> >> Here is my HMTL code : >> >> >> >> > >> "motClefsAutoComplete1"/> >> >> >> >> Here is WOD code : >> >> >> >> motClefsAutoComplete1 : AjaxAutoComplete { >> > id = "autoComp1"; >> >> list = session.matchMotcClefs; >> >> value = session.motClefs; >> >> item = session.motClefsRepetition; >> >> displayString = session.motClefsRepetition.refidxval; >> >> selection = session.selectedMotClefs; >> >> //afterUpdateElement = ctrl.refreshPop2; >> >> } >> >> >> >> autoCompAOF1 : AjaxObserveField { >> >> fullSubmit = true; >> >> elementName = "span"; >> >> action = ctrl.refreshPop2; >> >> updateContainerID = "pop2"; >> >> } >> >> >> >> Here is my java method to get Selected Object : >> >> >> >> // Module de recherches >> >> public WOActionResults refreshPop2() { >> >> if (getSelectedMotClefs() != null) { >> >> // >> >> } >> >> return null; >> >> } >> >> >> >> What is the way to have data of selectedMotClefs? >> >> >> >> Thanks >> >> Envoyé depuis iCloud >> >> ___ >> >> 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/rnaneon%40me.com >> >> >> >> This email sent to rnan...@me.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: >> > http://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt >> > >> > This email sent to li...@farol.pt >> ___ 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
Rép : Re: How to get SelectedObject from AjaxAutoComplete
Is the AutoComplete inside a form? Yes It's inside a form. Also, AjaxAutoComplete has both a value and a selection binding. You can use either of both. The value take the selection.attribute but I want the selection Only which is an Object to get his pk. here my WOD :motClefsAutoComplete1 : AjaxAutoComplete { id = "auto1"; list = session.matchMotcClefs; value = session.motClefs;//Not this item = session.motClefsRepetition; displayString = session.motClefsRepetition.refidxval; selection = session.selectedMotClefs;//I want this } HG Ray On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote: > Help please, my project is stuck on this problem. > > When I use WORequest and use formValueForkey("autoComp1") I get a String of a textField component . Where is the selectedMotClefs I chose to fill the field? > > Thanks > Envoyé depuis iCloud > > Le 21 sep 2011 à 03:05, Raymond NANEON <rnan...@me.com> a écrit : > >> Hi All, >> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute. >> >> Here is my HMTL code : >> >> >> >> Here is WOD code : >> >> motClefsAutoComplete1 : AjaxAutoComplete { > id = "autoComp1"; >> list = session.matchMotcClefs; >> value = session.motClefs; >> item = session.motClefsRepetition; >> displayString = session.motClefsRepetition.refidxval; >> selection = session.selectedMotClefs; >> //afterUpdateElement = ctrl.refreshPop2; >> } >> >> autoCompAOF1 : AjaxObserveField { >> fullSubmit = true; >> elementName = "span"; >> action = ""> >> updateContainerID = "pop2"; >> } >> >> Here is my java method to get Selected Object : >> >> // Module de recherches >> public WOActionResults refreshPop2() { >> if (getSelectedMotClefs() != null) { >> // >> } >> return null; >> } >> >> What is the way to have data of selectedMotClefs? >> >> Thanks >> Envoyé depuis iCloud >> ___ >> 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/rnaneon%40me.com >> >> This email sent to rnan...@me.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: > http://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt > > This email sent to li...@farol.pt ___ 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
Re: How to get SelectedObject from AjaxAutoComplete
Is the AutoComplete inside a form? Also, AjaxAutoComplete has both a value and a selection binding. You can use either of both. HG On Sep 21, 2011, at 2:14 PM, Raymond NANEON wrote: > Help please, my project is stuck on this problem. > > When I use WORequest and use formValueForkey("autoComp1") I get a String of a > textField component . Where is the selectedMotClefs I chose to fill the field? > > Thanks > Envoyé depuis iCloud > > Le 21 sep 2011 à 03:05, Raymond NANEON a écrit : > >> Hi All, >> >> I have a lill' problem with AjaxAutoComplete. I am having difficult to get >> the selected Object bind to selection attribute. >> >> Here is my HMTL code : >> >> > "motClefsAutoComplete1"/> >> >> Here is WOD code : >> >> motClefsAutoComplete1 : AjaxAutoComplete { > id = "autoComp1"; >> list = session.matchMotcClefs; >> value = session.motClefs; >> item = session.motClefsRepetition; >> displayString = session.motClefsRepetition.refidxval; >> selection = session.selectedMotClefs; >> //afterUpdateElement = ctrl.refreshPop2; >> } >> >> autoCompAOF1 : AjaxObserveField { >> fullSubmit = true; >> elementName = "span"; >> action = ctrl.refreshPop2; >> updateContainerID = "pop2"; >> } >> >> Here is my java method to get Selected Object : >> >>// Module de recherches >> public WOActionResults refreshPop2() { >> if (getSelectedMotClefs() != null) { >> // >> } >> return null; >> } >> >> What is the way to have data of selectedMotClefs? >> >> Thanks >> Envoyé depuis iCloud >> ___ >> 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/rnaneon%40me.com >> >> This email sent to rnan...@me.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: > http://lists.apple.com/mailman/options/webobjects-dev/lists%40farol.pt > > This email sent to li...@farol.pt ___ 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
Rép : How to get SelectedObject from AjaxAutoComplete
Help please, my project is stuck on this problem.When I use WORequest and use formValueForkey("autoComp1") I get a String of a textField component . Where is the selectedMotClefs I chose to fill the field?ThanksEnvoyé depuis iCloudLe 21 sep 2011 à 03:05, Raymond NANEON a écrit :Hi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete { id = "autoComp1";list = session.matchMotcClefs;value = session.motClefs;item = session.motClefsRepetition;displayString = session.motClefsRepetition.refidxval;selection = session.selectedMotClefs;//afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField {fullSubmit = true;elementName = "span";action = ctrl.refreshPop2;updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherchespublic WOActionResults refreshPop2() {if (getSelectedMotClefs() != null) {//}return null;}What is the way to have data of selectedMotClefs?ThanksEnvoyé depuis iCloud___ 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/rnaneon%40me.com This email sent to rnan...@me.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
How to get SelectedObject from AjaxAutoComplete
Hi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete { list = session.matchMotcClefs; value = session.motClefs; item = session.motClefsRepetition; displayString = session.motClefsRepetition.refidxval; selection = session.selectedMotClefs; //afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField { fullSubmit = true; elementName = "span"; action = ctrl.refreshPop2; updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherches public WOActionResults refreshPop2() { if (getSelectedMotClefs() != null) { // } return null; }What is the way to have data of selectedMotClefs?ThanksEnvoyé depuis iCloud ___ 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
Réexp : How to get selected Object of AjaxAutoComplete
Début du message réexpédié :De : Raymond NANEON Date : 14 sep 2011 à 07:15À : WebObjects webobjects-dev Objet : How to get selected Object of AjaxAutoCompleteHi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete {list = session.matchMotcClefs;value = session.motClefs;item = session.motClefsRepetition;displayString = session.motClefsRepetition.refidxval;selection = session.selectedMotClefs;select = session.selectedMotClefs.refidxval;//afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField {fullSubmit = true;elementName = "span";action = ctrl.refreshPop2;updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherchespublic WOActionResults refreshPop2() {if (getSelectedMotClefs() != null) {//}return null;}am I doing something wrong in using AjaxAutoComplete?ThanksEnvoyé depuis iCloud ___ 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
How to get selected Object of AjaxAutoComplete
Hi All,I have a lill' problem with AjaxAutoComplete. I am having difficult to get the selected Object bind to selection attribute.Here is my HMTL code : id = "searchForm"><wo name = "autoCompAOF1"><webobject name = "motClefsAutoComplete1"/>wo>Here is WOD code :motClefsAutoComplete1 : AjaxAutoComplete { list = session.matchMotcClefs; value = session.motClefs; item = session.motClefsRepetition; displayString = session.motClefsRepetition.refidxval; selection = session.selectedMotClefs; select = session.selectedMotClefs.refidxval; //afterUpdateElement = ctrl.refreshPop2;}autoCompAOF1 : AjaxObserveField { fullSubmit = true; elementName = "span"; action = ctrl.refreshPop2; updateContainerID = "pop2";}Here is my java method to get Selected Object : // Module de recherches public WOActionResults refreshPop2() { if (getSelectedMotClefs() != null) { // } return null; }am I doing something wrong in using AjaxAutoComplete?ThanksEnvoyé depuis iCloud ___ 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
Re: AjaxAutoComplete ?
thanks, I searched on my HD for '.auto_complete' and I found similar CSS in the default_screen_stylesheet.css which is part of the ERModernDefaultSkin. It works, thanks again, Ted --- On Wed, 3/30/11, Joe Kramer wrote: From: Joe Kramer Subject: Re: AjaxAutoComplete ? To: "Theodore Petrosky" Cc: webobjects-dev@lists.apple.com Date: Wednesday, March 30, 2011, 10:23 AM Hi Ted, I can't remember where I found this, but here is some basic CSS: .auto_complete {position:absolute; width:250px;background-color:white; border:1px solid #888; margin:0px; padding:0px;z-index:100; } .auto_complete ul { list-style-type:none; margin:0px; padding:0px;} .auto_complete ul li.selected { background-color: #ffb; } .auto_complete ul li { list-style-type:none; display:block; margin:0; padding:5px;cursor:pointer; } Hope that helps. Joe Joe kramerjkra...@cyberapps.net On Wed, Mar 30, 2011 at 6:48 AM, Theodore Petrosky wrote: anyone have an example of using an AjaxAutoComplete. I have it (almost) working on an AMD but I must be missing some CSS as the auto complete text is just floating over top of my other text (with a transparent background) so it is impossible to read. the docs don't say anything about CSS necessary for it to work. Ted ___ 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/jkramer%40cyberapps.net This email sent to jkra...@cyberapps.net ___ 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
Re: AjaxAutoComplete ?
Hi Ted, I can't remember where I found this, but here is some basic CSS: .auto_complete { position:absolute; width:250px; background-color:white; border:1px solid #888; margin:0px; padding:0px; z-index:100; } .auto_complete ul { list-style-type:none; margin:0px; padding:0px; } .auto_complete ul li.selected { background-color: #ffb; } .auto_complete ul li { list-style-type:none; display:block; margin:0; padding:5px; cursor:pointer; } Hope that helps. Joe Joe Kramer jkra...@cyberapps.net On Wed, Mar 30, 2011 at 6:48 AM, Theodore Petrosky wrote: > anyone have an example of using an AjaxAutoComplete. I have it (almost) > working on an AMD but I must be missing some CSS as the auto complete text > is just floating over top of my other text (with a transparent background) > so it is impossible to read. > > the docs don't say anything about CSS necessary for it to work. > > Ted > ___ > 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/jkramer%40cyberapps.net > > This email sent to jkra...@cyberapps.net > ___ 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
AjaxAutoComplete ?
anyone have an example of using an AjaxAutoComplete. I have it (almost) working on an AMD but I must be missing some CSS as the auto complete text is just floating over top of my other text (with a transparent background) so it is impossible to read. the docs don't say anything about CSS necessary for it to work. Ted ___ 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
Re: Ajaxautocomplete to one relationship
Thanks David. I guess there is an inherent lack of genericity here. -- Dr. Mark Wardle Specialist registrar, Neurology (Sent from my mobile) On 29 Sep 2009, at 20:42, David LeBer wrote: On 2009-09-29, at 3:07 PM, Mark Wardle wrote: Hi all. I'm successfully using ajaxautocomplete but that results in a string. Fine for subsequent searching. Is there a unified component that will handle setting a to one relationship with a drop down populated by autocomplete? Otherwise I'll see whether I can roll my own! We have one, unfortunately it's implementation is pretty specific for the project it's used in and not really suitable for sharing: 1. It is D2W and tuned for our look. 2. It makes assumptions about the model (yes, I know, that is bad). The issue with using a autocomplete to do a lookup for a to-one relationship is that, as you mention, the autocomplete returns a string. You need to then guarantee that the attribute you are qualifying the found EO against is unique. For some EOs this is a non issue (qualifying countryName in the array of Country EOs). For EOs where this is not the case (productName in the array of Product EOs) we achieve this by appending a guaranteed unique value (i.e: productCode) to the the primary search attribute. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site:http://codeferous.com blog:http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.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
Re: Ajaxautocomplete to one relationship
On 2009-09-29, at 3:07 PM, Mark Wardle wrote: Hi all. I'm successfully using ajaxautocomplete but that results in a string. Fine for subsequent searching. Is there a unified component that will handle setting a to one relationship with a drop down populated by autocomplete? Otherwise I'll see whether I can roll my own! We have one, unfortunately it's implementation is pretty specific for the project it's used in and not really suitable for sharing: 1. It is D2W and tuned for our look. 2. It makes assumptions about the model (yes, I know, that is bad). The issue with using a autocomplete to do a lookup for a to-one relationship is that, as you mention, the autocomplete returns a string. You need to then guarantee that the attribute you are qualifying the found EO against is unique. For some EOs this is a non issue (qualifying countryName in the array of Country EOs). For EOs where this is not the case (productName in the array of Product EOs) we achieve this by appending a guaranteed unique value (i.e: productCode) to the the primary search attribute. ;david -- David LeBer Codeferous Software 'co-def-er-ous' adj. Literally 'code-bearing' site: http://codeferous.com blog: http://davidleber.net profile:http://www.linkedin.com/in/davidleber twitter:http://twitter.com/rebeld -- Toronto Area Cocoa / WebObjects developers group: http://tacow.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
Ajaxautocomplete to one relationship
Hi all. I'm successfully using ajaxautocomplete but that results in a string. Fine for subsequent searching. Is there a unified component that will handle setting a to one relationship with a drop down populated by autocomplete? Otherwise I'll see whether I can roll my own! Many thanks, Mark -- Dr. Mark Wardle MB BCh MRCP MD Specialist registrar, Neurology Cardiff, UK (Sent from my mobile) -- Dr. Mark Wardle Specialist registrar, Neurology Cardiff, UK ___ 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
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
I have 2 tabs in Ajax TabPanel. On the first tab Text Hinter works, but when I click Tab #2, I do not get the text hints. What do I have to do to get this to work on all tabs. Matt On Mon, Sep 21, 2009 at 8:01 PM, getsharp wrote: > On 22/09/2009, at 6:08 AM, J Stephanos wrote: > > David: >> > Unfortunately the text triggers an immediate search on the default >> string. >> >> It doesn't in my case. It is working as expected for me per the >> AjaxTextHinter javadoc example. >> >> > I experience the same behaviour as David. > > AjaxTextHinter does work as per the example, but the presence of the text > is seen as a change by AjaxObserveField. > > Sharpy. > ___ > 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/mtt.stokes%40gmail.com > > This email sent to mtt.sto...@gmail.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
On 22/09/2009, at 6:08 AM, J Stephanos wrote: David: > Unfortunately the text triggers an immediate search on the default string. It doesn't in my case. It is working as expected for me per the AjaxTextHinter javadoc example. I experience the same behaviour as David. AjaxTextHinter does work as per the example, but the presence of the text is seen as a change by AjaxObserveField. Sharpy. ___ 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
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
Kieran: Thanks - Ajax*TextHinter* works beautifully! This is an example of* Y*et *A*nother *W*onder *N*ugget! David: > Unfortunately the text triggers an immediate search on the default string. It doesn't in my case. It is working as expected for me per the AjaxTextHinter javadoc example. Thanks again. --JSt On Mon, Sep 21, 2009 at 1:21 PM, David Holt wrote: > > On 21-Sep-09, at 9:09 AM, Kieran Kelleher wrote: > > I believe AjaxTextHinter in Wonder/Ajax is what you want. >> > > This is really cool. I just tried it in an auto search field (like the > example in AjaxExample2). Unfortunately the text triggers an immediate > search on the default string. Do you know if there is a way to disable that > behaviour so that the default text is just treated like a label and not > treated as content of the text field? > > >> On Sep 21, 2009, at 11:33 AM, J Stephanos wrote: >> >> Wonder's AjaxAutoComplete works great - but is it possible to have the >>> equivalent of a noDisplayString? >>> >>> Movie Name: [ enter a movie name here ] >>> >>> We'd like to provide some hint ("enter movie name here") to the user, to >>> enter a movie name in the field. It should disappear when you start typing >>> in the text. Is this feature already there? Couldn't find it in the >>> javadoc. >>> >>> TIA. >>> >>> --JSt >>> ___ >>> 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/kieran_lists% >>> 40mac.com >>> >>> This email sent to kieran_li...@mac.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: >> http://lists.apple.com/mailman/options/webobjects-dev/programmingosx% >> 40mac.com >> >> This email sent to programming...@mac.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
On 21-Sep-09, at 9:09 AM, Kieran Kelleher wrote: I believe AjaxTextHinter in Wonder/Ajax is what you want. This is really cool. I just tried it in an auto search field (like the example in AjaxExample2). Unfortunately the text triggers an immediate search on the default string. Do you know if there is a way to disable that behaviour so that the default text is just treated like a label and not treated as content of the text field? On Sep 21, 2009, at 11:33 AM, J Stephanos wrote: Wonder's AjaxAutoComplete works great - but is it possible to have the equivalent of a noDisplayString? Movie Name: [ enter a movie name here ] We'd like to provide some hint ("enter movie name here") to the user, to enter a movie name in the field. It should disappear when you start typing in the text. Is this feature already there? Couldn't find it in the javadoc. TIA. --JSt ___ 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/kieran_lists% 40mac.com This email sent to kieran_li...@mac.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: http://lists.apple.com/mailman/options/webobjects-dev/programmingosx %40mac.com This email sent to programming...@mac.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
I believe AjaxTextHinter in Wonder/Ajax is what you want. On Sep 21, 2009, at 11:33 AM, J Stephanos wrote: Wonder's AjaxAutoComplete works great - but is it possible to have the equivalent of a noDisplayString? Movie Name: [ enter a movie name here ] We'd like to provide some hint ("enter movie name here") to the user, to enter a movie name in the field. It should disappear when you start typing in the text. Is this feature already there? Couldn't find it in the javadoc. TIA. --JSt ___ 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/kieran_lists%40mac.com This email sent to kieran_li...@mac.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
AjaxAutoComplete - is it possible to have the equivalent of a noDisplayString?
Wonder's AjaxAutoComplete works great - but is it possible to have the equivalent of a noDisplayString? Movie Name: [ enter a movie name here ] We'd like to provide some hint ("enter movie name here") to the user, to enter a movie name in the field. It should disappear when you start typing in the text. Is this feature already there? Couldn't find it in the javadoc. TIA. --JSt ___ 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
Re: AjaxAutoComplete list width
By the way, it worked great!! Thanks. On Apr 8, 2009, at 2:31 AM, Ricardo J. Parada wrote: Awesome... thanks. On Apr 7, 2009, at 8:14 PM, getsharp wrote: On 08/04/2009, at 6:27 AM, Ricardo J. Parada wrote: Is there a way to set the width of the list of matches that an AjaxAutoComplete renders? Right now it seems to always match the width of the text field. You can achieve it by tweaking css, eg: .auto_complete ul { width:150px; } I managed to write some JavaScript that sets the width of the text field to 40px. But when I start typing in that text field I want the list of matches to be ~150px because it includes a long description and 40px makes it wrap around and looks ugly. Any ideas? The text field size can be set with a "size = " binding, no javascript required. Cheers, Sharpy.. ___ 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
Re: AjaxAutoComplete list width
On 08/04/2009, at 6:27 AM, Ricardo J. Parada wrote: Is there a way to set the width of the list of matches that an AjaxAutoComplete renders? Right now it seems to always match the width of the text field. You can achieve it by tweaking css, eg: .auto_complete ul { width:150px; } I managed to write some JavaScript that sets the width of the text field to 40px. But when I start typing in that text field I want the list of matches to be ~150px because it includes a long description and 40px makes it wrap around and looks ugly. Any ideas? The text field size can be set with a "size = " binding, no javascript required. Cheers, Sharpy.. ___ 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
AjaxAutoComplete list width
Is there a way to set the width of the list of matches that an AjaxAutoComplete renders? Right now it seems to always match the width of the text field. I managed to write some JavaScript that sets the width of the text field to 40px. But when I start typing in that text field I want the list of matches to be ~150px because it includes a long description and 40px makes it wrap around and looks ugly. Any ideas? ___ 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
Re: AjaxAutoComplete and AjaxObserveField
Thanks... I did not know I could use AjaxSubmitButton like that. If I understood correctly, you are using an AjaxSubmitButton with the functionName binding which causes the AjaxSubmitButton to become a javascript function instead of a button. Then from your AjaxAutoComplete you use the afterUpdateElement to invoke that function when the user selects something from the list of matches. The function when invoked submits the form and calls the action bound to the AjaxSubmitButton. Right? :-) I'm gonna play with the AjaxSubmitButton some more... I see it has other bindings, i.e. formName and formSerializer. On Apr 3, 2009, at 9:53 AM, Ramsey Gurley wrote: On Apr 2, 2009, at 7:22 PM, Ricardo J. Parada wrote: Hi, I have an AjaxAutoComplete. The user types something, the list of matches is displayed, then the user selects from the list and the selected item is entered in to the AjaxAutoComplete text field. Now, when the user tabs out of the AjaxAutoComplete text field I want the value of the text field submitted in an ajax request and update an AjaxUpdateContainer. I thought, oh that's simple, I just wrap the AjaxAutoComplete in an AjaxObserveField. But as soon as I do that my AjaxAutoComplete no longer does autocompletion in response to key strokes. They don't get along. Any ideas how I could accomplish this? I want to submit the value from the text field when the user tabs out of the field (onblur maybe). And update an ajax update container. :-) Hi Ricardo, Here's an example I put together based on a tip David LeBer provided on the wonder list two weeks ago. Just start typing "container" and it will give you a list. Select a container and it will auto populate a wobrowser with items. ___ 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
Re: AjaxAutoComplete and AjaxObserveField
On Apr 2, 2009, at 7:22 PM, Ricardo J. Parada wrote: Hi, I have an AjaxAutoComplete. The user types something, the list of matches is displayed, then the user selects from the list and the selected item is entered in to the AjaxAutoComplete text field. Now, when the user tabs out of the AjaxAutoComplete text field I want the value of the text field submitted in an ajax request and update an AjaxUpdateContainer. I thought, oh that's simple, I just wrap the AjaxAutoComplete in an AjaxObserveField. But as soon as I do that my AjaxAutoComplete no longer does autocompletion in response to key strokes. They don't get along. Any ideas how I could accomplish this? I want to submit the value from the text field when the user tabs out of the field (onblur maybe). And update an ajax update container. :-) Hi Ricardo, Here's an example I put together based on a tip David LeBer provided on the wonder list two weeks ago. Just start typing "container" and it will give you a list. Select a container and it will auto populate a wobrowser with items. Title: Hello World Main.wod Description: Binary data Main.java Description: Binary data ___ 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
AjaxAutoComplete and AjaxObserveField
Hi, I have an AjaxAutoComplete. The user types something, the list of matches is displayed, then the user selects from the list and the selected item is entered in to the AjaxAutoComplete text field. Now, when the user tabs out of the AjaxAutoComplete text field I want the value of the text field submitted in an ajax request and update an AjaxUpdateContainer. I thought, oh that's simple, I just wrap the AjaxAutoComplete in an AjaxObserveField. But as soon as I do that my AjaxAutoComplete no longer does autocompletion in response to key strokes. They don't get along. Any ideas how I could accomplish this? I want to submit the value from the text field when the user tabs out of the field (onblur maybe). And update an ajax update container. :-) ___ 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
Re: AjaxAutoComplete
It seems that the trick for making it look like a search field can be accomplished by simply wrapping the AjaxAutoComplete in a div like this: and then having a bit of javascript to find the input element inside the an element of class livesearch... and then just set the found element's type attribute to "search". On Mar 25, 2009, at 11:08 PM, Ricardo J. Parada wrote: Can the AjaxAutoComplete be styled, i.e. if it accepted a class binding but I don't see one? Or maybe, instead of a text field could it be an input type="search" so that it looks like the Safari search field. I know that only works in Safari but still... it would be nice. :-) Ricardo ___ 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/rparada %40mac.com This email sent to rpar...@mac.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
AjaxAutoComplete
Can the AjaxAutoComplete be styled, i.e. if it accepted a class binding but I don't see one? Or maybe, instead of a text field could it be an input type="search" so that it looks like the Safari search field. I know that only works in Safari but still... it would be nice. :-) Ricardo ___ 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
Wonder AjaxAutoComplete submits form
Hi Group, I tried to use the AjaxAutoComplete component from Project Wonder 3.0. I modified the example and it seemed to work very good in my environment. But when I use the Component inside a WOForm I have the problem that pressing the enter key to complete the Autocompletion triggers a form submission and creates an HTML list output of the AjaxAutoComplete list. So far so good I thought and I added an action binding to the WOForm component which I didn't use before, because I used action bindings for the submission elements in the form (2 submit buttons and 4 image buttons). Regarding to the WO documentation (Dynamic Elements Documentation) the action binding of a WOForm will not be used when a submit component like a submit button or image button is triggered and this component has an action binding too... But - now my form always uses the action binding of the WOForm, even if I trigger the submission with one of the sumit buttons or image buttons. Does someone has experience with this behaviour? I am somehow confused. Best regards, Helmut ___ 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 archive@mail-archive.com