So in a way the type defines it's input mechanism... I think it's
interesting but needs to be fleshed out some more. I don't think that this
neccessarily means that applications would have to be tied to WebWork, but
maybe could even be done with another (!) config file like
PhoneNumber-input.xml that would somehow define the input mechanisms for a
PhoneNumber, and then there could be Person-input.xml that would delegate
work to PhoneNumber.

Interesting idea, but doubtful it'd see the light of day in 2.0, but let's
keep chatting for 2.1 maybe.

-Pat

----- Original Message ----- 
From: "Joseph Ottinger" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, September 22, 2003 5:26 AM
Subject: [OS-webwork] Thought concerning HTML form rendering


> Would it be better to have something like this:
>
> <ww:field name="foo.bar" label="'Bar'" />
>
> instead of
>
> <ww:text name="foo.bar" label="'Bar'" />
>
> Consider: the rendering engine can see that the field is a String, so it
> can generally figure out the rendering type. Maybe String isn't a
> brilliant idea - maybe there's a possibility of creating new types in
> WebWork such that the form can look at the type and say "Gee, this is
> supposed to be a textarea, let's render it that way," or "Gee, this is a
> numeric type, integral, let's generate an input field that doesn't allow
> non-numerics or decimal points," etc.
>
> No, I don't have any code to show off for this, nor am I convinced this is
> a "solution," and in fact, I'm not even sure there's a problem... just
> trying to think in terms of how a user might use this, without having to
> know the destination types. Imagine: a Phone type, or a ZIP, or a State...
> all with custom renderers that don't require anything special on the front
> end... just a reference to the field in question.
>
> -------------------------------------------------------------------
> Joseph B. Ottinger                         http://enigmastation.com
> IT Consultant                                [EMAIL PROTECTED]
> J2EE Editor - Java Developer's Journal   [EMAIL PROTECTED]
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to