Re: AjaxUpdateContainer and AjaxAutoComplete together?
Amedeo Mantica <[email protected]>
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Hi Pascal put the wo:AjaxObserveField at the end, after the wo:AjaxUpdateContainer Amedeo On 14/ago/2012, at 18:56, Pascal Robert <[email protected]> wrote: > ** Looks like webobjects-dev have delay problems again, sending it to wonder-disc ** > > 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. > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > Wonder-disc mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wonder-disc ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/