Althought I'm a struts user, WW2 features seem to be very exciting, so i'm
testing WW2 for my next project.
For the while, i'm writing a simple project in order to explore the WW2
features, and i'm rather impressed by your work.
However I've some questions :

1/ We can use only ui tags from velocity (Renderer interface), do you plan
quicky to support the other tags (URLTag , ...) ?

2/ ValidationInterceptor controls fields from the Action, but maybe it would
be nice to control http form parameters. Why i say that, it's because of the
following example :
public MyAction extends ActionSupport
{
        private MyBean myBean = new myBean();
        public MyBean getMyBean()
        {...}
...
}

public MyBean
{
        private java.util.Date myDate;
...
}

HTML form
#bodyTag( Form ... )
#tag( TextField "label=date" "name=myBean.myDate" value="myBean.myDate" )
...

If I want to validate that the string parameter sent by the form submission
is a real date, how can i do with the validation framework ?
With my own localized dateConverter (xwork-conversion.properties), i would
transform a bad string value in a (Date)null.
And with the definition of MyAction-validation.xml, I just could control
that the field is required. So a bad string value for my date would be
blocked but for a bad reason.
That's why, I wonder if we could apply a validation to a different
object/context, http parameters or action, it would be very flexible. We
could create specific validator to control , for instance, a string
represent a date.

3/ Dont you think the struts concept of ActionMessage is a good idea, a
low-cost dev effort to store easyly a message (possibly localized) at the
end of a action to inform the user in the view ("creation successful" ,...).

I've got a ton of other remarks but I let you digest ;-)

WebWork2 will be a great web application framework.
R.H.



-------------------------------------------------------
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