The job of an EOEditingContext (EC) in WebObjects is to manage an object graph of EOEnterpriseObjects (EOs). Think of it as a sandbox that your EOs live in. Any changes made to those EOs – attributes changed, relationships created or destroyed, EOs added or deleted – are tracked by the EC and committed to the [...]
Advanced WOComponent API Validation
WebObjects WOComponents are comprised of two files and a bundle. For example a WOComponent named “MyComponent” would have a bundle called MyComponent.wo, a Java file called MyComponent.java, and an API file called MyComponent.api.
Usually the majority of your time is spent editing the content of the .wo bundle and adding logic to the .java file. But [...]
WOLips Cheat Sheet
Download it here. I’ve updated it a couple of times with suggestions, but if its still missing anything obvious let me know in the comments.
Connection Dictionary Twiddling – Part 2
I wrote about using Project Wonder’s ERXConfigurationManager to ‘twiddle’ your model connection dictionary settings here.
I only listed the global properties, but there are per model properties as well. Unfortunately the JDBC settings are not very well documented. So, to google index my brain, here are my notes: Most of the heavy lifting is done by [...]
Just a few of my favorite things…
Project Wonder is chocked so full of WebObjects goodness that it is hard to envision developing a project without it. Here are three bits that I use all the time.
Autolocking EditingContexts
Step one: Learn WebObjects
Step two: Realize that using the session().defaultEditingContext() exclusively is bad.
Step three: Start using multiple EOEditingContexts.
Step four: Read, re-read, then read again the [...]