Re: Struts annotations limited to specific methods

2013-07-08 Thread Lukasz Lenart
2013/7/2 Paul Benedict : > My first idea was to add an "actions" attribute on the validator > annotations. For example: > > @RequredStringValidator(key="firstName", actions={ "execute", "forward" }) Or maybe method names? But then the same validation could be executed for different actions which m

Re: Struts annotations limited to specific methods

2013-07-02 Thread Paul Benedict
My first idea was to add an "actions" attribute on the validator annotations. For example: @RequredStringValidator(key="firstName", actions={ "execute", "forward" }) Lacking the attribute means all methods, of course. Thoughts? On Tue, Jul 2, 2013 at 1:37 AM, Lukasz Lenart wrote: > 2013/6/29

Re: Struts annotations limited to specific methods

2013-07-01 Thread Lukasz Lenart
2013/6/28 Umesh Awasthi : > I worked quite a bit on JSR 303 validations (Both with Hibernate Validation > as well Apache Bval) and also worked on creating plugin to integrate it > with Struts2, since with version 2.5/3.0 , we are looking to have some > major changes so was wondering if i should wai

Re: Struts annotations limited to specific methods

2013-07-01 Thread Lukasz Lenart
2013/6/29 Paul Benedict : > This is the best proposed solution and I am surprised it didn't become part > of Struts: > https://issues.apache.org/jira/browse/WW-1967 You can do it yourself right away ;-) > We should add another level of XML filename checking to to be > --.xml What about Annotatio

Re: Struts annotations limited to specific methods

2013-06-29 Thread Paul Benedict
This is the best proposed solution and I am surprised it didn't become part of Struts: https://issues.apache.org/jira/browse/WW-1967 We should add another level of XML filename checking to to be --.xml Thoughts? On Fri, Jun 28, 2013 at 10:17 AM, Paul Benedict wrote: > I am glad you're familiar

Re: Struts annotations limited to specific methods

2013-06-28 Thread Paul Benedict
I am glad you're familiar with validation groups -- because that's exactly what I was alluding to. I see the Struts 2 documentation allows me to target validation on a particular method through XML only; Struts 2 simply lacks the annotation counterpart. If today I have to use XML, okay, but just wa

Re: Struts annotations limited to specific methods

2013-06-28 Thread Umesh Awasthi
I worked quite a bit on JSR 303 validations (Both with Hibernate Validation as well Apache Bval) and also worked on creating plugin to integrate it with Struts2, since with version 2.5/3.0 , we are looking to have some major changes so was wondering if i should wait for Struts 2.5/ 3.0. On Fri,

Re: Struts annotations limited to specific methods

2013-06-28 Thread Rene Gielen
This sounds a bit like "inversion of control". As for me, I'd rather not like to have my model (which is to validate) to have knowledge about the business side validation is triggered from. When I develop from the action perpective, I know if the current method is better off triggering validation o

Re: Struts annotations limited to specific methods

2013-06-28 Thread Maurizio Cucchiara
Hi Paul, actually there is one way: using @SkipValidation combined with @Validation Or maybe I miss the point. Is there something better in your approach? On 28 June 2013 05:38, Paul Benedict wrote: > I was thinking it would be a good idea to add "String[] actions" on the > validations. When emp

Re: Struts Annotations Release

2009-08-22 Thread Martin Cooper
On Fri, Aug 21, 2009 at 11:53 AM, Wes Wannemacher wrote: > Before I actually release, I want to make sure that I'm clear on this > one... Martin, you mentioned that if struts-annotations was built > against the unreleased struts-master (version 5) build that we should > hold struts-annotations back

Re: Struts Annotations 1.0.5 Release Vote

2009-08-16 Thread Martin Cooper
On Sun, Aug 16, 2009 at 11:53 AM, Wes Wannemacher wrote: > On Sunday 16 August 2009 02:40:38 pm Martin Cooper wrote: >> On Sun, Aug 16, 2009 at 11:31 AM, Wes Wannemacher wrote: >> > On Sunday 16 August 2009 02:13:26 pm Martin Cooper wrote: >> >> If this was built against a new and unreleased struts

