re/store context somehow?

2024-05-16 Thread OCsite via Webobjects-dev
Hi there, my client made a somewhat weird request: wants me to store “the last context the user worked in” in his session, and restore it when the user comes to the application through a specific Direct Action (and the session still lives). In other words, suppose the user works in the app for

.wo parser/validator?

2024-05-03 Thread OCsite via Webobjects-dev
Hi, is there a commandline tool which would parse and validate a .wo, so that I could include it into my toolchain and get warnings and errors for malformed html templates build-time, instead of run-time when the appropriate page is opened? Thanks! OC

enumerating sessions?

2024-04-26 Thread OCsite via Webobjects-dev
Hi there, is there a way to enumerate sessions which are alive inside of a WO/ERXApplication? I guess I can create such a list myself, adding new ones in session.awake, keeping it weak not to prevent old sessions to be destroyed (or perhaps storing just session IDs), yadda yadda, but it would

Re: loooong saveChanges prep-stage

2024-02-01 Thread OCsite via Webobjects-dev
ed your > available memory and drop you off the performance cliff. You can do the > maintenance and get around the locking problems using something like > pg_repack. > From: OCsite > Sent: Wednesday, January 31, 2024 7:59 PM > To: OCsite via Webobjects-dev > Cc: Jérémy DE ROYE

Re: loooong saveChanges prep-stage

2024-01-31 Thread OCsite via Webobjects-dev
Thanks, guys! I am pretty sure though the problem can't be a background process either reading for a long time or saving for a long time, for I do use the ERXAdaptorChannelDelegate.trace logs and through DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations I log each save — and

loooong saveChanges prep-stage

2024-01-30 Thread OCsite via Webobjects-dev
Hi guys, I've got logs from one of our installations with a pretty weird problem. We just happen to log immediately before ec.saveChanges() gets called; and we happen to have a DatabaseContextDelegate.databaseContextWillPerformAdaptorOperations, which logs out soon as it is called. In this

Re: Might perhaps ERXEnterpriseObject.updateInverseRelationships fail?

2023-09-20 Thread OCsite via Webobjects-dev
a similar problem lately, or perhaps, even better, find a culprit and fix that? Thanks a lot! OC > On 7. 6. 2023, at 11:12, OCsite via Webobjects-dev > wrote: > > Hi there, > > pretty rarely, but alas repeatedly — something like, twice a year — our > clients obse

Might perhaps ERXEnterpriseObject.updateInverseRelationships fail?

2023-06-07 Thread OCsite via Webobjects-dev
Hi there, pretty rarely, but alas repeatedly — something like, twice a year — our clients observe a weird behaviour that - they add “a row to a table”, means an eo into a standard 1:N relationship; - immediately after that, they do not see the newly added row in the GUI, nor do see it newly

Re: choosing the submit for Enter in a textfield?

2023-03-28 Thread OCsite via Webobjects-dev
René, > On 28. 3. 2023, at 14:23, René Bock wrote: > I guess the only non JS solution would be to split the form in two different > forms. Thanks, but since the layout is [some form 1 items] [complete form 2] [other form 1 items] I don't think I can do that. Perhaps if I could add the “form”

Re: M:N-like table with a contents, updating the PK leads to problems

2022-10-11 Thread OCsite via Webobjects-dev
e no difference altogether. The difference is purely WO-side, in the way the changes are merged into snapshots and other ECs. That would be, I suppose, far easiest approach — if, that is, (b) can be done reliably. Would that be possible somehow? Thanks and all the best, OC >> On 11 Oct 2022, at

M:N-like table with a contents, updating the PK leads to problems

2022-10-10 Thread OCsite via Webobjects-dev
Hi there, I've just bumped into a new problem. There's a table which, many years ago, was created as an invisible M:N intermediate table. Later, we needed to add some information to the relationship, so now we have a table, say, Connection, which has - a number of normal attributes - a

Re: file download + refresh

