Re: Qualifier Evaluation with Object in Multiple Editing Contexts

2019-05-31 Thread Aaron Rosenzweig via Webobjects-dev
At the base of it - if you do “.equals()” with one EO and another… even if they generate the same GlobalID they will not be equal if they are in different editingContexts. So that’s why an in memory evaluation doesn’t work. When you query the database, there is no EC in that realm, so you get

Re: Great archive of old WO WWDC recordings.

2019-06-27 Thread Aaron Rosenzweig via Webobjects-dev
Nice! thanks for the tip Matt AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 > On Jun 27, 2019, at 8:24 PM, Matthew Ness via Webobjects-dev > wrote: > > Hello list, > > Various tech

Re: SQLite Adaptor?

2019-07-21 Thread Aaron Rosenzweig via Webobjects-dev
Hi Markus, I have not; however, you might be able to use the general non-DB-specific adaptor. I believe it would create an EO_PK table, which isn’t the greatest, but maybe good enough for what you need. EO_PK table can fail under high load - it’s “like” a sequence but is not a sequence - it i

Re: One to many not nullifying when reverse is not marked for in-class generation

2019-07-28 Thread Aaron Rosenzweig via Webobjects-dev
Hi Robert, I’m missing a piece of info from that story - so let us back up a bit. A “to-Many” relationship isn’t really, it’s a figment of our imagination. It’s an optional byproduct of SQL relational math. The “toOne” relationship is the only thing real here. It is generally an integer fore

Re: One to many not nullifying when reverse is not marked for in-class generation

2019-07-28 Thread Aaron Rosenzweig via Webobjects-dev
Hi Robert, Alright it’s coming together but let’s make it concrete. Let’s make a complete story shall we? “Employee” table has an FK to “Company” “Company” has a conceptual “toMany” to “Employee.” You could model it, or not. If you model it, you could make it visible, or not (class property).

Re: One to many not nullifying when reverse is not marked for in-class generation

2019-07-28 Thread Aaron Rosenzweig via Webobjects-dev
INITIALLY DEFERRED; > > You have basically the same option as in EOF, you can have the DB react to > delete of parent with these options: > - deny (default behaviour) > - set null (set the FK to null) > - cascade (cascade te delete to children) > >

Re: Binding to static vars?

2019-10-11 Thread Aaron Rosenzweig via Webobjects-dev
Hi Markus, I don’t think it’s possible, but you can make a simple cover method in the WOComponent that simply returns the class property. AARON ROSENZWEIG / Chat 'n Bike

Re: Binding to static vars?

2019-10-11 Thread Aaron Rosenzweig via Webobjects-dev
Touché herr Hugi, Well done and well said. I didn’t know one could do that. AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 > On Oct 11, 2019, at 10:53 AM, Hugi Thordarson via Webobject

Re: WebObjects and Javascript Response Rewriter

2020-01-02 Thread Aaron Rosenzweig via Webobjects-dev
Sounds like you have your feet straddling two different worlds. You could consider building parts of your app in pure JS while other parts in WO. You could do persistence with REST for your pure JS apps that are served by WORest. You could use JSON web tokens to have authentication that is shar

Re: WebObjects and Javascript Response Rewriter

2020-01-03 Thread Aaron Rosenzweig via Webobjects-dev
n EO server objects into client objects is rather > cumbersome. I would like to try WORest to see if it's make thing easier ... > > Pierre > > > De : Webobjects-dev > [mailto:webobjects-dev-bounces+pierre.gilquin=hcuge...@lists.apple.com] De la > part de Aaron R

Maven Unit tests with EOF

