>-----Message d'origine-----
>De : [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED] la part de
>Jason Carreira
>Envoye : mercredi 24 septembre 2003 18:54
>A : [EMAIL PROTECTED]
>Objet : RE: [OS-webwork] Struts user feedbak
>
>
>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?
>

I can use from velocity what is really in the velocity context. So, if
UrlHelper is not in the context, i cant use it.
BUT with the extension of velocity-tools, and particulary the toolbox
manager included in the VelocityView package, you can make any tools
available to the templates. This mechanism is the base for the use of the
struts framework with velocity, where some struts ressources are made
available via the toolbox manager.
Hum, of course the choice of a WebWorkVelocityServlet is understandable for
managing the ww tags, but relying on Velocity Tools is maybe a more stable
choice, or complementary ...


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

That was my question, my converter extends DefaultTypeConverter, but if my
converter is unable to convert, how can i add field error message to WW2 ?
I've got no context attached to WW2.

>
>>
>> 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 agree, it would be just for convenience

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



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