Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-06 Thread OC
Samuel, > I see, you mixed the server processing with the client side processing in the > same timeline. am I? I might well be overlooking something of importance, and I has been wrong many times, but I don't think so. There's no problem with the actual client-side processing; my problem was t

solved: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist

2015-02-06 Thread OC
Dave, Chuck, and others, well, if the error in code is hard to find, it sometimes might mean it's not there. I think I did write the problems happen on a server to which I had no access; just I was getting logs and other things I asked the admin for. Now I have obtained the access to the serve

Re: sql logging

2015-02-06 Thread OC
Ted, if Timothy's advice does not help -- I bumped into similar problem lately (along with my weird “prepareForSaveWithCoordinator: Cannot save the object with globalID” problems /whose relatively unsurprising and rather sad results I'm about to write in a moment/), and haven't been able to log

Re: limiting popupbutton list with a fetchSpec

2015-02-06 Thread Theodore Petrosky
so after screwing around all day I came up with: EOQualifier theQualifier = Book.INSTRUMENT_BOOKS.containsAnyObjectSatisfying(InstrumentBook.INSTRUMENT.in( Instrument.fetchInstruments(person.editingContext(), Instrument.PERSON_INSTRUMENTS.dot(PersonInstrument.PER

Re: limiting popupbutton list with a fetchSpec

2015-02-06 Thread Theodore Petrosky
do you have any idea why it doesn’t like the second version: this works: public static synchronized EOQualifier thatAreForPersonByInstrument(Person person) { EOQualifier theQualifier1 = Book.INSTRUMENT_BOOKS.containsAnyObjectSatisfying( InstrumentBook.INSTRUMENT.eq(In

Re: sql logging

2015-02-06 Thread Timothy Worman
Hola! With Wonder you want to do these: # Enable delegate to emit SQL debugging info. The Logger used is log4j.category.er.extensions.ERXAdaptorChannelDelegate.sqlLogging=DEBUG # put this to true if you want to log sql stuff er.extensions.ERXAdaptorChannelDelegate.enabled=true # How long a state

sql logging

2015-02-06 Thread Theodore Petrosky
I have googled, searched the wiki, and tried everything I could think of, but I can not get my sql to log. In my properties: # ERExtensions # Transaction - Switching this to debug will start the sql ouputting. log4j.logger.er.transaction.adaptor.EOAdaptorDebugEnabled=DEBUG still no SQL :-( I

Re: JBoss 6.2 and EOModelGroup issues

2015-02-06 Thread Chuck Hill
It looks like you might be doing some Bad Things (tm) in your EO classes. Do you have static initializers that access EOF? That is generally a pretty bad idea. com.webobjects.fouation.NSForwardException for java.lang.ExceptionInInitializerErrorat java.lang.Class.forName0ative Method) at java.

Re: prevent the user to click again the same wo:hyperlink whilst page reloads?

2015-02-06 Thread Chuck Hill
Yes, you can. Override installPatches() in Application, call super to get the Wonder defaults, then ERXPatcher.setClassForName(YourLink.class, "WOHyperlink"); Chuck On 2015-02-06, 1:06 AM, "OC" wrote: On 6. 2. 2015, at 8:47, OC mailto:o...@ocs.cz>> wrote: Hmmm, it looks like might work all

Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist

2015-02-06 Thread Ramsey Gurley
Looking at line 4205 in EODatabaseContext, it looks like it calls the delegate’s databaseContextFailedToFetchObject() method before the gid is added to the _missingObjectGIDs set in _fireFault(). http://wocommunity.org/documents/javadoc/WebObjects/5.4.2/com/webobjects/eoaccess/EODatabaseContext.

Re: limiting popupbutton list with a fetchSpec

2015-02-06 Thread Theodore Petrosky
I just forked Wonder and cloned it to my account (about a month ago)! I am almost there. I think my model isn’t correct and I need to rethink it. My problem is with the circular nature of this. I will prevail On Feb 6, 2015, at 11:04 AM, David Avendasora wrote: > How recent is your W

Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist

2015-02-06 Thread Chuck Hill
While all of that is true, this is a simple fetch of a previously existing object caused by firing a fault. Chuck On 2015-02-06, 8:58 AM, "David Avendasora" wrote: How about EOF doing things out-of-(expected)-order? ec.saveChanges() creates 1 transaction. Let's say you've made a bunch of cha

Re: followup: prepareForSaveWithCoordinator: Cannot save the object with globalID / row does exist

2015-02-06 Thread David Avendasora
How about EOF doing things out-of-(expected)-order? ec.saveChanges() creates 1 transaction. Let’s say you’ve made a bunch of changes, one of which results in an EO being deleted (cascade-delete, owned objects, etc), but because other EOs that would have been related to it were added before it w

Re: limiting popupbutton list with a fetchSpec

2015-02-06 Thread David Avendasora
How recent is your Wonder? The exists qualifier is relatively new (past couple years). If you give me a stack track trace I might be able to further diagnose it. Thanks! Dave > On Feb 6, 2015, at 9:03 AM, Theodore Petrosky wrote: > > before I beat myself up too much. I have ERExtensions in

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-06 Thread Robert B. Hanviriyapunt
OC, Here’s what I think you are looking for: var a = ; // do NOT use 'a' yet ... a = ; // use 'a' here // or $( document ).r

Re: R/R loop 101: how to trigger a subcomponent method before appendToResponse?

2015-02-06 Thread Samuel Pelletier
OC, I see, you mixed the server processing with the client side processing in the same timeline. All server processing is done when the client (browser) receive the first byte of data. All the Javascript code execution is defined by the browser but is independant of the server side except if y

Re: limiting popupbutton list with a fetchSpec

2015-02-06 Thread Theodore Petrosky
before I beat myself up too much. I have ERExtensions in the class path. Why would I get this error: java.lang.UnsupportedOperationException: Unknown qualifier type 'er.extensions.eof.qualifiers.ERXExistsQualifier’. On Feb 5, 2015, at 4:51 PM, David Avendasora wrote: >> On Feb 5, 2015, at 1:

Re: prevent the user to click again the same wo:hyperlink whilst page reloads?

2015-02-06 Thread Theodore Petrosky
Actually NY State Tax office uses this feature. You click the button to debit your bank account, then wait. I have watched a user click, wait 2 minutes before clicking it again. You are absolutely correct he was debited 2 times as a direct payment from his bank account. (Oh and you can not get t

Re: prevent the user to click again the same wo:hyperlink whilst page reloads?

2015-02-06 Thread OC
On 6. 2. 2015, at 8:47, OC wrote: > Hmmm, it looks like > > might work all right. Whilst I could go through all the wo:hyperlinks in my templates, it would be sort of more convenient to do this at one place. I've found that ERXHyperlink “is patched automatically into the runtime system on ap