2020-01-22 Thread Aaron Rosenzweig via Webobjects-dev
Hi, I’m trying to run maven unit tests with the surefire plugin that make use of EOF but it’s not working out. I can run them in Eclipse with a direct launch as a bundless build and it works. I make a call in the static initializer of the test case to: ERXExtensions.initApp(ACUnitTestingApplic

Re: Maven Unit tests with EOF

2020-01-22 Thread Aaron Rosenzweig via Webobjects-dev
> if (Files.notExists(mainBundlePath)) { > // Maven doesn't create a build directory. The WOA bundle goes into the > target folder instead. > mainBundlePath = Paths.get("target/your-project.woa"); > } > > ERXExtensions.initApp("your-project

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
from Eclipse >> Path mainBundlePath = Paths.get("build/your-project.woa"); >> >> if (Files.notExists(mainBundlePath)) { >> // Maven doesn't create a build directory. The WOA bundle goes into the >> target folder instead. >> mainBundlePath = Pat

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
project's WOA bundle. Maven, however, puts the >>> generated WOA bundle in the target folder. I'm afraid the application >>> initialization code keeps looking for the build folder when you run your >>> tests with Maven. >>> >>> I'm not sure if t

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
nd the Properties file of your >>>> project in the wrong place. >>>> >>>> When you build your project in Eclipse with WOLips, it generates a build >>>> folder containing your project's WOA bundle. Maven, however, puts the >>>>

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
on mentioned above. >>>> >>>> With regards, >>>> -- >>>> Dennis >>>> >>>> >>>>> On 23. Jan 2020, at 02:28, Henrique Prange via Webobjects-dev >>>>> mailto:webobjects-dev@lists.apple.com&

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
gt; target directory, create a fresh new bundle and run your tests on your >>>>> fresh bundle with the solution mentioned above. >>>>> >>>>> With regards, >>>>> -- >>>>> Dennis >>>>> >>>>> &

ERFoundation question

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
I want to put some logging messages in NSBundle.java that resides in ERFoundation.jar but I don’t understand how to do so. It looks like ERFoundation.jar lives inside of ERJars.framework and there is no source? How is that possible? I must be mistaken. AARON ROSENZWEIG / Chat 'n Bike

Re: ERFoundation question

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
> > No, you’re not. There's no source code for the ERFoundation framework. 😕 > > Sent from my iPhone > >> On 23 Jan 2020, at 13:51, Aaron Rosenzweig via Webobjects-dev >> wrote: >> >> I want to put some logging messages in NSBundle.java that res

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
hat what you get with some java version mismatch ?? > >> On Jan 23, 2020, at 11:41 AM, Aaron Rosenzweig via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>> >> wrote: >> >> I tried this call: >> >> NSBundle MYBUNDLE = NSBundle.main

Re: Maven Unit tests with EOF

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
<mailto:aa...@chatnbike.com> t: (301) 956-2319 > On Jan 23, 2020, at 10:52 PM, Chuck Hill wrote: > > That error is definitely a static initializer or block throwing. Nothing > else is output? > > >> On Jan 23, 2020, at 8:41 AM, Aaron Rosenzweig via

Re: Problem running from Eclipse

2020-01-23 Thread Aaron Rosenzweig via Webobjects-dev
Sorry Valerio, 6 weeks is a long time indeed - you’ve been patient. JNI has to do with Java making calls to a C library. That’s the “native method” part. If it were me, I’d trash Eclipse and start over. I know that’s not what you want to hear but… Hmm… thinking some more… “NSCoding” lives

Re: Problem running from Eclipse

2020-01-27 Thread Aaron Rosenzweig via Webobjects-dev
Hey Valerio, That sheds some light… did you upgrade to Catalina or other OS changes? Many people got burned by Catalina moving directories under root to other locations messing up your class path. It’s very possible that your beans were arranged above your frank without you knowing… just by an

Re: Problem running from Eclipse

2020-01-27 Thread Aaron Rosenzweig via Webobjects-dev
Hi Valerio, It’s that the error complained about not finding NSCoding which should be in JavaFoundation. Oh… but you know… there is a WebServerResources version that you do not want. Gotta be sure you got the right jar. You want something like: /Library/WebObjects/Versions/WebObjects543/System

Re: JavaScripts generated programmatically and/or placed at the end

2020-01-27 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, Offhand what you are asking is probably possible; however I have a suggestion to not fight against the grain. If you are using prototype, then wait for the “dom loaded event” like so: http://api.prototypejs.org/dom/document/observe/ jQu

Re: Problem running from Eclipse

2020-01-27 Thread Aaron Rosenzweig via Webobjects-dev
Sweet, Glad you figured it out in the end. AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 > On Jan 27, 2020, at 3:51 PM, Valerio Luccio wrote: > > OK, it seems to a problem with my w

Re: Maven Unit tests with EOF

2020-02-12 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Paul, That’s an insightful reply! If I understand you right you are using the surefire plugin but setting the nature for Maven to find the files? That’s a neat way to do it. I think that nature was there for people who wanted to build with Maven inside of eclipse, but you can use it th

Re: PWA

2020-04-27 Thread Aaron Rosenzweig via Webobjects-dev
Hi Pierre, The critical part is figuring out how to be “offline first” - it’s a mindset - offline is not an error condition. The “sw.js” you mention is a “service worker” which is a means of caching files on the client so you don’t need to speak with the server. The next time you access the w

Re: PWA

2020-04-28 Thread Aaron Rosenzweig via Webobjects-dev
Hi Pierre, PWA can be PIA until we gain our footing :-) To be clear for us, and anyone late to the party, when you say “DA and PWA” what you mean is: “I want to vend a progressive-web-app from a WebObjects DirectAction” No, I have not done that before. I’m not sure why you want to do that but

Re: background tasks locked, workers run all right

2020-05-21 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, It looks like you are mixing a couple things. If you are going to use Kieran’s code (I believe it was him initially) you should use it fully and have a healthy number of coordinators. I say that because his code does round robin and there is a chance that two threads get the same coordi

Re: background tasks locked, workers run all right

2020-05-21 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, Given that you like the idea of making a new coordinator / cursor for each of these tasks - my recommendation is to do it but then don’t lock the EC. Nothing else is using it right? You’ve guaranteed it by starting a new thread and a new coordinator, so don’t lock it. You can get into a

Re: is there a trick to know that a property of EO did change?

2020-05-24 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, Could you override the setter of that property? If it was “firstName” could you create “setFirstName()” which calls super and then does the additional logic you desire? AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (3

Re: Sign in with apple?

2020-05-31 Thread Aaron Rosenzweig via Webobjects-dev
It’s a good question Jesse. Seems more people these days are paying a small fee to people who have perfect solutions we can use immediately. Auth0 and Okta come to mind but there are a plethora of choices. https://auth0.com/blog/try-sign-in-with-apple-in-your-auth0-apps-today/

Re: Sign in with apple?

2020-06-01 Thread Aaron Rosenzweig via Webobjects-dev
You make a good point Ray - about using a password-less system - and you can do that with Auth0 and Okta too: https://auth0.com/docs/connections/passwordless https://www.okta.com/passwordless-authentication/

Re: Entity/attribute/relationship terrible toString?

2020-06-02 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, Yeah we missed your point. We gave you advice about the EO but not the relationships. Generally I don’t have logging coming out about relationships nor the object graph. I suppose you’ll have to look at what is generating those logs and have some sort of preprocessor that does somethin

Re: Chat Bot Framework ?

2020-06-04 Thread Aaron Rosenzweig via Webobjects-dev
A lifetime ago I had worked on an open-source java chatbot. It was based on prior work and I made new files to give it a persona named “Charlie” I have not kept up with any recent developments but at the time I used the JAR and it was embedded in my WO app so it was easy in that sense. One th

Re: data source for “static” objects?

2020-06-07 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, I suppose you could move your java POJOs into a .jar and then expose them with a java app running on a particular port that masquerades as a DB endpoint. I’m not sure it’s worth the trouble but it could be done. This would be the “my DB in a box” solution where you essentially make trimm

WO with docker and kubernetes

2020-06-07 Thread Aaron Rosenzweig via Webobjects-dev
Has anyone used WO with containers and orchestration tools such as docker and kubernetes? If so, how’d you like it? I ran into an issue last week and have started deep diving into this realm thinking it might be a smart play especially since kubernetes appears to have won the crown for being t

Re: GID for deleted objects

2020-06-15 Thread Aaron Rosenzweig via Webobjects-dev
“mightDelete()” to remember “didDelete()” to act AARON ROSENZWEIG / Chat 'n Bike e: aa...@chatnbike.com t: (301) 956-2319 > On Jun 15, 2020, at 6:14 AM, OCsite via Webobjects-dev > wrote: > > Hi there, > > I'

Re: Creating a EOModel in code

2020-06-26 Thread Aaron Rosenzweig via Webobjects-dev
Hi Don, Have a look at EOEntity and friends: EOAttribute, EORelationship. You can build them out and setup the “external” name for the column, etc. I did it once as an exercise many moons ago. The only practical use I got out of it was sometimes sanity checking keyPaths to see if they hit thin

Re: Strange null pointer error

2020-06-26 Thread Aaron Rosenzweig via Webobjects-dev
Hi Michael, It’s an interesting problem with at first blush seems impossible but on second pass, looks plausible. That is clearly Wonder code so you can trace it and debug it. The line number 125 of ERXDatabaseContext.java is likely very accurate. Stepping through (mentally) I concur that th

Re: Looks like an OSC must be disposed manually?!? (was: background tasks locked, workers run all right)

2020-06-29 Thread Aaron Rosenzweig via Webobjects-dev
OSC is a cursor to the DB. They aren’t particularly cheap to acquire. As far as I know, they live until you dispose of them. They don’t automatically dispose. They are not cheap like an editingContext. One OSC can service a plethora of editingContexts. Simple WOApps have two OSC for the life of

Re: Looks like an OSC must be disposed manually?!? (was: background tasks locked, workers run all right)

2020-06-29 Thread Aaron Rosenzweig via Webobjects-dev
If other things depend on that OSC, then disposing it would be bad. If it is an OSC you made to do work in a long running task and then disposed at the end of that task, it would be good to dispose it… or… to keep it in an OSC pool and check it back into that pool. They aren’t cheap. AARON ROSE

Re: Is it normal that ulimit hangs a thread instead of raising an exception or something like that?

2020-06-29 Thread Aaron Rosenzweig via Webobjects-dev
Seems “normal” in the sense that it is trying to connect but it cannot. Creating an OSC makes a cursor to the DB which usually ends up being a file on disk and can run into ulimits. At some point, maybe, resources will be relinquished so it keeps waiting. You can: 1) Find out if your cursors

Re: given WOLips is being discussed...

2020-07-04 Thread Aaron Rosenzweig via Webobjects-dev
Thanks OC for sharing your experience and your code for the EOModeler on OSX. (I realize that is jvanek’s link; however, it was you who cobbled together the first version). Eclipse does two things well: 1) Refactoring 2) Cross platform (Macs, PCs, Linux - mixed environment) I use Eclipse today