2022-09-02 Thread OCsite via Webobjects-dev
e, so it might not be suitable if you have a lot of these pages > open for a longer time. > > Cheers, > - hugi > > >> On 1 Sep 2022, at 10:13, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >> Hi there,

file download + refresh

2022-09-01 Thread OCsite via Webobjects-dev
Hi there, thanks for previous answers, the JS solution works like a charm. Nevertheless, I've bumped into another problem: along with downloading the file (returning appropriate WOResponse from my action method), I would need to refresh the page as well, to increment a visible download counter

Re: owns destination + deny prohibited?

2022-02-27 Thread OCsite via Webobjects-dev
ppe > ———————— > Sent from my iPhone > > >> On 27 Feb 2022, at 12:45, OCsite via Webobjects-dev >> wrote: >> >> Hi there, >> >> as I am checking all my relationships to make sure I did not another >> mistake, I've bumped into someth

owns destination + deny prohibited?

2022-02-27 Thread OCsite via Webobjects-dev
Hi there, as I am checking all my relationships to make sure I did not another mistake, I've bumped into something strange. It looks like EOF prohibits a combination of “owns destination” and the “deny” delete rule. Can perhaps anybody explain the rationale behind that? I must be overlooking

Re: Wrong SQL when joining in an OR-part of the qualifier

2022-02-14 Thread OCsite via Webobjects-dev
Thanks to all for the answers! Is there a way to use the ERExistsQualifier through qualifierWithQualifierFormat? At the particular place it would be somewhat difficult to create the qualifier tree programmatically, there are considerably more complex qualifiers ANDed and ORred to the thing,

restart problems

2022-01-29 Thread OCsite via Webobjects-dev
Hi there, to keep at the safe side, we bounce our application once a day. The app happens to be somewhat specific in the sense it is really used only locally and at the business hours; therefore we can afford simply to not-gracefully relaunch it late evening. Worked well for a long time.

Re: target-page-based (instead of hyperlink-based) fragment?

2022-01-16 Thread OCsite via Webobjects-dev
event... might prove easier than somehow trying to stick the fragment to the URL... Thanks and all the best, OC >> On Jan 16, 2022, at 3:53 PM, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >> Hi there, >> &

target-page-based (instead of hyperlink-based) fragment?

