Jin, thank you very much for your help.
A question based on something you said...

> Your Xform would do basic validation
> ie format/type checking. The business validation of
> the values would be done in Xmaintainence.

I've actually not implemented the validate() method of the
(struts) form (XForm).  In some cases the format and type of
a field requires knowledge of the business logic.  All of the
fields in XForm are strings but do represent other data types.
There is a date field for example.  Should XForm really "know"
that the takenOn field is a date?  Should XForm really "know"
that the takenOn field is required?  I'm not so sure that XForm
should know anything like that.  Maybe it should but what if we
consider a different, more complex, field.  Maybe my XForm needs
to collect a WidgetId field as input.  WidgetIds are very specific
to my business and the format and type of them probably differs
from your WidgetIds.  If I have XForm check the format or type of
the incoming WidgetId then my view component knows a little too
much about my model.

Again, thanks for your help.
Kevin.

__________________________________________________
Do You Yahoo!?
Yahoo! Finance - Get real-time stock quotes
http://finance.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to