How often do you bounce your apps?

2020-08-04 Thread Aaron Rosenzweig via Webobjects-dev
Personally I feel better bouncing my .woa instances daily. Even if it is a small site I have at least two instances and I gracefully cycle them on a daily schedule. I feel better knowing that it is fresh every morning for the new day. On the other hand, I could see an argument that a java app s

Re: How often do you bounce your apps?

2020-08-07 Thread Aaron Rosenzweig via Webobjects-dev
AVA VM and set memory stuff from JavaMonitor to keep things sane. >>>>>> >>>>>> >>>>>> >>>>>>> On Aug 5, 2020, at 3:35 AM, Jérémy DE ROYER via Webobjects-dev >>>>>>> >>>>>> &l

Re: How often do you bounce your apps?

2020-08-08 Thread Aaron Rosenzweig via Webobjects-dev
ponents. But that is another story. > > And back to the original question: I do not bounce apps either, had even an > application that ran without problems > 2 years in one go. > > Johann > > >> Am 08.08.2020 um 04:27 schrieb Aaron Rosenzweig via Webobjects-dev >&g

Re: How to Manually edit SiteConfig.xml

2020-08-25 Thread Aaron Rosenzweig via Webobjects-dev
On a related note, I’m wondering how many people have ditched the Apple DevOps tools and started managing their .woa instances with Kubernetes containers? Would that solve some of what Bob is wanting to do and maybe also be more robust and flexible? AARON ROSENZWEIG / Chat 'n Bike

