Re: [appfuse-user] Validator - generated JavaScript - function names don't match

2008-04-25 Thread Matt Raible
Are you saying that client-side validation throws an error? Which web framework and version of AppFuse are you using? Does it work on the demo site? Matt On Fri, Apr 25, 2008 at 7:57 AM, Robert Campbell <[EMAIL PROTECTED]> wrote: > I can't believe I'm the only one encountering this, so I probably

[appfuse-user] Validator - generated JavaScript - function names don't match

2008-04-25 Thread Robert Campbell
I can't believe I'm the only one encountering this, so I probably am doing something competely wrong. I have server-side validation working perfectly. I enabled client-side validation by adding this tag: Which does generate the JavaScript validation at runtime. The problem however, is that the f

Re: [appfuse-user] validator

2007-11-15 Thread tibi
i'm not sure. i know its allready in the code base according to this: https://issues.apache.org/struts/browse/WW-2254?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel *Fix Version/s:* 2.1.1

Re: [appfuse-user] validator

2007-11-14 Thread Matt Raible
Coming version as in 2.0.11 or 2.1.0? On Nov 14, 2007 12:43 AM, tibi <[EMAIL PROTECTED]> wrote: > its a struts bug and it is fixed in the comming version. > > but in appfuse 2.0 it is not fixed jet. > > tibi > > > Matt Raible wrote: > > Is this a Struts 2 bug or an AppFuse one? If the template is

Re: [appfuse-user] validator

2007-11-13 Thread tibi
its a struts bug and it is fixed in the comming version. but in appfuse 2.0 it is not fixed jet. tibi Matt Raible wrote: > Is this a Struts 2 bug or an AppFuse one? If the template is in > Struts, you should probably file an issue in Struts' JIRA. > > https://issues.apache.org/struts/secure/Dash

Re: [appfuse-user] validator

2007-11-13 Thread dusty
Its definitely a Struts bug, but the work around of creating your own template to override their broken one could be an Appfuse tip/tutorial! -Dusty mraible wrote: > > Is this a Struts 2 bug or an AppFuse one? If the template is in > Struts, you should probably file an issue in Struts' JIRA. >

Re: [appfuse-user] validator

2007-11-13 Thread Matt Raible
Is this a Struts 2 bug or an AppFuse one? If the template is in Struts, you should probably file an issue in Struts' JIRA. https://issues.apache.org/struts/secure/Dashboard.jspa Matt On 11/13/07, tibi <[EMAIL PROTECTED]> wrote: > found it > > copy the form-close-validate.ftl to your template/xht

Re: [appfuse-user] validator

2007-11-13 Thread tibi
found it copy the form-close-validate.ftl to your template/xhtml dir to overwrite the struts file. and change the int part to: <#elseif validator.validatorType = "int"> if (field.value != null) { if (<#if validator.min?exists>parseInt(field.value) <

Re: [appfuse-user] validator

2007-11-13 Thread tibi
found it in the struts core jar file. tibi tibi wrote: > ok more google: > > i found this: > http://www.nabble.com/-jira--Created%3A-%28WW-2254%29-Stringlength-validator-xhtml-template-should-be-locale-independent-tf4632858.html#a13230279 > > The freemarker template that generates client side val

Re: [appfuse-user] validator

2007-11-13 Thread tibi
ok more google: i found this: http://www.nabble.com/-jira--Created%3A-%28WW-2254%29-Stringlength-validator-xhtml-template-should-be-locale-independent-tf4632858.html#a13230279 The freemarker template that generates client side validation for the xhtml theme (template/xhtml/*form*-*close*-*validat

Re: [appfuse-user] validator

2007-11-13 Thread tibi
this generated js code should it come from the *validation.js?? *and where can i find this file?? thanks, tibi tibi wrote: > hi list, > > i use the struts validator (appfuse 2.0m5 struts hibernate and spring) > > when i want to validate an int i have no problem when the int is between > 0 and 9

[appfuse-user] validator

2007-11-13 Thread tibi
hi list, i use the struts validator (appfuse 2.0m5 struts hibernate and spring) when i want to validate an int i have no problem when the int is between 0 and 999 but when i go over 1000 the javascript generates a code like this: // field name: subscriber.user.lastName // validator name

Re: [appfuse-user] Validator masks ignored

2007-09-19 Thread gederer
Apparently, the 'mask' rules are applied only if all of the 'required' rules pass. I guess that's OK ;) Greg gederer wrote: > > Hi, > > I've noticed that the masks (e.g., the 'zip' mask for postalCode) in the > signup form don't produce errors in the JavaScript validation errors > dialog. An

[appfuse-user] Validator masks ignored

2007-09-18 Thread gederer
Hi, I've noticed that the masks (e.g., the 'zip' mask for postalCode) in the signup form don't produce errors in the JavaScript validation errors dialog. Any suggestions? Thanks! Greg -- View this message in context: http://www.nabble.com/Validator-masks-ignored-tf4477228s2369.html#a12766458

Re: [appfuse-user] Validator and access to *.properties

2007-06-19 Thread Matt Raible
You should be able to use Spring IoC to inject the messageSource bean into your validator and grab the message from there. Matt On 6/19/07, pat79 <[EMAIL PROTECTED]> wrote: Hi there, i have a custom validator for uploading files checking the max size of a file: public class ImageUploadValida

[appfuse-user] Validator and access to *.properties

2007-06-19 Thread pat79
Hi there, i have a custom validator for uploading files checking the max size of a file: public class ImageUploadValidator implements Validator { public void validate(Object obj, Errors errors) { UploadCommand cmd = (UploadCommand) obj; /* filesize < 5MB

Re: [appfuse-user] Validator error: does not support command class [com....model.User]

2006-11-28 Thread thinkboy
thanks matt, I got my problem solved. it has something to do with validation.xml. ar.. I might mistype somethings which I am not sure. I just revert to non-exception stage and redo all over step by step. :-P just FYI, in my new Service.java model. I do have /** * @spring.validator type="

Re: [appfuse-user] Validator error: does not support command class [com....model.User]

2006-11-28 Thread Matt Raible
Did you add getters and setters for this service as well? If so, you probably need to remove the @spring.validator from the set method. Matt On 11/28/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote: hi, i always got this validator error. the only thing I changed is to add a new Set of Service cl

[appfuse-user] Validator error: does not support command class [com....model.User]

2006-11-28 Thread Man-Chi Leung
hi, i always got this validator error. the only thing I changed is to add a new Set of Service class as field to User.java: protected Set services = new HashSet(); // required sorry that, I am not an expert in Spring. pls advise ~thinkboy ==exception=== [platform] INFO [http-8080-Pr