Re: Struts Annotations 1.0.5 Release Vote

2009-08-16 Thread Wes Wannemacher
On Sunday 16 August 2009 02:40:38 pm Martin Cooper wrote: > On Sun, Aug 16, 2009 at 11:31 AM, Wes Wannemacher wrote: > > On Sunday 16 August 2009 02:13:26 pm Martin Cooper wrote: > >> If this was built against a new and unreleased struts-master, then my > >> vote is -1. We need to vote to release t

Re: Struts Annotations 1.0.5 Release Vote

2009-08-16 Thread Martin Cooper
On Sun, Aug 16, 2009 at 11:31 AM, Wes Wannemacher wrote: > On Sunday 16 August 2009 02:13:26 pm Martin Cooper wrote: >> If this was built against a new and unreleased struts-master, then my >> vote is -1. We need to vote to release the new struts-master before we >> can vote on the new struts-annot

Re: Struts Annotations 1.0.5 Release Vote

2009-08-16 Thread Musachy Barroso
That doesn't make any difference or have any impact, I say we keep it. musachy On Sun, Aug 16, 2009 at 11:31 AM, Wes Wannemacher wrote: > On Sunday 16 August 2009 02:13:26 pm Martin Cooper wrote: >> If this was built against a new and unreleased struts-master, then my >> vote is -1. We need to vo

Re: Struts Annotations 1.0.5 Release Vote

2009-08-16 Thread Wes Wannemacher
On Sunday 16 August 2009 02:13:26 pm Martin Cooper wrote: > If this was built against a new and unreleased struts-master, then my > vote is -1. We need to vote to release the new struts-master before we > can vote on the new struts-annotations build. > http://people.apache.org/builds/struts/struts

Re: Struts Annotations 1.0.5 Release Vote

2009-08-16 Thread Martin Cooper
If this was built against a new and unreleased struts-master, then my vote is -1. We need to vote to release the new struts-master before we can vote on the new struts-annotations build. -- Martin Cooper On Wed, Aug 12, 2009 at 10:29 AM, Wes Wannemacher wrote: > The Struts Annotations 1.0.5 test

Re: Struts Annotations 1.0.5 Release Vote

2009-08-12 Thread Rainer Hermanns
+1 GA Cheers, Rainer Von meinem iPhone gesendet Am 12.08.2009 um 19:29 schrieb Wes Wannemacher : The Struts Annotations 1.0.5 test build is now available as a Maven artifact. Functionality was added, but Struts releases do not currently use the new features. The test build is available in

Re: Struts Annotations 1.0.5 Release Vote

2009-08-12 Thread Rene Gielen
+1 GA Wes Wannemacher schrieb: > The Struts Annotations 1.0.5 test build is now available as a Maven > artifact. Functionality was added, but Struts releases do not currently > use the new features. > > The test build is available in the Struts snapshot repository located > here - > > http://peo

Re: Struts Annotations 1.0.5 Release Vote

2009-08-12 Thread Wes Wannemacher
Here is my +1 GA, binding -W On Wed, Aug 12, 2009 at 1:29 PM, Wes Wannemacher wrote: > The Struts Annotations 1.0.5 test build is now available as a Maven > artifact. Functionality was added, but Struts releases do not currently > use the new features. > > The test build is available in the Strut

Re: Struts Annotations 1.0.5 Release Vote

2009-08-12 Thread Musachy Barroso
+1 GA On Wed, Aug 12, 2009 at 10:29 AM, Wes Wannemacher wrote: > The Struts Annotations 1.0.5 test build is now available as a Maven > artifact. Functionality was added, but Struts releases do not currently > use the new features. > > The test build is available in the Struts snapshot repository l

Re: struts-annotations

2007-03-11 Thread Wendy Smoak
On 3/11/07, Martin Cooper <[EMAIL PROTECTED]> wrote: Unless I'm missing something, it's because we want to be able to release some pieces (e.g. plugins) without requiring a corresponding release of 'core'. If a plugin depends on an updated version of struts-annotations (or whatever), it shouldn'