Re: How to Manually edit SiteConfig.xml

2020-10-01 Thread Aaron Rosenzweig via Webobjects-dev
w to do it by searching WebObjects Docker > > rentzsch/docker-webobjects > alextu/wodocker <https://github.com/alextu/wodocker> > > Both of these will help you get started but you will have to build your own > Docker recipe to match your configuration. > > Thanks, &g

Idle in transaction

2020-12-14 Thread Aaron Rosenzweig via Webobjects-dev
Has anyone dealt with SQL statements that linger and get stuck “idle in transaction” ? We started looking carefully at our WO app and Postgres data store. We discovered that it wasn’t vacuuming because of these hung statements. Turns out it appears to be deep into WO, when we do fetches somet

Re: Idle in transaction

2020-12-14 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Paul for the sanity check :-) > On Dec 14, 2020, at 4:54 PM, Paul Hoadley wrote: > > Hi Aaron, > > On 15 Dec 2020, at 07:59, Aaron Rosenzweig via Webobjects-dev > mailto:webobjects-dev@lists.apple.com>> > wrote: > >> Anyone have any thoughts or e

Re: Idle in transaction

2020-12-15 Thread Aaron Rosenzweig via Webobjects-dev
only moderate load), > but on your sql query I DO get some result rows. Did no yet have time for > further analysis > > Regards, Markus > >> Am 14.12.2020 um 22:29 schrieb Aaron Rosenzweig via Webobjects-dev >> mailto:webobjects-dev@lists.apple.com>>: >> &g

