Hi Gilles, I believe he is saying is that you use temporary variables to store changes in the controls that affect conditionals. Then, by overriding the appendToResponse method you can set the conditional variables to the value of the temporary variables if there was a change. This allows your page to render correctly by setting your conditional variables correctly before the page reloads. For a trivial example: You have a checkbox to toggle editing on the page. Set the selection to the boolean tempEdit variable. You have a conditional below the checkbox that shows if the boolean editMode is true. In appendToResponse you would put the following code: public void appendToResponse(WOResponse aResponse, WOContext aContext) { if (tempEdit!=editMode) { // we have a change editMode = tempEdit; } } (If you have the Practical WebObjects book, it goes into the theory behind this and other alternatives for solving the rendering problems in the chapter on Components and Elements starting on page 187. You'll find the Golden Rule on page 190...) David -- It's like driving a car at night. You never see further than your headlights, but you can make the whole trip that way. E. L. Doctorow from Sunbeams: http://www.thesunmagazine.org On 15 Sep 2006, at 7:12 AM, Gilles MATHURIN wrote:
|
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to archive@mail-archive.com