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:
<wo:AjaxAutoComplete list="$items" item="$item" value="$value"
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 :
>
> <div id = "searchForm"><wo name = "autoCompAOF1"><webobject name =
> "motClefsAutoComplete1"/></wo></div>
>
> 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 ([email protected])
> Help/Unsubscribe/Update your Subscription:
> http://lists.apple.com/mailman/options/webobjects-dev/farrukh.ijaz%40fuegodigitalmedia.com
>
> This email sent to [email protected]
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]