Re: struts-annotations

2007-03-11 Thread Ted Husted
On 3/11/07, Paul Benedict <[EMAIL PROTECTED]> wrote: I believe Don said Plug-ins could be used in other projects... theoretically even Struts 1. So it's technically a separate project with its own build cycle. Unless and until an actual community forms around Struts Annotations and other people

Re: struts-annotations

2007-03-11 Thread Wendy Smoak
On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: > Unfortunately, until we start using Maven to do releases, I don't know what that means. What else would we need to do? Some variation on "mvn release:prepare" and "mvn release:perform" with -P whatever-profiles-struts2-needs and probably a f

Re: struts-annotations

2007-03-11 Thread Paul Benedict
For Struts 2, we decided not to make plugins separate subprojects. Why can't POM, Archetype, and Annotation be on the same build tree with Core and Plugins? I believe Don said Plug-ins could be used in other projects... theoretically even Struts 1. So it's technically a separate project with

Re: struts-annotations

2007-03-11 Thread Ted Husted
On 3/11/07, Martin Cooper <[EMAIL PROTECTED]> wrote: The POM needs to be published to the standard Maven repo, so that it's there as a versioned dependency that can be relied upon by other parts of the project. Do we have multiple parts for Struts 2? We tried subprojects for Struts 1, and ulti

Re: struts-annotations

2007-03-11 Thread Martin Cooper
On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > No one objects to releasing the struts-master pom, and it's the same > > situation. And, I don't understand why we do that either (which is why I've never voted on the Struts pom). The POM

Re: struts-annotations

2007-03-11 Thread Martin Cooper
On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: On 3/11/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: > On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: > > > It's still not clear to me why it needs to be released separately. The > > justification for the archetypes almost makes sense, but creat

Re: struts-annotations

2007-03-11 Thread Ted Husted
On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: > No one objects to releasing the struts-master pom, and it's the same > situation. And, I don't understand why we do that either (which is why I've never voted on the Struts pom). -Ted.

Re: struts-annotations

2007-03-11 Thread Ted Husted
On 3/11/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: > It's still not clear to me why it needs to be released separately. The > justification for the archetypes almost makes sense, but creating a > separate distribution for Struts Annotations still

Re: struts-annotations

2007-03-11 Thread Wendy Smoak
On 3/11/07, Ted Husted <[EMAIL PROTECTED]> wrote: It's still not clear to me why it needs to be released separately. The justification for the archetypes almost makes sense, but creating a separate distribution for Struts Annotations still seems like busy work. No one objects to releasing the

Re: struts-annotations

2007-03-11 Thread Ted Husted
On 3/11/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: By the way, I've been making changes to it that I wouldn't be comfortable getting together with the 2.0 branch. Then maybe we should bump SA to a 1.1.0-SNAPSHOT. Otherwise, things could get sticky if for some reason we need to bring a new S

Re: struts-annotations

2007-03-11 Thread Ted Husted
Jim, if you do find the "discussion", can you please create a wiki page or something for it? It's still not clear to me why it needs to be released separately. The justification for the archetypes almost makes sense, but creating a separate distribution for Struts Annotations still seems like bus

Re: struts-annotations

2007-03-11 Thread Musachy Barroso
By the way, I've been making changes to it that I wouldn't be comfortable getting together with the 2.0 branch. musachy On 3/11/07, Wendy Smoak <[EMAIL PROTECTED]> wrote: On 3/11/07, James Mitchell <[EMAIL PROTECTED]> wrote: > Why is struts-annotations under struts/maven if it is required in

Re: struts-annotations

2007-03-11 Thread Wendy Smoak
On 3/11/07, James Mitchell <[EMAIL PROTECTED]> wrote: Why is struts-annotations under struts/maven if it is required in core and dojo. I'm sure I missed that discussion. Yes. Check the archives. :) It's apparently not Struts 2 specific. Also, like the master pom, it has to be released prior