I found a solution and mad an example app.
You can show it here:
https://www.fentool.de/dwr/
The source and description are here:
https://gitlab.com/gpaulab-public/struts-dwr-validate-example
I hope it's useful
Best wishes
Guenter
In a second step Iried to use the DWR-method. The app example is simple.
But using the class DWRValidator break:
Dispatcher du = Dispatcher.getInstance();
The Dispatcher is NULL and I can't find the problem.
Perhaps somebody has a solution?
I think the class "org.apache.struts2.validators.DWRValidator" will not works
so I try another way. I found a solution, maybe we can use it?
I found a good example using dwr here:
https://www.jitendrazaa.com/blog/java/jsp/step-by-step-dwr-application-simple-ajax-in-java/
What is to do:
- for
pon., 25 sty 2021 o 12:38 Guenter Paul
napisał(a):
> DWR valdiation looks fine. Is there any small example? If not, I will try it
> by myself and try to use it. After I would try to use URL- and
> EMail-Validation.
You can check the Showcase app, there should be an example how to use
it. You
DWR valdiation looks fine. Is there any small example? If not, I will try it by
myself and try to use it. After I would try to use URL- and EMail-Validation.
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For
niedz., 17 sty 2021 o 15:18 Guenter Paul
napisał(a):>
> I'm not sure. Perhaps a solution with Ajax is possible?
Maybe we should drop support for Client Side Validation in case of
EmailValidator - just in case of pure JS. The Ajax/DWR valdiation
should be used instead.
I'm not sure. Perhaps a solution with Ajax is possible?
-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org
pt., 15 sty 2021 o 16:21 Guenter Paul
napisał(a):
>
> OK, client validation is a problem, that's true. I don't use it, but yes,
> it's usefull.
>
> I found punycode for that:
> https://github.com/bestiejs/punycode.js
>
> It's MIT-licence, I'm not sure we can use it for standard.
>
> I'm not
OK, client validation is a problem, that's true. I don't use it, but yes, it's
usefull.
I found punycode for that:
https://github.com/bestiejs/punycode.js
It's MIT-licence, I'm not sure we can use it for standard.
I'm not really good in javascript, but I can it to write my own decoder. The
czw., 14 sty 2021 o 16:25 Günter Paul
napisał(a):
>
> In Germany we can use domaine-names like "münchen.de".
> The struts validators URLValidator and EmailIdnValidator can't handle such
> name with umlaut.
> The domaine is valide but not for the validator.
>
> Is it possible to change this
In Germany we can use domaine-names like "münchen.de".
The struts validators URLValidator and EmailIdnValidator can't handle such name
with umlaut.
The domaine is valide but not for the validator.
Is it possible to change this behavior?
I overwrite the classes and it works for me.
But I think
11 matches
Mail list logo