cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sylvain Wallez <sylvain.wal...@anyware-tech.com>
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 <bruno@outerthought.org> 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.
>
>Though:
>
> * 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

-- 
Sylvain Wallez                                  Anyware Technologies
http://www.apache.org/~sylvain           http://www.anyware-tech.com
{ XML, Java, Cocoon, OpenSource }*{ Training, Consulting, Projects }



Mime
View raw message