Re: Single thread creation queue?

2021-11-22 Thread Aaron Rosenzweig via Webobjects-dev
Hi Jesse, What about SQL level “unique” and “check” constraints? > On Nov 22, 2021, at 8:34 AM, Jesse Tayler via Webobjects-dev > wrote: > > I asked on slack but I figured I’d ping the list > > Who has a good way to ensure a serial EO creation queue when the system could > be hit really fa

Re: Single thread creation queue?

2021-11-22 Thread Aaron Rosenzweig via Webobjects-dev
Sounds like you are using Postgres? You can use the syntax “not valid” when you create a constraint to stop the bleeding immediately. It will then only check for new and modified records allowing the bad rows to co-exist. When you get around to it, you can remove the duplicates. If it’s anoth

Re: Log4j Vulnerability

2021-12-27 Thread Aaron Rosenzweig via Webobjects-dev
Should we upgrade the Wonder jars to v2.16? I realize they are currently on v1.x which isn’t affected by the latest stirrings on the inter webs but maybe this is a good time to move it forward? v1.x has a small number of vulnerabilities of its own, though most people aren’t affected by them e

Re: com.webobjects.foundation.NSTimeZone ... exception

2022-01-07 Thread Aaron Rosenzweig via Webobjects-dev
Try adding: JVMOptions --add-exports java.base/sun.security.action=ALL-UNNAMED And look at similar discussions about this. After java 1.8 they went module happy but Apple stuff doesn’t abide. In other words, Apple jars don’t have named modules. So you need to set things to ignore that. > O

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

2022-01-09 Thread Aaron Rosenzweig via Webobjects-dev
OC, your idea will work, but here’s another to consider. Make an interface for user objects, call it “UserInterface” You are now free to have multiple types of user objects that all implement a common interface. You can make your current User implement the interface and now make a brand new Us

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

2022-02-14 Thread Aaron Rosenzweig via Webobjects-dev
Hi OC, That’s called the object to relational impedance mismatch. The qualifier works in memory but fails when you try to invoke with SQL. To get around it, you can use an ERXExistsQualifier for your to-one relationship. Typically you use this with to-many relationships but it actually can wo

Re: [Proposal] Drop Wonder's Ant Build

2022-06-28 Thread Aaron Rosenzweig via Webobjects-dev
It’s not a completely different issue is it? If anyone builds Wonder as part of their CI/CD and is currently using ANT, they will need to switch to Maven going forward. While we wish everyone who makes changes to Wonder would make pull requests to integrate them but that doesn’t always happen.

Re: [Proposal] Drop Wonder's Ant Build

2022-06-29 Thread Aaron Rosenzweig via Webobjects-dev
radle > natures. Someone would have to write that I think. It's probably not a small > project. > > From: Aaron Rosenzweig via Webobjects-dev <mailto:webobjects-dev@lists.apple.com>> > Sent: Tuesday, June 28, 2022 6:12 PM > To: WebObjects-Dev List <mailto:webobjects

Re: WebObjects Docker Deployment

2022-08-14 Thread Aaron Rosenzweig via Webobjects-dev
Thank you Oleksii for taking the time to write up an excellent blog post. I skimmed it just now but I absolutely love how you crafted a story from the beginnings, of how we did deployments along with the why/how up to today with using Docker and why you did that. It sure would be nice to do it

Java 17? Half or Full?

2022-12-10 Thread Aaron Rosenzweig via Webobjects-dev
This is both a topic for both pure NeXT/Apple WO as well as a WOnder. Your WO deployments, are they on Java 17? Are they half or full Java 17? Please chime in. In our case, at present, we are developing and deploying on a Java 17 VM but using Java 1.8 (version 8) compliance. I call this “Java

Re: Java 17? Half or Full?

2022-12-11 Thread Aaron Rosenzweig via Webobjects-dev
ts could be updated to Java-Module-Format (As > > long as all the other depencies of them are also in Module-Format) > > > > But be aware of licence-restrictions: The WebObjects-Jars are > > distributed with the WebObjects-Licence. The licence states that it is > > n

Re: ERXBetweenQualifier evaluateWithObject() does not work with key paths

