I have updated the example to show how validation works with !
https://github.com/lukaszlenart/struts2-dmi-validation
2013/10/2 Lukasz Lenart :
> 2013/10/1 Néstor Boscán :
>> Sorry I made that change so I could use only login in the form tag to make
>> the validation work.
>
> Ok, but you have Lo
2013/10/1 Néstor Boscán :
> Sorry I made that change so I could use only login in the form tag to make
> the validation work.
Ok, but you have LoginAction-validation.xml which should be applied to
the whole LoginAction - doesn't matter what method do you use. I have
prepared a small example base o
Sorry I made that change so I could use only login in the form tag to make
the validation work.
On Tuesday, October 1, 2013, Lukasz Lenart wrote:
> 2013/9/30 Néstor Boscán :
>>
>
> Why do you use login!login as action login is already defined to use
> login method?
>
> So login.action is the
2013/9/30 Néstor Boscán :
>
Why do you use login!login as action login is already defined to use
login method?
So login.action is the same as login!login.action (just drop .action)
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
--
I have:
struts.xml:
struts-seguridad.xml:
/WEB-INF/jsp/seguridad/login.jsp
/WEB-INF/jsp/seguridad/login.jsp
/WEB-INF/jsp/seguridad/login.jsp
Thanks for the help
On Sun, Sep 22, 2013 at 1:49 PM, Lukasz Lenart wrote:
> Can
Can you post your struts.xml? And you don't have such constant defined
?
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
2013/9/22 Néstor Boscán :
> Yes and it doesn't work. It only works with "login".
>
> Thanks for the help
>
> On Sunday, September 22, 2013, Lukasz Lenart
> wro
Yes and it doesn't work. It only works with "login".
Thanks for the help
On Sunday, September 22, 2013, Lukasz Lenart
wrote:
> 2013/9/22 Néstor Boscán :
>> Hi
>>
>> > validate="true">
>
> Have you tried to use: login!login ? Attribute action expects action
> name, not how it is rendered (i.e
2013/9/22 Néstor Boscán :
> Hi
>
> validate="true">
Have you tried to use: login!login ? Attribute action expects action
name, not how it is rendered (i.e. if you change default action
extension to .html)
Regards
--
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
---
Yes that seems to be the problem. But I have many applications working on
older struts 2 libraries and the dmi + javascript validation worked.
On Sunday, September 22, 2013, JOSE L MARTINEZ-AVIAL
wrote:
> Maybe it is not able to match the action name in the form (with the
!login) with the action
Yes I reenabled DMI but javascript validation is not working when using
DMI. If you use action!method the javascript field validations won't appear.
On Sun, Sep 22, 2013 at 2:47 AM, Chris Pratt wrote:
> I believe one of the recent changes was to change the default to disabling
> DMI, but you can
I believe one of the recent changes was to change the default to disabling
DMI, but you can re-enable it if you understand the risks.
(*Chris*)
On Sat, Sep 21, 2013 at 6:20 PM, Néstor Boscán wrote:
> Hi
>
> validate="true">
>
> cssClass="mystyle1"/>
> cssClass=
Hi
It looks like this version of Struts 2 doesn't like the Dynamic Method
Invocation in login!login.action. If I don't use DMI it works. Older
versions of the framework worked with DMI.
Regards,
Néstor
On Sat, Sep 21, 2013 at 5:24 PM, wrote:
> Can you pr
Hi
Thanks for the help
On Sat, Sep 21, 2013 at 5:24 PM, wrote:
> Can you provide the jsp snipset for the form?
> Sent via BlackBerry from T-Mobile
>
> -Original Message-
> From: Néstor Boscán
> Date: Sat, 21 Sep 2013 16:15:23
> To: Struts Users M
Can you provide the jsp snipset for the form?
Sent via BlackBerry from T-Mobile
-Original Message-
From: Néstor Boscán
Date: Sat, 21 Sep 2013 16:15:23
To: Struts Users Mailing List
Reply-To: "Struts Users Mailing List"
Subject: S2: Not generating javascript validation
Hi
I'm using the
14 matches
Mail list logo