2022-01-16 Thread OCsite via Webobjects-dev
Hi there, my client wants me to ensure that a page, when accessed/refreshed in any way, automatically scrolls to a specific place (which depends on previous usage of the thing). Is there some place/hook in WebObjects which would allow me to automatically add a fragment (whose value is set up

Re: session/logged-in user valid for a specific component only?

2022-01-09 Thread OCsite via Webobjects-dev
Aaron, thanks! Actually I could extend the user class easily, without a need to make a generic interface. Nevertheless I don't think either would help: in this particular case, the „canSeePage“ ability does not depend on the user, but only on whether the application has been connected to

Re: session/logged-in user valid for a specific component only?

2022-01-09 Thread OCsite via Webobjects-dev
Markus, thanks! > On 9 Jan 2022, at 17:27, Markus Ruggiero wrote: > When you create your page inheriting from OCSComponent you inherit all the > methods including all managing your currentUser. Just override those. I would > think that solves your problem without too much of legwork. Alas,

again, merge on unlock did not happen :/

2021-10-07 Thread OCsite via Webobjects-dev
Hi there, I am again here with a mysterious bug; something like this happened before (with slightly different setup), now it happened again. This time the attributes involved were NSTimestamps; I (might be wrong, but I) believe the attribute type is irrelevant to the problem and I am

merging changes upon a save: what are “locally uncommitted changes”, too many snapshots?

2021-06-16 Thread OCsite via Webobjects-dev
Hi there, is the process of merging changes upon a save into other ECs, and all the kinds of snapshots available, documented somewhere in detail? My old EOEditingContextConcepts says just this: ... However, locally uncommitted changes to objects in the EOEditingContext are by default

Re: [WO-DEV] old/invalid :1 relationship value, how the H. possible?!?

2021-06-16 Thread OCsite via Webobjects-dev
Some followup: I have analysed the R/R loops in details and found that - the user B saved changes at 11:00:25.220 - at this moment, there was a user A's R/R loop (which never touched the relevant data), running from 11:00:24.570 to 11:00:25.548 - the next user A's R/R loop started at

given WOLips is being discussed...

2020-07-03 Thread OCsite via Webobjects-dev
... well, myself, I have found Eclipse next-to-unuseable (WOLips itself looked good, but it's, alas, Eclipse-based). In case there's more people similarly Eclipse-incompatible, let me just remind that the good ole XCode (with a couple of build scripts added) is considerably more convenient than

Re: Creating a EOModel in code

2020-06-29 Thread OCsite via Webobjects-dev
Don, > On 29 Jun 2020, at 17:16, Don Lindsay wrote: > Thanks for the information. This may be the path I will need to go down for > this specific project. Good luck! I have checked our sources and actually there were two small gotcha's we did bump into: (i) programmatically added

Re: Creating a EOModel in code

2020-06-29 Thread OCsite via Webobjects-dev
Don, we do something remotely similar all the time (not creating a complete model, but adding attributes dynamically at launch to entities). Works without a glitch, I cannot recall any problem at all with this. Should work for you as well, I would be rather surprised if you encounter any

GID for deleted objects

2020-06-15 Thread OCsite via Webobjects-dev
Hi there, I've just bumped into another problem which seems it should be pretty common, but I can't see a decent solution (due to my blindness quite probably). I am caching some information for EOs; the info is EC-independent, and therefore the cache is keyed by global IDs. When an EO is

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread OCsite via Webobjects-dev
Markus, > On 2 Jun 2020, at 12:09, Markus Ruggiero wrote: > Why not simply override toString() in EOGenerate templates once and for all? What are “EOGenerate templates” and how they affect the entities/attributes/relationships toStrings? I can't find anything like that in my WO documentation.

EC locking/shared snapshots/old data saved

2020-05-29 Thread OCsite via Webobjects-dev
Hi there, just again, I've been bit in my tender parts by the well-known problem that 1. thread A locks its EC 2. thread B saves some change into DB 3. thread A saves its own changes (of different properties), which alas as a side-effect also reverts B's changes ... ... since A's EC still

dedlock report whenever app ends?

2020-05-21 Thread OCsite via Webobjects-dev
A propos of > alas, the site admins did not try to ask JVM to detect deadlocks when they > restarted the application might it perhaps to be possible to set something somewhere up so that each time a WO application is stopped by the JavaMonitor, the JVM always tries to detect and log out into

Re: background tasks locked, workers run all right

2020-05-21 Thread OCsite via Webobjects-dev
ase, what's precisely the advantage of having a pool instead of creating a new OSC for each import thread (and releasing it when the import is done)? > Don’t forget to send him some Red Breast Whiskey. Aha! At least one thing which I do not need more detailed elucidation :) Thanks again

background tasks locked, workers run all right

2020-05-21 Thread OCsite via Webobjects-dev
Hi there, bumped lately into another weird problem. We import some data into DB in background tasks. Up to yesterday, it worked normally; today six import tasks were launched, and each of them seemingly hang in its first DB operation. Restart did help; alas, the site admins did not try to ask

Re: SQL Error on fetch

2020-02-04 Thread OCsite via Webobjects-dev
Gino, I can be completely wrong, but it looks like two problem logs interspersed, which stinks by a threading issue, along with the fact it happens intermittently. If possible, I'd check race conditions and try to synchronize (or lock) where needed. Quite possibly someone other would give a

REDIRECTED to non-refusing instance

2020-02-03 Thread OCsite via Webobjects-dev
Hi there again, is there any known situation/bug, which would lead to the logs of kind DEBUG !!! Request will be REDIRECTED to non-refusing instance without having set either Refuse new session or graceful scheduling in the JM? I have found a debate in which Chuck asserts that WO might have

JavaScripts generated programmatically and/or placed at the end

2020-01-26 Thread OCsite via Webobjects-dev
Hi there, for once, no deep mystery, but a plain API-related question :) I am just switching my old very hap-hazard and ugly way of loading javascripts as needed by components to the very neat ERXComponent's support of additionalJavascriptFiles. Mostly it works like a charm, but for two cases:

Re: Failed Query

2020-01-14 Thread OCsite via Webobjects-dev
Gino, first thing I would try would be to log out the generated SQL and check its contents. Can you do that? Unless I am missing something, your quoted strings look like a plain ASCII, and thus they should not be affected by Unicode quirks. All the best, OC > On 14 Jan 2020, at 15:26, Gino

Re: Definitely solved: More SharedEC woes: relationships into SEC not saved with more EOF stacks

2020-01-14 Thread OCsite via Webobjects-dev
y entities would cause each session to have its own full cache of all the „static“ objects, which might be a bit of a memory problem with more users working with the app at once. Perhaps it was a wrong decision and the memory waste would be a cost well worth of not bumping into those SEC quirks... Th

Definitely solved: More SharedEC woes: relationships into SEC not saved with more EOF stacks

2020-01-13 Thread OCsite via Webobjects-dev
020, at 4:13 PM, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >> I think I have probably solved the original problem (quoted below) all >> right, for the record, by doing essentially this in the >> databaseContextWillOrd

Hopefully solved: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
o I just do something terribly wrong somewhere in my application, for this should work all right? Does anyone here use this setup (creating/updating EOs with one-way relationships into SEC), and does it work properly for you without all this hassle? Thanks, OC > On 11 Jan 2020, at 3:28, OCsi

Re: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
somewhat fear there would be some subtle undocumented difference, which would raise its ugly head and bite me in tender parts the next month or the next year :/ Thanks and all the best, OC >> On Jan 12, 2020, at 7:00 AM, OCsite via Webobjects-dev >> mailto:webobjects-dev@lists.

Re: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
P.S. > On 12 Jan 2020, at 14:55, OCsite via Webobjects-dev > wrote: > As for the fixing... well, I guess I can generate the proper AOs myself, but > the trick is, how do I order them? I would need to reuse the standard default > ordering which EODatabaseContext does normal

Re: More SharedEC woes: relationships into SEC not saved?!?

2020-01-12 Thread OCsite via Webobjects-dev
der them? I would need to reuse the standard default ordering which EODatabaseContext does normally; but it does not seem to be accessible anyhow, or am I overlooking something of importance here? Thanks and all the best, OC > On 11 Jan 2020, at 3:28, OCsite via Webobjects-dev > wrote:

More SharedEC woes: relationships into SEC not saved?!?

2020-01-10 Thread OCsite via Webobjects-dev
Hi there, this is weird. My EOs have some relationships into the SharedEC — of course, one-way without an inverse; I understand that relationships to SEC are all right, only those from it outside are forbidden. (Am I wrong perhaps? If those relationships were set up in the database without

Sorta solved: suspicious sessions and R/R loops created for a CSS font

2020-01-10 Thread OCsite via Webobjects-dev
Hugi, thanks! > On 10 Jan 2020, at 20:19, Hugi Thordarson wrote: > Well, WOStaticResourceRequestHandler doesn't really "create a > request/response loop". A request is is sent to the application, the > application will then look at the URL and determine from that what request > handler

suspicious sessions and R/R loops created for a CSS font

2020-01-09 Thread OCsite via Webobjects-dev
Gentlemen, my application does some R/R loops and creates some sessions/main components which I believe it should not. Lately, from a webdesigner, I have got some improvements of the look of my application, which essentially looks like in the html header. The CSS starts with === /*! *