Re: Executing action in a new tab?

2009-02-01 Thread Dave Newton
Martin Gainty wrote: a fairly good example is located at http://www.blueskyworkshop.com/topics/JavaScript-Pages/examples/Dojo-Tabs-With-Code.php That opens a new browser tab? Dave - To unsubscribe, e-mail: user-unsubscr...@

RE: Executing action in a new tab?

2009-02-01 Thread Martin Gainty
a fairly good example is located at http://www.blueskyworkshop.com/topics/JavaScript-Pages/examples/Dojo-Tabs-With-Code.phponce you get it working ping me offline to wire into strutsMartin __ Disclaimer and confidentiality note Everything in this e-m

Re: Executing action in a new tab?

2009-02-01 Thread Dave Newton
sd9 wrote: I want the uploading action to be performed on a new page. Which means that when I click the "upload image" link, I want a new browser tab to open, [...] Making a new *tab* open can be problematic; just search the web for "javascript open tab". Not a Struts question, though; that'd

Executing action in a new tab?

2009-02-01 Thread sd9
Hi, I have a form with a submit button which performs an action. On the same form I have link which is supposed to perform another action to upload an image to the server. I want the uploading action to be performed on a new page. Which means that when I click the "upload image" link, I want a n

Re: persisting data across different form

2009-02-01 Thread overtakerx
Hi I was told that I can use html:hidden to pass the data between the two forms, however after searching around I couldn't find an example on how to do it, anyone has any idea how to do it or whether it is possible ? Paweł Wielgus wrote: > > Hi, > first consider one common form for this two

Re: [S2] s:action in value stack?

2009-02-01 Thread Wolfgang Knauf
Hi Musachy, Musachy Barroso wrote: what does prints in the action result? musachy On Thu, Jan 29, 2009 at 5:53 PM, Wolfgang Knauf wrote: Musachy Barroso wrote: Yes, during the result of the invoked action, the invoked action will be on the top of the stack, but it is available "by name" in

Re: RE: [S2] Race condition in SpringObjectFactory class loader

2009-02-01 Thread David Erickson
Yeah I keep the xwork jar local to my app in the web-inf/lib folder, and verified repeatedly that my work directory was clean.. but no dice. Does anyone know of a way to instrument the classloader to output the class its defining and where from? I still believe it is some underlying race condition

Re: How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
Great attitude yours :-) I'll explain my (simplified) case... I am migrating a struts1 content manager to struts2; maybe I still stick to struts1 concepts but... imagine there are several articles in the users screen. They might be written in different languages; an article language is set in a p

Re: How to change locale inside an Action method

2009-02-01 Thread Wes Wannemacher
On Sunday 01 February 2009 12:10:00 Ignacio de Córdoba wrote: > OK. Thanks again... after reading some other docs I'll be doing: > > ActionContext.getContext().setLocale(locale); > session.put(com.opensymphony.xwork2.interceptor.I18nInterceptor.DEFAULT_SES >SION_ATTRIBUTE,locale); session.put(Confi

Re: How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
OK. Thanks again... after reading some other docs I'll be doing: ActionContext.getContext().setLocale(locale); session.put(com.opensymphony.xwork2.interceptor.I18nInterceptor.DEFAULT_SESSION_ATTRIBUTE,locale); session.put(Config.FMT_LOCALE, locale); //Also for JSTL, not only Struts. sessio

Re: How to change locale inside an Action method

2009-02-01 Thread Wes Wannemacher
On Sunday 01 February 2009 12:02:19 Ignacio de Córdoba wrote: > Thanks for your reply, > I had read the i18n docs you refer but still find no info about changing > the session locale inside an Action. > Anyway, after reading the source of the Interceptor, I understand that > doing: > > session.put(

Re: How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
Thanks for your reply, I had read the i18n docs you refer but still find no info about changing the session locale inside an Action. Anyway, after reading the source of the Interceptor, I understand that doing: session.put(i18nInterceptor.DEFAULT_SESSION_ATTRIBUTE,myNewLocale); in my Action shou

RE: How to stop action getting called on click of refresh button

2009-02-01 Thread Andy
I would recommend redirecting to another action/jsp after the form post (PRG pattern). > Date: Sun, 1 Feb 2009 12:55:23 +0530 > Subject: Re: How to stop action getting called on click of refresh button > From: go4m...@gmail.com > To: user@struts.apache.org > > > > > So is there any way to stop

Re: How to change locale inside an Action method

2009-02-01 Thread Wes Wannemacher
On Sunday 01 February 2009 11:11:33 Ignacio de Córdoba wrote: > Hi there, > I've been searching through struts2 docs and old threads here but I've > found no way of changing current locale from inside an action. I know I can > pass a parameter in the request, and maybe other ways to change it... bu

How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
Hi there, I've been searching through struts2 docs and old threads here but I've found no way of changing current locale from inside an action. I know I can pass a parameter in the request, and maybe other ways to change it... but I am looking for a method that allows me to change current locale f