Re: Error Array Problem
Re: Error Array Problem
- Subject: Re: Error Array Problem
- From: Chuck Hill <email@hidden>
- Date: Thu, 16 Jun 2005 11:27:24 -0700
How are you accessing the array? It gets confusing who the "parent" is
with WOComponentContent. If you always use context().page() to access
the top level page (to store and retrieve the errors) you may avoid
problems with recording the errors in one component and attempting to
read them from another.
Chuck
On Jun 15, 2005, at 7:23 PM, WebObjects Lover wrote:
Hi,
I want to be able to keep an error array around in
memory so that any of my components that have
validation/save changes errors can insert messages
into this array and the errors are displayed if they
exist. Currently I have an abstract subclass of
WOComponent as the superclass for all of my components
and that's where the errors array is declared as an
instance variable. I'd like to have my wrapper page
that contains a WOComponentContent have a
WOConditional in it that checks for errors and
displays them. The problem that's occurring is that
when I catch a the validation exception that occurs
from one of my components and insert a message in
errors array the errors array gets cleared out and my
WOConditional in the page wrapper doesn't get tripped.
I realize this is might a be synchronizing bindings
issue but perhaps someone that's solved this problem
before can offer their advice...
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
village.net
This email sent to email@hidden
--
Practical WebObjects - a book for intermediate WebObjects developers
who want to increase their overall knowledge of WebObjects, or those
who are trying to solve specific application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden