OVERLOAD AjaxInPlaceEditor
OVERLOAD AjaxInPlaceEditor
- Subject: OVERLOAD AjaxInPlaceEditor
- From: Raymond NANEON <email@hidden>
- Date: Mon, 06 Feb 2012 10:30:34 +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
_______________________________________________
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