2022-12-21 Thread Aaron Rosenzweig via Webobjects-dev
Thank you Ricardo! > On Dec 21, 2022, at 6:03 PM, Ricardo Parada via Webobjects-dev > wrote: > > Hi all, > > I ran into a bug trying to use ERXBetweenQualifier’s evaluateWithObject() to > evaluate the qualifier against an object in memory when the key is a key > path. > > I created a pull

Re: Exception within EOModeler

2023-01-08 Thread Aaron Rosenzweig via Webobjects-dev
Thank you Ralf and Ramsey :-) Wonderful way to start the new year :-) > On Jan 8, 2023, at 6:34 PM, Ramsey Gurley via Webobjects-dev > wrote: > > This is fixed now thanks to some contributions from Ralf Schuchardt. The > WOLips_master build is successful and it seems to work as expected under

Re: Exception within EOModeler

2023-01-09 Thread Aaron Rosenzweig via Webobjects-dev
I’m a poet and didn’t know it :-) > On Jan 9, 2023, at 1:36 AM, Ramsey Gurley > wrote: > > >Wonderful way > > I see what you did there :) > From: Aaron Rosenzweig > Sent: Monday, January 9, 2023 12:31 PM > To: Ramsey Gurley > Cc: André Rothe ; Paul Yu ; > Webobjects-dev > Subject: Re: Exce

Re: Own Instance number

2023-03-01 Thread Aaron Rosenzweig via Webobjects-dev
Hi André, You can try: context.request.applicationNumber In other words once you have the WORequest you can get the application number from that. If you don’t have the WORequest handy, maybe you can get the WOContext (like from a WOComponent) and then get the request. Cheers, — Aaron > On

Re: Deployment Ubuntu 22.04

2023-10-02 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Tim, that’s a nice writeup :-) > On Oct 1, 2023, at 4:26 AM, D Tim Cummings via Webobjects-dev > wrote: > > I have deployed to ubuntu 22.04. I have added the steps I used to wocommunity > wiki > > https://wiki.wocommunity.org/display/documentation/Deploying+on+Ubuntu+22.04 > > Tim >

wildcard search - how to escape asterisk?

2023-10-12 Thread Aaron Rosenzweig via Webobjects-dev
Hi all, We can do a case insensitive like with EOF for *blue* on a text field (to find “blue” at the beginning, middle, or end of a field) But what if we want to find an asterisk anywhere in a text field? How do we do a case insensitive like looking for an asterisk anywhere in the text? Is thi

Re: wildcard search - how to escape asterisk?

2023-10-13 Thread Aaron Rosenzweig via Webobjects-dev
named” (a NeXT engineer). Cheers, — Aaron > On Oct 12, 2023, at 12:52 PM, Michael Kondratov > wrote: > > I think you can pass it as a variable to a fetch specification. > > > Sent from my iPhone > >> On Oct 12, 2023, at 10:45, Aaron Rosenzweig via Webobjects-dev

Re: Replay request

2023-11-10 Thread Aaron Rosenzweig via Webobjects-dev
Hi André, I didn’t fully understand but it sounds like maybe you are working too hard. It’s easier to hold onto WOComponents than it is to hold onto contexts. If you have an “old page” hold onto it and just return the page. If you don’t have the outermost page you can find that quickly by doing

Re: AjaxAutoComplete

2023-11-11 Thread Aaron Rosenzweig via Webobjects-dev
That’s clever Samuel. Using the components as building blocks to piggy back from each other. Bravo :-) > On Nov 11, 2023, at 5:12 PM, Samuel Pelletier via Webobjects-dev > wrote: > > Hi, > > I managed to achieve your goal in my apps using this pattern : > - Create a submit js function u

Re: Replay request

2023-11-11 Thread Aaron Rosenzweig via Webobjects-dev
Hi André, At step 3 can you store a variable that remembers the page the user intends to go to? maybe you can make an enum with all the possible pages they could go to on the next step and the variable would be one of those values. Then, in 7b, you can reference that variable and create the

Re: Replay request

2023-11-14 Thread Aaron Rosenzweig via Webobjects-dev
Excellent André, Glad you found an alternate way than trying to replay requests which would be brittle if you could get it to work. Your new way is much better with the lambdas. It’s basically blocks (like in Smalltalk) that you can execute when you want. Javascript does this quite a bit to wi

Re: loooong saveChanges prep-stage

