found.
musachy
On Mon, Feb 9, 2009 at 3:49 PM, Nils-Helge Garli Hegvik
wrote:
> That should not be necessary. Could you please register a JIRA issue,
> and if possible, a simple app that can reproduce the issue?
>
> Thanks.
>
> Nils-H
>
> On Mon, Feb 9, 2009 at 9:09 PM, Dean
nd it magically works.
Not sure this is the behaviour we'd expect, or even want - but it
certainly seems to work.
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 Messa
09 at 1:54 PM, Dean Pullen
wrote:
> I can confirm that using validation xml instead of annotations does
> exactly the same thing.
>
> i.e. a forward to a JSP will display the messages, a redirectAction
type
> result will 'lose' the messages during the dispatch.
>
> De
m.
Nils-H
On Mon, Feb 9, 2009 at 7:00 PM, Dean Pullen
wrote:
> Nils-H,
>
> Thanks for the reply.
>
> I've looked at them - none of them actually use the annotations as
such.
>
> It's definitely not working with or without MessageStoreInterceptor
when
> you utilise
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.
>
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, Feb 9, 2009 at 6:33 PM, Dean Pullen
wrote:
> Hi all,
>
>
>
> We'
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
Hi all,
Having a perculiar problem regarding getText() in an action.
It seems to be returning the key, not its value, even though the key
exists.
(Which is odd, as the javadocs say getText returns null if key not
found).
The action is a login action, not sure if that makes any differen
I suspect you should create two action classes for this kind of
validation.
Either that, or over-ride the validation (and don't use the annotations)
using the validation() method.
-Original Message-
From: shan99 [mailto:[EMAIL PROTECTED]
Sent: 17 October 2007 09:27
To: user@struts.apache.
Just stumbled on that as you replied.
Thanks again.
(But not for the pun ;) )
-Original Message-
From: Dave Newton [mailto:[EMAIL PROTECTED]
Sent: 12 October 2007 16:27
To: Struts Users Mailing List
Subject: RE: Validation errors in Action
--- Dean Pullen <[EMAIL PROTECTED]> wrote
in Action
Hello,
Why don't you use the validate() method ?
Julien
-Message d'origine-----
De : Dean Pullen [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 12 octobre 2007 17:13
À : Struts Users Mailing List
Objet : Validation errors in Action
Hi all,
How do you get hold of the val
Hi all,
How do you get hold of the validation errors in an Action?
Basically due to some complexity, we need to manually add an error
within the prepare() method if something isn't correct.
Thanks,
Dean.
-
To unsubscribe, e-mai
It helps if you don't have apache loading all static content.
It was taking the request for .js files and running off with 'em...
;)
-Original Message-----
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 11 October 2007 16:46
To: Struts Users Mailing List
Subject: RE: Error: d
you set theme="ajax" on your head tag? Are the dojo js files
loaded by the browser?
musachy
On 10/11/07, Dean Pullen <[EMAIL PROTECTED]> wrote:
> Ok another one...
>
>
>
> I see the dojo is in the core jar, and the dojo head seems to get
> defined correctly i
Ok another one...
I see the dojo is in the core jar, and the dojo head seems to get
defined correctly in the JSP.
Anyone know the resolution to this issue?
Thanks Julien.
-Original Message-
From: Julien Leonard [mailto:[EMAIL PROTECTED]
Sent: 11 October 2007 14:38
To: 'Struts Users Mailing List'
Subject: RE: Localized text in a tooltip
Hello,
I think that you can try :
Julien
-Message d'origine-
De : Dean
What's the best way to get localized text in a tooltip?
Cheers.
Maybe I simply shouldn't of over-ridden getLocale from ActionSupport...
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 11:51
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding validation localization?
Well well well
I
sue.
-Original Message-----
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 09:06
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding validation localization?
I've just done a very simple test too and it appears to be working.
I'll endeavour to fi
I've just done a very simple test too and it appears to be working.
I'll endeavour to find out what's wrong and report back.
-Original Message-----
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 10 October 2007 08:53
To: Struts Users Mailing List
Subject: RE: Bug in
nterceptor stack?
d.
--- Dean Pullen <[EMAIL PROTECTED]> wrote:
> God, I must of tried everything possible by now.
>
> Has anyone got anytime to package me a working test
> case, to see if
> there's something odd with my application server?
>
> Or does anyone have
o be any recent activity on the
Struts 2 JIRA.
-Original Message-----
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 21:46
To: Struts Users Mailing List
Subject: RE: Bug in 2.0.9 regarding validation localization?
Currently struts.locale=en although I previously had it as
t the TextProvider and
LocaleProvider interfaces?
Also, do you have struts.i18n.reload=true, or are you restarting the app
server after each modification?
/Ian
Dean Pullen wrote:
> Just to refresh, we now have:
>
> @RequiredStringValidator(message = "hello", key =
w that it works with package.properties. Have you tried using
a key without a period?
/Ian
Dean Pullen wrote:
> Even adding a package.properties or even a className.properties (where
> className is my Action class name) doesn't resolve the problem.
>
> This is a huge sticking point
-Original Message-
From: Ian Roughley [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 09, 2007 4:00 PM
To: Struts Users Mailing List
Subject: Re: Bug in 2.0.9 regarding validation localization?
Now I know that it works with package.properties. Have you tried using
a key without a period?
/I
key without a period?
/Ian
Dean Pullen wrote:
> Even adding a package.properties or even a className.properties (where
> className is my Action class name) doesn't resolve the problem.
>
> This is a huge sticking point for me, I sincerely hope someone can
help.
>
> Dean.
&g
Even adding a package.properties or even a className.properties (where
className is my Action class name) doesn't resolve the problem.
This is a huge sticking point for me, I sincerely hope someone can help.
Dean.
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sen
Mailing List
Subject: Re: Bug in 2.0.9 regarding validation localization?
I can confirm that it works. Do you have the struts-messages.properties
defined as an additional properties file in struts.xml? This is not a
standard property file name that is picked up by default.
/Ian
Dean Pullen wrote
Further to my message below,
com.opensymphony.xwork2.util.LocalizedTextUtil.createMissesKey() method
hasn't been implemented until 2.0.8.
Can anyone confirm that they have localized validation working, as
below, with 2.0.9?
Thanks,
Dean.
-Original Message-
From: Dean Pullen [m
I've tried adding a package.properties with the same key but nothing
seems to help - I still seem to get the same exception.
Anyone?
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 09 October 2007 18:08
To: Struts Users Mailing List
Subject: Validation problem
Hi all.
Trying to do this:
@RequiredStringValidator(message = "Hello", key = "Hello.key")
public String getQuestion1Option()
{
return question1Option;
}
But receiving this error on submission of the action:
[09 Oct 2007 17:54:46] ERROR
org.apache.catalina.core.ContainerBas
Not sure what your feelings are, but I've noticed the showcase
application example uses the commons validator for validation.
Would it make more sense for the validation (what little there is in
that app) to be changed to use the Xworks validator, considering this is
what the Struts 2 documentatio
pick up the relevant locale file.
Not sure why this has suddenly occurred, but might be worth noting if
you see similar issues.
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 17 September 2007 09:03
To: Struts Users Mailing List
Subject: Struts i8n problem in 2.0.9
Has anyone seen any internationalization problems in the 2.0.9 release?
I had a dozen or so languages working fine, then recently noticed it's
been broken since I've upgrade from 2.0.8.
- Everything seems to be defaulting to French...
Dean.
= new ArrayList();
(then added the relevant values)
Then used this in the JSP:
Et voila.
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 30 August 2007 16:48
To: user@struts.apache.org
Subject: Struts 2 Radio button - seperate value/label
Hi guys.
I can't
Hi guys.
I can't work out via the Struts 2 documentation how to make a radio
button have a separate value and label from a given Map.
I'm trying:
Where 'options' is a HashMap
What I get out on the JSP is one radio button only, with the following
text as the label:
{1=Yes, 2=No, 3
ll me what error you are facing.
Regards
Deepak Kumar
http://www.roseindia.net
-Original Message-----
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: Friday, July 13, 2007 9:16 PM
To: user@struts.apache.org
Subject: File upload messages problem
I have a similar problem to a previous
The person who had the original problem was kind enough to help.
Added "struts.custom.i18n.resources=struts-messages" into
struts.properties and added a struts-messages.properties file, placed
the key/value pairs in there. Works fine.
-Original Message-----
From: Dean Pullen [mai
I have a similar problem to a previous post that didn't get any replies.
I'll relist it for quick reference:
The documentation on the page File Upload Interceptor
(http://struts.apache.org/2.x/docs/file-upload-interceptor.html)
indicates that the error messages are currently set to defaults
Hi all.
The 'Exposing framework objects to JSTL, with a JSTL and DisplayTag
Example' from here:
http://struts.apache.org/2.0.8/docs/exposing-framework-objects-to-jstl-w
ith-a-jstl-and-displaytag-example.html uses JSTL etc to display a URL
within a displaytag table.
e.g.:
Now
40 matches
Mail list logo