getText returning message key

2007-11-15 Thread Dean Pullen
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

Displaytag help in Struts 2

2007-07-05 Thread Dean Pullen
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

File upload messages problem

2007-07-13 Thread Dean Pullen
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

RE: File upload messages problem

2007-07-13 Thread Dean Pullen
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

RE: File upload messages problem

2007-07-14 Thread Dean Pullen
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

Struts 2 Radio button - seperate value/label

2007-08-30 Thread Dean Pullen
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

RE: Struts 2 Radio button - seperate value/label

2007-08-30 Thread Dean Pullen
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

Struts i8n problem in 2.0.9

2007-09-17 Thread Dean Pullen
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.

RE: Struts i8n problem in 2.0.9

2007-09-17 Thread Dean Pullen
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

Validation in showcase examples

2007-09-18 Thread Dean Pullen
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

Validation problem - key not found?

2007-10-09 Thread Dean Pullen
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

RE: Validation problem - key not found?

2007-10-09 Thread Dean Pullen
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

Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
. /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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread 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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-09 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
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

RE: Bug in 2.0.9 regarding validation localization?

2007-10-10 Thread Dean Pullen
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

Localized text in a tooltip

2007-10-11 Thread Dean Pullen
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.

RE: Localized text in a tooltip

2007-10-11 Thread Dean Pullen
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

Error: dojo is not defined

2007-10-11 Thread Dean Pullen
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?

RE: Error: dojo is not defined

2007-10-11 Thread Dean Pullen
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

RE: Error: dojo is not defined

2007-10-11 Thread Dean Pullen
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

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
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

Validation errors in Action

2007-10-12 Thread Dean Pullen
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,

RE: Validation errors in Action

2007-10-12 Thread Dean Pullen
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

RE: S2 : Validation per Action method - ideas?

2007-10-17 Thread Dean Pullen
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:

Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
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

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
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

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
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

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
, 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

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
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

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
- 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

RE: Struts 2 Portlet Validation Problems

2009-02-09 Thread Dean Pullen
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