2024-01-31 Thread Aaron Rosenzweig via Webobjects-dev
Check your "willUpdate()" logic and similar things such as "didUpdate()". It may be doing lots of calculations in certain situations that is almost but not quite an infinite loop. On Wed, Jan 31, 2024 at 5:59 AM OCsite via Webobjects-dev < webobjects-dev@lists.apple.com> wrote: > Thanks, guys! >

Thanks Stefan! (mod_proxy)

2024-03-07 Thread Aaron Rosenzweig via Webobjects-dev
Thank you Stefan, Johann, and the community for making the switch from mod_Webobjects.so adaptor to the built-in Apache mod_proxy module. It helped us out this week to dig up Stefan’s 2015 video presentation on this topic, utilize the ERXApplication cookie generation, and the migration tab in

Re: Thanks Stefan! (mod_proxy)

2024-03-08 Thread Aaron Rosenzweig via Webobjects-dev
erformance improvements are huge. So far so good :-) Thanks everyone, — Aaron > On Mar 8, 2024, at 9:15 AM, Michael Schmiedgen wrote: > > > On 3/8/2024 1:55 AM, Aaron Rosenzweig via Webobjects-dev wrote: >> Thank you Stefan, Johann, and the community for making the switch from >>

Re: re/store context somehow? (OCsite)

2024-05-17 Thread Aaron Rosenzweig via Webobjects-dev
Your best bet is likely to store the entire WOComponent as an ivar in the session. You can get it from context().page() That way wen they return and the session is still alive you can return that ivar to render where they were and what they were doing. So you’ll need to store it in the session

Re: WOAjaxCollapsibleComponentContent ???

2024-06-23 Thread Aaron Rosenzweig via Webobjects-dev
Hi Markus, To use like you envision you need to add some scaffolding. Realize that the ajax link and the ajax submit button can be given a named function. When you do that, they don’t render, put provide a name you can call on the client side that will do a round trip to the server. So you n

Re: WOAjaxCollapsibleComponentContent ???

2024-06-26 Thread Aaron Rosenzweig via Webobjects-dev
Hi Markus :-) Glad that worked out for you. I think there is an AjaxExamples project in WOnder which is an app you can run and see a few things. You pick up on things after toiling with it for a while. > On Jun 26, 2024, at 7:34 AM, mailinglists wrote: > > Thanks Aaron, works perfectly. >

Maven build - no main bundle name

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
Hi, I’m trying to convert an ANT based webobjects application into a Maven build. At the moment It’s building in Eclipse without errors but when I try to launch within the Eclipse environment I get errors due to not finding the main bundle. Specifically the following call inside of ERXApplicat

Re: Maven build - no main bundle name

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
Markus > >> Am 29.07.2024 um 17:49 schrieb Aaron Rosenzweig via Webobjects-dev >> : >> >> Hi, >> >> I’m trying to convert an ANT based webobjects application into a Maven >> build. At the moment It’s building in Eclipse without errors but when I try

Re: Maven build - no main bundle name

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
on, >> >> I did the very thing just recently without any problems >> >> does the maven build run outside eclipse (standalone)? So does the problem >> occur only when started from eclipse? >> >> Regards >> Markus >> >>> Am 29.07.2024 um 1

Re: Maven build - no main bundle name

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
t...@junidas.de>> wrote: >>>> >>>> Hi Aaron, >>>> >>>> I did the very thing just recently without any problems >>>> >>>> does the maven build run outside eclipse (standalone)? So does the problem >>>> occur

Re: Maven build - no main bundle name

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
haven’t tried it with Maven. It’s an interesting idea >>>> to try if I can figure it out. Maybe it will show a difference that leads >>>> to discovery. >>>> >>>>> On Jul 29, 2024, at 11:58 AM, Markus Stoll, junidas GmbH >>>>> mailt

Re: Maven build - no main bundle name

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
>>>>>> On Jul 29, 2024, at 12:02 PM, Aaron Rosenzweig >>>>> <mailto:aa...@chatnbike.com>> wrote: >>>>>> >>>>>> Hi Markus thanks for the quick reply! >>>>>> >>>>>> Good question, I don’t

Summary: modern maven requires secure HTTPS

2024-07-29 Thread Aaron Rosenzweig via Webobjects-dev
I haven’t figured out all my ant -> maven conversion issues but wanted to summarize one finding. Newer maven installations require HTTPS (with an “S” for “secure”) for your connections to things such as the wocommunity repos. It wasn’t always this way and following community tutorials you mig

Advisory: Eclipse bundless builds + maven = no está bien

