cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <>
Subject Re: XMLForm & JSF
Date Tue, 08 Apr 2003 20:36:39 GMT
Bruno Dumon wrote:

>On Tue, 2003-04-08 at 21:24, Hunsberger, Peter wrote:
>>Bruno Dumon <> asked:
>>>>be plugged in as well as any other validator.  However, you really 
>>>>don't want to marshal the data to the bean and then unmarshal to 
>>>>XML/SAX just to run the validator?
>Basically, yes.
> * I don't want to code that manually each time, and I don't want to
>write a bean just for that purpose, but let a framework do all this work
>based on a configuration file.
> * and in case the validation is succesful, I don't need to stream back
>to SAX, but then I already have a strongly-typed data structure which
>can be used right away by other Java code.
> * performance-wise, it's certainly not any worse than marshalling it to
>a DOM-tree.
> * and I have a general preference for doing this kind of coding in
>Java. But maybe I haven't seen the light yet, so I'm keeping an eye on
>the alternative approaches.

Mmmh... what you describe here looks a lot like a DynaBean whose dynamic 
properties are configured externally ! And AFAIK both JXPath and Commons 
validator are DynaBean-aware.


Sylvain Wallez                                  Anyware Technologies 
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }

View raw message