----- Original Message -----
From: "Torsten Curdt" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 3:23 AM
Subject: RE: SchemoX forms

> > > To give everyone a heads up, I am now working on Java API for
> > > XML Schema and Schematron validation of JavaBeans, which can
> > > be easily used in the Action classes. The end goal is for
> > > these APIs to be merged with Torsten's code.
>
> hm... maybe I should commit what I already have into scratchpad although?
> this way we could better share the code... but actually I don't like to
> present something that's not yet ready (completely) working...
>
> what do you guys think?

Yes, please.
Berin's code on CallBackHandlers isn't quite working either, but it's a good
guidance to the people that'll share work.

> > > imagine code similar to:
> > >
> > > SchamatronValidator sv = new
> > > SchematronValidator("my-schema-report.xml");
> > > sv.setXmlBinder( SomeCastorWrapper );
> > > sv.setPhase("loginPhase"); ValidationResult vresult =
> > > sv.validate(myJavaBean); if (vresult.isEmpty() )
> > >   move on to db insert
> > >   objectMap.setAttribut("validationSuccess", Boolean.TRUE); else
> > >   {
> > >   objectMap.setAttribut("validationSucces", Boolean.FALSE);
> > >   session.setAttribute("validationResult", vresult);
> > >   }
>
> After rethinking the whole stuff I have to admit I don't like the
> phase concept :(
>
> For SoC the phases should *not* be in the preceptor. The preceptor should
> not have to change if you move a textbox from one view into another.
> That's not a clean approach...

Ok, what's your suggestion. Now is the time to discuss changes in design.

What do others think?


Ivelin



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to