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 protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]