Stateless Components, Stateful Forms 

Stateless components are a huge win with WebObjects. All of your basic UI components should be stateless. Occasionally, you’ll want to have pages with state, especially forms. That’s fine, just take the extra time with the things you use on every page like navigation bars, etc. 

If you can set all the instance variables of your component to NULL in sleep(), it can be stateless. 


Copyright 2007, Pierce T. Wetter III