Hi Dave,

The action is a Spring bean (implementing 
com.opensymphony.xwork2.Preparable) and the struts.objectFactory constant 
is set to "spring". Is there a way to have Spring use ActionSupport for 
the execution of these classes so that getText becomes available? Also, 
would Struts2 AJAX Themes be affected by this? I'm assuming they would, 
but that the least of my worries since I can always write up my own AJAX 
stuff (albeit less convenient).

And yes, I am in dev mode (struts.devMode=true).

-Diego

Diego Piedrahita
Manager, Web Product Development
Professional/Trade Division
John Wiley & Sons, Inc.
201-748-6872

Wiley Bicentennial: Knowledge for Generations 
1807-2007 



Dave Newton <[EMAIL PROTECTED]> 
09/24/2007 02:33 PM
Please respond to
"Struts Users Mailing List" <user@struts.apache.org>


To
Struts Users Mailing List <user@struts.apache.org>
cc

Subject
Re: Issue using Struts2's i18n interceptor and Spring "actions"






--- [EMAIL PROTECTED] wrote:
> <s:textfield id="firstName"
>              label="%{getText('firstname')}" 
>              name="person.firstName"/>
> 
> And the only thing that comes up is 'firstname' when
> in fact the value should be 'First Name' as it is in

> the appropriate properties file which resides in the

> same package as the action itself.

Does your action subclass ActionSupport (easiest) or
implement TextProvider somehow?

Without a getText() method in the Action there's
nothing for OGNL to call. On a related note, is there
anything in the logs (and are you in devMove)?

d.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to