://www.innovated.dk www.innovated.dk
>
> -----
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>
>
--
View this message in context:
ht
completely unintentional side effect."
> -- Linus Torvalds
>
>
>
--
View this message in context:
http://www.nabble.com/Struts-2-Portlet-Validation-Problems-tp21917888p21939287.html
Sent from the Struts - User mailing list archive at Nabble.com.
-
Here is the ticket Nils:
https://issues.apache.org/struts/browse/WW-2987
musachy
On Tue, Feb 10, 2009 at 12:24 AM, Torsten Krah
wrote:
> Am Montag, 9. Februar 2009 21:48:33 schrieb Nils-Helge Garli Hegvik:
>> This should be handled by the default portlet interceptor stack. If it
>> doesn't, it'
Am Montag, 9. Februar 2009 21:48:33 schrieb Nils-Helge Garli Hegvik:
> This should be handled by the default portlet interceptor stack. If it
> doesn't, it's a bug...
Its a bug i guess, i need to use a Message Store Interceptor too, because
using PRG in portlets i lost my messages and errors alwa
No problem, will do - in the morning!
Thanks.
-Original Message-
From: Musachy Barroso [mailto:musa...@gmail.com]
Sent: 09 February 2009 20:51
To: Struts Users Mailing List
Subject: Re: Struts 2 Portlet Validation Problems
You can reopen the one I closed, and add any extra info you
I also added a ${title}, for each relevant
>> param, to the input redirectAction to ensure the user's input was not
>> lost during the failed validation redirect.
>>
>> -Original Message-
>> From: Dean Pullen [mailto:dean.pul...@msp-uk.com]
>> Sent:
n Pullen [mailto:dean.pul...@msp-uk.com]
> Sent: 09 February 2009 19:31
> To: Struts Users Mailing List
> Subject: RE: Struts 2 Portlet Validation Problems
>
> I've tried, and reverted back for now, to using the
> MessageStoreInterceptor with no success, the messages
>> result will 'lose' the messages during the dispatch.
>>
>> Dean.
>>
>> -Original Message-
>> From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com]
>> Sent: 09 February 2009 18:07
>> To: Struts Users Mailing List
>> Subjec
ge-
From: Dean Pullen [mailto:dean.pul...@msp-uk.com]
Sent: 09 February 2009 19:31
To: Struts Users Mailing List
Subject: RE: Struts 2 Portlet Validation Problems
I've tried, and reverted back for now, to using the
MessageStoreInterceptor with no success, the messages are still los
hy Barroso [mailto:musa...@gmail.com]
Sent: 09 February 2009 19:19
To: Struts Users Mailing List
Subject: Re: Struts 2 Portlet Validation Problems
Messages will be lost if a redirectAction is used, unless the
MessageStoreInterceptor is used, or is that different in portlets
Nils?
musachy
On Mon, Feb 9, 20
7
> To: Struts Users Mailing List
> Subject: Re: Struts 2 Portlet Validation Problems
>
> Yeah, you're right... It's not using annotations. Have you tried with
> xml validation? It's not a solution, but at least it will narrow down
> the problem.
>
> Nils-H
>
mailto:nil...@gmail.com]
Sent: 09 February 2009 18:07
To: Struts Users Mailing List
Subject: Re: Struts 2 Portlet Validation Problems
Yeah, you're right... It's not using annotations. Have you tried with
xml validation? It's not a solution, but at least it will narrow down
the proble
rtlet Validation Problems
Yeah, you're right... It's not using annotations. Have you tried with
xml validation? It's not a solution, but at least it will narrow down
the problem.
Nils-H
On Mon, Feb 9, 2009 at 7:00 PM, Dean Pullen
wrote:
> Nils-H,
>
> Thanks for the reply.
>
>
> -Original Message-
> From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com]
> Sent: 09 February 2009 17:57
> To: Struts Users Mailing List
> Subject: Re: Struts 2 Portlet Validation Problems
>
> Have you tried installing the portlet sample app? I believe there are
>
P result.
Dean.
-Original Message-
From: Nils-Helge Garli Hegvik [mailto:nil...@gmail.com]
Sent: 09 February 2009 17:57
To: Struts Users Mailing List
Subject: Re: Struts 2 Portlet Validation Problems
Have you tried installing the portlet sample app? I believe there are
a couple of validation
Have you tried installing the portlet sample app? I believe there are
a couple of validation scenarios there. As far as I know, it should
work. You shouldn't even need the MessageStoreInterceptor, since the
portlet default stack should handle preserving messages across
redirects.
Nils-H
On Mon, F
Hi all,
We've been trying to get validation (using annotations) working within a
Struts Portlet for a couple of days - without success, when the input is
a redirectAction.
When the input result is a JSP, it works fine. We're using the
messageStoreInterceptor.
We're using JBoss Portal 2.7.1
t;)
>> @RequiredFieldValidator(message = "Some error text", shortCircuit=true)
>>
>> and that is the same, get both errors..
>>
>> I don't have any idea what to do, maybe I have misunderstood the
>> Struts2 validation c
Conversion errors are added to the list of field errors by the
"conversionError" interceptor.
Personally, I almost always remove the "conversionError" as the
conversion error messages aren't necessarily helpful, and are sometimes
redundant--your mileage may vary.
But that's why you get both
Hi All
I have some problems with field validation in Struts2, I am not the
most experienced in Struts2.
I have a form looking something like this:
..
In my acrion class I have something looking like:
@RequiredFieldValidator(message = "Some error text", shortCircuit=true)
public In
I'm using commons-validator 1.3.1 with Struts 1.3.8 and 1.3.9. In short,
the jcv_retrieveFormName function returns nothing, so other functions
that try to use it end up with errors looking up for variables (well
functions) like "_required" when they should look for formnameOrId_required.
I'v
il.profiling.UtilTimerStack.profile(UtilTimerStack.java:455)
com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:221)
--
View this message in context:
http://www.nabble.com/Struts-2-%2B-Xwork-validation-problems-tf4104770.html#a11673570
Sent from the Struts - User
lto:[EMAIL PROTECTED]
Sent: 23 April 2007 13:17
To: user@struts.apache.org
Subject: Struts Validation Problems
Hi,
I have some problems with using the following regular expression in the
validation f
Hi,
I have some problems with using the following regular expression in the
validation framework from Struts.
mask
^\w{2}-\w{6}(-\w{2
Oren Livne wrote:
P.S. An important fact I forgot to mention: my VO is persisted to a
database using Hibernate. Hibernate wraps this
object with its own type. Is it possible that the type conversion
(String -> int) is not working properly because
Hibernate's wrapper gets in the way? I did a si
l" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Saturday, March 03, 2007 6:50 PM
Subject: Re: Two Struts validation problems
> Chris is right, the zero occurs in the java.lang.Integer(String)
> constructor when it is passed a non-numeric string value. You
P.S. An important fact I forgot to mention: my VO is persisted to a
database using Hibernate. Hibernate wraps this
object with its own type. Is it possible that the type conversion
(String -> int) is not working properly because
Hibernate's wrapper gets in the way? I did a simple test of copying
Dear Laurie & Christopher:
Great! Thanks. I'm using Strings now in my form. But as I wrote to Ed,
suppose I validated the form and would like to copy all properties to a
VO (value object) / DTO with one call (e.g. copyProperties()). How do I
get it to automatically convert my form String prope
Christopher Schultz wrote:
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oren,
Oren Livne wrote:
Dear Chris:
Yes, other validations are working. For instance, I also have an
"intRange" validation on the same integer field. If I type a letter for
the integer field, it sets it to 0, displays it
Dear Ed:
Thanks so much for your response (all other that replied -- thanks so
much as well!).
For now, I would like to stick to the first solution: ActionForm with
String properties.
I already have VOs and don't mind copying over from the form to the VO
and back.
My last question on this issu
Chris is right, the zero occurs in the java.lang.Integer(String)
constructor when it is passed a non-numeric string value. You would
see this happen in your ActionForm and action class if you weren't
using the validator. The same thing happens with a non-numeric in a
java.lang.Double(String) const
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oren,
Oren Livne wrote:
> Dear Chris:
> Yes, other validations are working. For instance, I also have an
> "intRange" validation on the same integer field. If I type a letter for
> the integer field, it sets it to 0, displays it as 0, and says it's
>
Dear Chris:
Yes, other validations are working. For instance, I also have an
"intRange" validation on the same integer field. If I type a letter for
the integer field, it sets it to 0, displays it as 0, and says it's
outside the permissible range (which happens to be 1-4). No errors on
startup
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Oren,
Oren Livne wrote:
> 1) I have a form property that is an integer. When I set its validation
> rule to "integer", it has no effect.
[snip]
> 2) A "validwhen" test condition seems to be ignored:
Are other validations working? It's possible that
Dear All:
I have two problems with Validator. I'm using Struts 1.3.5, Tomcat 6.0.9
and Java 1.6:
1) I have a form property that is an integer. When I set its validation
rule to "integer", it
has no effect.
- The form field is populated with a zero value even if a letter is
typed in the form
i
)
Regards,
David
-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 1:06 PM
To: Struts Users Mailing List
Subject: Re: Validation problems: again...
yes both of em, I've post a pice of the config file ;)
yes either, both has valid
e-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 12:34 PM
To: Struts Users Mailing List
Subject: Re: Validation problems: again...
Hum, how could the one of them being validated them? If both extend
ActionForm? I gave up from validation plugin, I'm writing my
your log files that might shed some light on this?
Regards,
David
-Original Message-
From: Vinicius Carvalho [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 04, 2006 12:34 PM
To: Struts Users Mailing List
Subject: Re: Validation problems: again...
Hum, how could the one of them being val
Hum, how could the one of them being validated them? If both extend
ActionForm? I gave up from validation plugin, I'm writing my own
validate method, isn't validate called even from ActionForm
subclasses?
Regards
On 7/4/06, Paul Benedict <[EMAIL PROTECTED]> wrote:
You write:
>>Can someone expl
You write:
>>Can someone explain me this? Both form extend ActionForm and both actions
>>extend a common action.
Vinicius, I think you need to refer to my previous email: ActionForm does not
validate. You need to extend from ValidatorActionForm or ValidatorForm. The
first valdiates based on
Well, I've just quit the validation on strtuts (based on
commons-validator). So I've decided to use dumb manual validation.
Well problem is, I still can't get one of my forms to validate!
Here´ my struts-config:
Sandeep,
You can do complex validations in your ActionForm validate method. You
can also still invoke Validator validations by calling super.validate()
in your validation method if you are extending
|org.apache.struts.validator.action.ValidatorForm
I have found that there are many situations
Hi Everyone,
I am using struts validatior to valiate my form on JSP and dont want to take
validation to my Action class.
I have a check box and a text box on my JSP. I want to validate text box to
have 19 characters when check box is not checked and 17 characters when
checkbox is checked.
How s
Hi Everyone,
I am using struts validatior to valiate my form on JSP and dont want to take
validation to my Action class.
I have a check box and a text box on my JSP. I want to validate text box to
have 19 characters when check box is not checked and 17 characters when
checkbox is checked.
How s
Hello,
I don't know what exactly you are doing, whre you are calling the validation
condition.
But still i have a copule of alternative for you, just try. Hope your
problem will be solved. Because i had same problem and i solved that by
applying this teh.
Solution:
Step1. Your actio
Niall:
I took your recommendation and removed the action chaning from my struts
config. I am still not seeing any error text. Here is my new action
mapping:
On 1/27/06, Niall Pemberton <[EMAIL PROTECTED]> wrote
On 1/26/06, Daniel Kies <[EMAIL PROTECTED]> wrote:
> Hello. I am trying to do some standard validations, but I am failing. Any
> ideas why? I know the errors are getting raised as the request is
> forwarding back to the initial page making the request, but the error
> messages are not showing on
t;
> Tom
>
>
>
>
>
> Daniel Kies <[EMAIL PROTECTED]>
> 01/26/2006 04:07 PM
> Please respond to
> "Struts Users Mailing List"
>
>
> To
> Struts Users Mailing List
> cc
>
> Subject
> Validation problems
>
>
>
>
>
>
Dan,
Should you be using"
Tom
Daniel Kies <[EMAIL PROTECTED]>
01/26/2006 04:07 PM
Please respond to
"Struts Users Mailing List"
To
Struts Users Mailing List
cc
Subject
Validation problems
Hello. I am trying to do some standard validations, but I am faili
Hello. I am trying to do some standard validations, but I am failing. Any
ideas why? I know the errors are getting raised as the request is
forwarding back to the initial page making the request, but the error
messages are not showing on the page. Any help is appreciated!
Struts config DynaActi
, April 19, 2005 10:58 AM
To: user@struts.apache.org
Subject: Re: Validation Problems
Thanks for the speedy reply, My time is limited to solve this
particular problem, but I'll definitely look into using
DynaValidatorActionForm. I do have another question though, why would
not
Thanks for the speedy reply, My time is limited to solve this
particular problem, but I'll definitely look into using
DynaValidatorActionForm. I do have another question though, why would
not using DynaValidatorActionForm prevent my code from display the
error back to the jsp? Is there a limitatio
Try using DynaValidatorActionForm...
-Original Message-
From: Andrew Thorell [mailto:[EMAIL PROTECTED]
Sent: Tuesday, April 19, 2005 10:44 AM
To: Struts Mailing List
Subject: Validation Problems
Hey all,
I've been trying for some time now to figure out what my problem is
wi
Hey all,
I've been trying for some time now to figure out what my problem is
with my Validations not displaying error messages back to the page
from where the request came from. It's a simple login page which
pretty much follows Ted's Struts in Action example.
I'm using a Form which extends Valid
54 matches
Mail list logo