See below

> -----Original Message-----
> From: Fred Lamuette [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, September 24, 2003 11:17 AM
> To: Webwork
> Subject: [OS-webwork] Struts user feedbak
> 
> 
> 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 , ...) ?
> 

I really need to learn more about Velocity so I can answer these
questions better....

I thought the URLTag wasn't needed because it just uses
UrlHelper.buildUrl(), which you can also use from Velocity?

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

The type conversion does this... It validates that your String
represents a Date. I'm not sure (Pat?) how this is logged / added as an
error message (hopefully it would be added as a field error message). 

> 
> 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" ,...).

You can easily add this to a base Action class you use as the parent of
all of your Action classes.

> 
> I've got a ton of other remarks but I let you digest ;-)
> 
> WebWork2 will be a great web application framework.
> R.H.
> 

Thanks,

Jason

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