Received: by 10.70.71.8 with HTTP; Thu, 6 Oct 2005 13:06:29 -0700 (PDT)
Date: Thu, 6 Oct 2005 13:06:29 -0700
From: Michael Jouravlev <hidden>
Subject: Re: [Stripes-users] [Stripes-User] validation
Content-Type: text/plain; charset=UTF-8; format=flowed
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;
X-Spam-Score: 0.1 (/)
X-Spam-Report: Spam Filtering performed by sourceforge.net.
for more details.
Report problems to http://sf.net/tracker/?func=add&group_id=1&atid=200001
0.0 RCVD_BY_IP Received by mail server with no name
0.0 SF_CHICKENPOX_PERIOD BODY: Text interparsed with .
0.0 SF_CHICKENPOX_MINUS BODY: Text interparsed with -
0.0 SF_CHICKENPOX_AT BODY: Text interparsed with @
0.0 SF_CHICKENPOX_APOSTROPHE BODY: Text interparsed with '
X-Reply-To: Michael Jouravlev <hidden>
List-Id: A list for dicussing building applications with Stripes. <stripes-users.lists.sourceforge.net>
On 10/6/05, Tim Fennell <hidden> wrote:
> I'm not sure I fully understand your objection. Stripes is setup to
> follow the most common flow by default. It seems to me that nine
> times out of ten, if the user didn't enter validly formatted data
> (e.g. inserted abc for a number or date) then I probably want to
> straighten that out before executing an business validation logic.
I don't want common flow and what a user probably wants. I want to be
able to go straight to event handler, and call whataver I want:
binding, validation, create errors, etc.
> The goal being to keep the validate() method simple so that you don't
> have to check for existing errors, or do null-checks on required fields.
> > Right, If I return null, my event handler will not be called. If I
> > return a resolution, my event handler will not be called either. I can
> > call it manually from validation handler. To do that I need to know
> > which handler to call. How can I get this info?
> I don't understand what you mean by this. Are we talking about
> entering things into the browser and triggering events, or about what
> to do after an event is handled? I'd like to be able to answer this
> better, but I get the feeling that I'm missing something important in
> what you're trying to do.
Just what I wrote above: an event calls handler. Just like that.
Immediately. No behind-the-scenes processing. I want to do all the
processing that I need explicitly. The best thing would be a default
execute() method, but you use interfaces and you do not have
execute(), so it is hard to have and to override default processing.
I had enough of default processing with Struts, now I have even worse
situation with Wicket, everything is freaking final. Give me back my
Servlet.service(), but provide me with the default well-structured
code that I can call I I feel or need to. "Framework for unfaithful",
should create one myself ;-)
Could I be more emphatic? :)
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
Stripes-users mailing list