• 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
Rép : Re: How to get SelectedObject from AjaxAutoComplete
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Rép : Re: How to get SelectedObject from AjaxAutoComplete


  • Subject: Rép : Re: How to get SelectedObject from AjaxAutoComplete
  • From: Raymond NANEON <email@hidden>
  • Date: Wed, 21 Sep 2011 14:45:44 +0000 (GMT)

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<EORefidx> lesMotsClefs(){

if(listMotclefs == null){

listMotclefs = EORefidx.fetchGetMotsClefsParents(session().defaultEditingContext());

}

return listMotclefs;

}


/** TextField1*/

public NSArray<EORefidx> 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;

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
References: 
 >Re: How to get SelectedObject from AjaxAutoComplete (From: Henrique Gomes <email@hidden>)

  • Prev by Date: Re: ToOneRelationship and saveChange method
  • Next by Date: Re: Bundle loading during unit testing outside Eclipse
  • Previous by thread: Re: How to get SelectedObject from AjaxAutoComplete
  • Next by thread: Re: AjaxModalDialog in iframe
  • Index(es):
    • Date
    • Thread