[ http://jira.andromda.org/browse/BPM-300?page=comments#action_15060 ] 

Jean-Marc Collin commented on BPM-300:
--------------------------------------

I'm not shure I'm understand correctly your proposition, but to my opinion the 
best way is to do the following :
- struts validator should not try to verify plaintext field 
(@andromda.presentation.web.view.field.type=plaintext). The best way to do this 
is certainly to not generate plaintext field in the "WEB-INF/validator.xml" 
file.

If this is not simple, the other solution, is to add conditional statement 
around the javascript generated code. This is done by modifying the 
validator-rules.xml file like done in the one I upload. Of course the first 
solution is the best.

> Date struts validator failed when a datefield is displayed as a textfield
> -------------------------------------------------------------------------
>
>          Key: BPM-300
>          URL: http://jira.andromda.org/browse/BPM-300
>      Project: Bpm4Struts Cartridge
>         Type: Bug

>  Environment: For version 3.3-SNAPSHOT
>     Reporter: Jean-Marc Collin
>     Assignee: Wouter Zoons
>  Attachments: validator-rules.xml
>
> The issue is the following :
> When having a date attribute displayed as a Textfield, the Javascript 
> generated by Andromda (or perhaps by Struts validator) try to verify this 
> field.
> Because this field doesn't exist (only a label is displayed and not an Html 
> input), the Javascript validator fails and no validation are done.
> I didn't find any workaround to make date field displayed as textfield not 
> being verified.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.andromda.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

Reply via email to