Re: EOEditingContext.MessageHandler - SOLVED

2005-10-13 Thread Marcos Trejo Munguia
Thanks Chuck and Zak. I follow the recommendation of Chuck and now it works, but the method editingContextPresentErrorMessage was never get called, so I implement editingContextShouldContinueFetching like this: public boolean editingContextShouldContinueFetching(EOEditingContext context, int

Re: EOEditingContext.MessageHandler

2005-10-13 Thread Zak Burke
Marcos Trejo Munguia wrote on 10/13/05 2:05 PM: > Hi list! > > Someone has successfully implement this class in a WebObjects Application? In my EC subclass constructor I have: ... setMessageHandler(new I3pkbMessageHandler()); ... My message handler is the followi

Re: EOEditingContext.MessageHandler

2005-10-13 Thread Chuck Hill
It looks like it does not like the anonymous inner class. I'd try it like this: public TransactionsHistory(WOContext context) { super(context); ec.setMessageHandler(this); } public void editingContextPresentErrorMessage(EOEditingContext context, String message)

EOEditingContext.MessageHandler

2005-10-13 Thread Marcos Trejo Munguia
Hi list! Someone has successfully implement this class in a WebObjects Application? I have the next code: private EOEditingContext ec = new EOEditingContext(); public NSArray transactions; public TransactionsHistory(WOContext context) { super(context); ec.setMessageHandler(new Object() {