• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: AjaxUpdateContainer and AjaxAutoComplete together?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: AjaxUpdateContainer and AjaxAutoComplete together?


  • Subject: Re: AjaxUpdateContainer and AjaxAutoComplete together?
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 16 Aug 2012 03:12:55 -0700 (PDT)

Pascal,

shouldn't the id agree:



> <wo:AjaxAutoComplete id="specName"

<wo:AjaxObserveField updateContainerID="specDescription"
> 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 <email@hidden> wrote:

> From: Pascal Robert <email@hidden>
> Subject: AjaxUpdateContainer and AjaxAutoComplete together?
> To: "WebObjects Development" <email@hidden>
> 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:
>
>           <td>
>             <span
> id="simpleComplete">
>              
> <wo:AjaxAutoComplete id="specName" list="$currentSpecs"
> value="$specName" item="$specItem"
> displayString="$specItem.ID" selection="$specSelection"
> />
>              
> <wo:AjaxObserveField updateContainerID="specDescription"
> observeFieldID="specName_field" />
>              
> <wo:AjaxObserveField
> updateContainerID="specSupplierPartNumber"
> observeFieldID="specName_field" />
>             </span>
>           </td>
>          
> <td><wo:AjaxUpdateContainer
> id="specSupplierPartNumber"><wo:str
> value="$specSelection.manufacturerPartNumber"
> /></wo:AjaxUpdateContainer></td>
>           <td>
>            
> <wo:AjaxUpdateContainer
> id="specDescription"><wo:str
> value="$specSelection.description"
> /></wo:AjaxUpdateContainer>
>           </td>
>
> 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      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: AjaxUpdateContainer and AjaxAutoComplete together?
      • From: Pascal Robert <email@hidden>
References: 
 >AjaxUpdateContainer and AjaxAutoComplete together? (From: Pascal Robert <email@hidden>)

  • Prev by Date: Re: Guidance on how to create a framework for the application models
  • Next by Date: Re: AjaxUpdateContainer and AjaxAutoComplete together?
  • Previous by thread: Re: AjaxUpdateContainer and AjaxAutoComplete together?
  • Next by thread: Re: AjaxUpdateContainer and AjaxAutoComplete together?
  • Index(es):
    • Date
    • Thread