Re: [Idea] Add ability for decorator pattern in Actions

2013-07-16 Thread Christian Grobmeier
Also very neat. As far as I know, struts is using a pre-1 version of Guice internally. Upgrading it to a recent version is do-able, but costs a lot of time. Also this might be a great challenge for the Struts Hackathon. I also would like to point to http://onami.apache.org which might an addition

Re: [Idea] Add ability for decorator pattern in Actions

2013-07-16 Thread Ken McWilliams
If we use Guice for DI we get its AOP features too? Not sure what Guice offers for AOP but a before method point cut should allow you to return what ever you want while preventing the method from actually doing anything. Trick would be how to expose that... http://code.google.com/p/google-guice/wik

Re: [Idea] Add ability for decorator pattern in Actions

2013-07-16 Thread Christian Grobmeier
Oh yeah. I forgot about it. Great link, thanks. Maybe a challenge for Struts 3 or the upcoming Struts Hackathon? On Tue, Jul 16, 2013 at 9:35 PM, Paul Benedict wrote: > If the decorator pattern is to supported in Struts, I vote it should be > based on JEE 6 Interceptor. > http://docs.oracle.com/j

Re: [Idea] Add ability for decorator pattern in Actions

2013-07-16 Thread Paul Benedict
If the decorator pattern is to supported in Struts, I vote it should be based on JEE 6 Interceptor. http://docs.oracle.com/javaee/6/tutorial/doc/gkeed.html Paul On Tue, Jul 16, 2013 at 2:30 PM, Christian Grobmeier wrote: > Hi, > > On Fri, Jul 12, 2013 at 11:42 AM, Miguel Almeida > wrote: > > I

Re: [Idea] Add ability for decorator pattern in Actions

2013-07-16 Thread Christian Grobmeier
Hi, On Fri, Jul 12, 2013 at 11:42 AM, Miguel Almeida wrote: > I'd like to discuss with you an idea that came up a while ago while > trying to fulfil this need: > > As a developer > I want to unit test annotations in my actions without having to run the > method's body > So that I can TDD more eff

Re: Creating Your Own Struts 2 Theme No Longer Works?

2013-07-16 Thread Lukasz Lenart
2013/7/16 [email protected] : > Thank you for looking at this issue. > > I removed the theme attribute from the form tag. But when I add the theme > attribute to the s:checkboxList tag I now get this error: It must be there, with xhtml theme, only must use KUtheme theme > Error reading included

Jenkins build is back to normal : Struts2-JDK6 #756

2013-07-16 Thread Apache Jenkins Server
See - To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

Build failed in Jenkins: Struts2-JDK6 #755

2013-07-16 Thread Apache Jenkins Server
See Changes: [bphillips] NOJIRA - Added JavaDoc for enum -- [...truncated 3863 lines...] Jul 16, 2013 4:08:43 PM com.opensymphony.xwork2.config.providers.XmlConfigurationProvider info INFO: Parsing

[ANN] Struts 2.3.15.1 GA (fast track | security | critical)

2013-07-16 Thread Rene Gielen
The Apache Struts group is pleased to announce that Struts 2.3.15.1 is available as a "General Availability" release. The GA designation is our highest quality grade. Apache Struts 2 is an elegant, extensible framework for creating enterprise-ready Java web applications. The framework is designed

RE: Creating Your Own Struts 2 Theme No Longer Works?

2013-07-16 Thread Martin Gainty
The webapp (Struts) CL is *supposed to reference the resources from the jar loaded by the webapp first* ..can you confirm templateDir=template theme=KUThemeI noticed com.opensymphony.xwork2.util.URLUtil TestCase references all resources relatively located off a jar with a trailing bang so as to b

Re: Creating Your Own Struts 2 Theme No Longer Works?

2013-07-16 Thread [email protected]
Thank you for looking at this issue. I removed the theme attribute from the form tag. But when I add the theme attribute to the s:checkboxList tag I now get this error: Error reading included file template/KUTheme/controlheader.ftl The problematic instruction: -- ==> include "/${paramet

Re: Not calling ParameterNameAware.acceptableParameterName when implemented - since xwork 2.3.7

2013-07-16 Thread Rene Gielen
Am 13.07.13 22:38, schrieb Przemysław Celej: > Hi, > > [...] > > Please consider writing "version notes" more carefully when you doing > such changes, I'm sure that most developers who rely on > ParameterNameAware inteface doesn't know that in recent versions of > Struts this behaviour has change

Re: [Idea] Add ability for decorator pattern in Actions

2013-07-16 Thread Lukasz Lenart
2013/7/12 Miguel Almeida : > I'd like to discuss with you an idea that came up a while ago while > trying to fulfil this need: > > As a developer > I want to unit test annotations in my actions without having to run the > method's body > So that I can TDD more effectively and have quicker unit test

Re: Not calling ParameterNameAware.acceptableParameterName when implemented - since xwork 2.3.7

2013-07-16 Thread Lukasz Lenart
2013/7/13 Przemysław Celej : > Hi, > > Recently we had to update Struts2 to most recent version due to security > issues. After update we've noticed some strange behaviour, in my > application every action implements ParameterNameAware interface, till > yesterday I thought that interface's method a

Re: Theme support

2013-07-16 Thread Lukasz Lenart
If there be no objections, I will change all ${parameters.theme} to hardcoded value - but I don't know how thus will affect users :\ 2013/7/16 Lukasz Lenart : > Hi, > > I have been digging into Theme support in S2 and have some doubts. > First of all to use a new theme globally (via struts.ui.them

Theme support

2013-07-16 Thread Lukasz Lenart
Hi, I have been digging into Theme support in S2 and have some doubts. First of all to use a new theme globally (via struts.ui.theme property), theme must implement all the tags - thus can be simple solved by copping parent's files into new theme. It's because many tags uses ${parameters.theme} wh

Re: Creating Your Own Struts 2 Theme No Longer Works?

2013-07-16 Thread Lukasz Lenart
2013/7/15 [email protected] : > I'm updating the themes tutorial > (http://struts.apache.org/release/2.3.x/docs/struts-2-themes.html) but > cannot get my example application to work using the latest version of Struts > 2. > > The example application is at > http://code.google.com/p/struts2-examples/