2024-07-30 Thread Aaron Rosenzweig via Webobjects-dev
Do you know there is a concept of “bundless builds” ? It works with ANT but not with Maven. If you try to use bundless builds with Maven you’ll get runtime errors when launching via Eclipse related to “null” for "NSProperties._mainBundleName()” I've been using Eclipse bundless builds for a ver

Properties file not loading

2024-07-30 Thread Aaron Rosenzweig via Webobjects-dev
Anyone struggle with app not finding properties files when launching from Eclipse? I’m still trying to go form ANT -> Maven and there is a shared framework with a properties file in it that I want to be pulled into various apps. Curiously, app “A” is able to pull in the properties just fine b

Re: Properties file not loading

2024-07-31 Thread Aaron Rosenzweig via Webobjects-dev
webobjects-app/src/main/resources/archetype-resources/pom.xml> > > > From: Aaron Rosenzweig via Webobjects-dev > Sent: Tuesday, July 30, 2024 5:34 PM > To: WebObjects-Dev List > Subject: Properties file not loading > > Anyone struggle with app not finding properties

Solved: Properties file not loading

2024-07-31 Thread Aaron Rosenzweig via Webobjects-dev
WOLips. See lines 52-70 here, >> https://github.com/nullterminated/woarchetypes/blob/master/webobjects-app/src/main/resources/archetype-resources/pom.xml >> >> <https://github.com/nullterminated/woarchetypes/blob/master/webobjects-app/src/main/resources/archetype-resou

Re: awake-time long lags

2024-08-01 Thread Aaron Rosenzweig via Webobjects-dev
How is your RAM headspace? Is it possible you are running out of runway? Maybe it’s doing lots of garbage collection. > On Aug 1, 2024, at 8:32 PM, ocs--- via Webobjects-dev > wrote: > > Hi there, > > we are encountering another weird problem: a (very) long lag awake-time. > > We happen to

Re: overlapping R/Rs in same session

2024-08-20 Thread Aaron Rosenzweig via Webobjects-dev
Sounds like maybe your session is in the URL? What if you put the session in a cookie? Then it’s not possible to have multiple tabs in the same browser. The last tab wins. > On Aug 19, 2024, at 9:25 AM, ocs--- via Webobjects-dev > wrote: > > Hi there, > > looks like the main cause of those

Re: overlapping R/Rs in same session

2024-08-21 Thread Aaron Rosenzweig via Webobjects-dev
If you open a second tab, using cookies, they are shared. If you continue doing more than 30 actions or so in the second tab, and then later try to do 1 action in the first tab, it will break. The first tab will try to do something but the page is out of the backtrack cache already. Last tab

Re: Custom EOQualifier

2024-08-30 Thread Aaron Rosenzweig via Webobjects-dev
I agree with Xavier. Try it and see how it goes. You should be able to use the existing qualifier and it will work. Here’s a summary of things to try: 1) QualifierOperatorCaseInsensitiveLike - it should work. 2) Derived attribute - you can do “upper” in a derived attribute and then in java u

Re: WOLips development

2024-11-05 Thread Aaron Rosenzweig via Webobjects-dev
Thanks Ramsey, I used jprofiler once and it was useful but I would not be sad if we dropped it from Webobjects. Today I use visualvm which is a free standalone tool that comes with most java installations and provides good profiling. I never used jrebel. For those that aren’t familiar, if you

Re: JavaMemoryAdaptor not loading

2024-11-01 Thread Aaron Rosenzweig via Webobjects-dev
Hi Ramsey, I’ve never used the in-memory adaptor. That said, if I understand you correctly you are saying the source file has the correct info.plist file but when it gets built, it has the wrong one. In the very short term you could re-zip the correct file and place in your .m2/repository I

Re: Java 11

2024-11-29 Thread Aaron Rosenzweig via Webobjects-dev
Hi Michael, We’ve been running Java 17 for a while now. I’ve heard others run Java 21. The main issue is the lack of modules and newer java requires modules for scope. You’ll need to add the following VM arguments both in Eclipse and also in the launch script of your .woa VM Arguments: --add

Re: WOLips5 new update url

2024-11-28 Thread Aaron Rosenzweig via Webobjects-dev
Thank you Ramsey. So much to be thankful for this time of year. I tried your new WOLips v5 using the update site url with Eclipse 2024-09 for enterprise and web developers. Works great :-) I can launch apps, use entity modeler, and the component editor. > On Nov 26, 2024, at 7:49 PM, Ramse

  1   2   >