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 :divid="searchForm"woname="autoCompAOF1"webobjectname="motClefsAutoComplete1"//wo/divHere 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 : // Modulederecherches publicWOActionResults refreshPop2() { if(getSelectedMotClefs() !=null) { // } returnnull; }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: 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: 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 = searchFormwo name = autoCompAOF1webobject 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 (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
HiFarrukh,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 insession().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:wo:AjaxAutoComplete list="$items" item="$item" value="$value" selection="$selectedItem" displayString="$item.propertyYouWantToShow" /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 :divid="searchForm"woname="autoCompAOF1"webobjectname="motClefsAutoComplete1"//wo/divHere 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 : // ModulederecherchespublicWOActionResults refreshPop2() {if(getSelectedMotClefs() !=null) {//}returnnull;}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, 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 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: 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 = searchFormwo name = autoCompAOF1webobject 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 (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
Thanks Farrukh,I try again and tell you.Envoyé depuis iCloudLe 13 oct 2011 à 06:17, Farrukh Ijaz farrukh.i...@fuegodigitalmedia.com 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:HiFarrukh,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 insession().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:wo:AjaxAutoComplete list="$items" item="$item" value="$value" selection="$selectedItem" displayString="$item.propertyYouWantToShow" /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 :divid="searchForm"woname="autoCompAOF1"webobjectname="motClefsAutoComplete1"//wo/divHere 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 : // ModulederecherchespublicWOActionResults refreshPop2() {if(getSelectedMotClefs() !=null) {//}returnnull;}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
Réexp : How to get selected Object of AjaxAutoComplete
Début du message réexpédié:De: Raymond NANEON rnan...@me.comDate: 14 sep 2011 à 07:15À: WebObjects webobjects-dev webobjects-dev@lists.apple.comObjet: 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 :divid="searchForm"woname="autoCompAOF1"webobjectname="motClefsAutoComplete1"//wo/divHere 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 : // ModulederecherchespublicWOActionResults refreshPop2() {if(getSelectedMotClefs() !=null) {//}returnnull;}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 :divid="searchForm"woname="autoCompAOF1"webobjectname="motClefsAutoComplete1"//wo/divHere 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 : // Modulederecherches publicWOActionResults refreshPop2() { if(getSelectedMotClefs() !=null) { // } returnnull; }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