WebObjects Tips
 
 
 
Tuesday, May 30, 2006
Don’t Use LoadBalancing
The settings for the WebObjects adaptor have this very temptingly named distribution method called “load balancing”.
Don’t use it. Use round-robin, its simple, and it works. If you have multiple
 
 
Thursday, May 25, 2006
Awake/Sleep? No, accessors+reset
Instead of using awake and sleep, consider lazily building things in your accessors, making your components stateless, and using reset instead.
 
 
Wednesday, May 24, 2006
Single-Object Pages
90% of your pages could be built with a URL of just the page name and the primary key of a root object. That is:
/cgi-bin/WebObjects/MyApp.woa/wa/MyPage?pkey=12
Write code to grab a single object
 
 
Wednesday, May 24, 2006
Base Classes are DRY
If you have a common base class that for all your components, pages, ajax actions, and EOF objects, you can keep from repeating yourself.
You’ll want your base component class to inherit from
 
 
Wednesday, May 24, 2006
Passing Through Bindings
If you have a component that manually pulls its values out of the bindings, if you have a ^ in front of a value name in a .wod file, that tells webobjects to look for that value in the bindings
 
 
Welcome!
This is just a collection of tips about WebObjects I post as they occur to me.
About Me You can contact me via pierce@twinforces.com