• 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éexp : OVERLOAD AjaxInPlaceEditor
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Réexp : OVERLOAD AjaxInPlaceEditor


  • Subject: Réexp : OVERLOAD AjaxInPlaceEditor
  • From: Raymond NANEON <email@hidden>
  • Date: Tue, 07 Feb 2012 14:48:18 +0000 (GMT)



Hi,


I want to overload 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 overload 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

  • Prev by Date: Results from the surveys
  • Next by Date: App switching from https to http port 443 on logout
  • Previous by thread: Results from the surveys
  • Next by thread: App switching from https to http port 443 on logout
  • Index(es):
    • Date
    • Thread