• 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
OVERRIDE AjaxInPlaceEditor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

OVERRIDE AjaxInPlaceEditor


  • Subject: OVERRIDE AjaxInPlaceEditor
  • From: Raymond NANEON <email@hidden>
  • Date: Thu, 09 Feb 2012 07:39:40 +0000 (GMT)

Hi,


I want to override the AjaxInPlaceEditor component, change the action 'cancel' to 'annuler' in French. So I create a new component that extends an AjaxInPlaceEditor but it does not work as I want.
Maybe my override on the component is not correct.

public class AjaxFieldEditor extends AjaxInPlaceEditor {

    public AjaxFieldEditor(String name, NSDictionary associations,
            WOElement children) {
        super(name, associations, children);
        // TODO Auto-generated constructor stub
    }

    public NSDictionary createAjaxOptions(WOComponent component) {
        NSMutableArray ajaxOptionsArray = new NSMutableArray();
        ajaxOptionsArray.addObject(new AjaxOption("annulerLink",
                AjaxOption.BOOLEAN));
        ajaxOptionsArray.addObject(new AjaxOption("annulerText",
                AjaxOption.STRING));
        ajaxOptionsArray.addObject(new AjaxOption("annulerControl",
                AjaxOption.STRING));
        NSMutableDictionary options = AjaxOption.createAjaxOptionsDictionary(
                ajaxOptionsArray, component, associations());
        return options;
    }

    public void appendToResponse(WOResponse response, WOContext context) {
        WOComponent component = context.component();
        NSDictionary options = createAjaxOptions(component);
        AjaxOptions.appendToResponse(options, response, context);
    }

}

Thanks for your Help

Ray
Envoyé depuis iCloud
 _______________________________________________
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: OVERRIDE AjaxInPlaceEditor
      • From: David LeBer <email@hidden>
  • Prev by Date: Re: Eclipse/WOLips Help for Old Noobie
  • Next by Date: Re: Limit Qualifier for FetchSpecification
  • Previous by thread: Re: isEntityEditable still showing space when false
  • Next by thread: Re: OVERRIDE AjaxInPlaceEditor
  • Index(es):
    • Date
    • Thread