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
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.:
c:url var=viewurl
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
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 [mailto:[EMAIL
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 post that didn'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:
s:radio list=%{options} name=questionOne theme=simple /
Where 'options' is a HashMapInteger, String
What I get out on the JSP is one
options = new ArrayListRadioModel();
(then added the relevant values)
Then used this in the JSP:
s:radio list=%{options} listKey=name listValue=answer
name=question theme=simple /
Et voila.
-Original Message-
From: Dean Pullen [mailto:[EMAIL PROTECTED]
Sent: 30 August 2007 16:48
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.
will 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
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
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
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 - key
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 [mailto
.
/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
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]
Sent: 09
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 for me, I sincerely hope someone can
help.
Dean.
-Original Message
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?
/Ian
Dean Pullen
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 for me, I sincerely hope someone can
help
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 = hello)
public String getQuestion1Option
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 en_GB prior
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 any other ideas. The exception
is quite explicit
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 2.0.9 regarding
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 find out what's wrong and report
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've found
What's the best way to get localized text in a tooltip?
s:select list=countries
listKey=key
listValue=value.countryName
multiple=true
required=true
value=%{myCountry}
theme=simple
tooltip=loclaized.tooltip.here
/
Cheers.
multiple=true
required=true value=%{myCountry} theme=simple
tooltip=%{getText('loclaized.tooltip.here')} /
Julien
-Message d'origine-
De : Dean Pullen [mailto:[EMAIL PROTECTED]
Envoyé : jeudi 11 octobre 2007 15:32
À : Struts Users Mailing List
Objet : Localized text in a tooltip
What's
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?
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 in the JSP.
Anyone know the resolution
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: dojo
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 validation errors
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,
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
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:
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
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 dean.pul...@msp-uk.com
wrote:
Hi all,
We've been trying to get
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 dean.pul...@msp-uk.com
wrote:
Nils-H,
Thanks for the reply.
I've looked
, 2009 at 7:00 PM, Dean Pullen dean.pul...@msp-uk.com
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 a redirect - it's absolutely fine if you
it will narrow down
the problem.
Nils-H
On Mon, Feb 9, 2009 at 7:00 PM, Dean Pullen dean.pul...@msp-uk.com
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
-
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 lost.
We've
found.
musachy
On Mon, Feb 9, 2009 at 3:49 PM, Nils-Helge Garli Hegvik
nil...@gmail.com 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 Pullen dean.pul
40 matches
Mail list logo