Re: [ANNOUNCEMENT] Struts2-JSR303-Validation-Plugin available

2013-10-28 Thread umeshawasthi
Plugin work only with underlying bean validator and does not take in to account 
struts2 validation.

Beside I believe that JSR303 in itself will be able to handle all use cases.

 we can merge struts2 validation and JSR303 validation results in future 
release.
Sent from BlackBerry® on Airtel

-Original Message-
From: "bphill...@ku.edu" 
Date: Mon, 28 Oct 2013 06:43:56 
To: 
Reply-To: "Struts Users Mailing List" 
Subject: Re: [ANNOUNCEMENT] Struts2-JSR303-Validation-Plugin available

Umesh:

Does the JSR303 Validation Plugin work with Struts 2 XML validation?

In my example project the validation plugin is working but the XML
validation I have is not being executed.

See:  http://www.stfm.org/test/jsr303_validation.zip 

Besides the validation annotations applied to the model class - I also
have XML validation setup (regex to check format of the phone number and
OGNL expression to ensure the that at least one car model is checked).  The
model class annotations are being enforced but not the XML validations.

Bruce

 



--
View this message in context: 
http://struts.1045723.n5.nabble.com/ANNOUNCEMENT-Struts2-JSR303-Validation-Plugin-available-tp5714414p5714464.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


Re: [ANNOUNCEMENT] Struts2-JSR303-Validation-Plugin available

2013-10-28 Thread bphill...@ku.edu
Umesh:

Does the JSR303 Validation Plugin work with Struts 2 XML validation?

In my example project the validation plugin is working but the XML
validation I have is not being executed.

See:  http://www.stfm.org/test/jsr303_validation.zip 

Besides the validation annotations applied to the model class - I also
have XML validation setup (regex to check format of the phone number and
OGNL expression to ensure the that at least one car model is checked).  The
model class annotations are being enforced but not the XML validations.

Bruce

 



--
View this message in context: 
http://struts.1045723.n5.nabble.com/ANNOUNCEMENT-Struts2-JSR303-Validation-Plugin-available-tp5714414p5714464.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Skip evaluation of ${...} and %{...} in TextParseUtil

2013-10-28 Thread Umesh Awasthi
Hi Chris,

I have not tried this but it seems not that feasible to me.
This is going to be used in plugin and that means forcing plugin user to
follow these instructions which IMHO is not good way to go..

Any other idea ??  :(

Thanks
Umesh




On Mon, Oct 28, 2013 at 9:34 AM, Chris Pratt wrote:

> Have you tried escaping the string?  You might try \${min} or possibly
> \\\${min} (since the Properties object may unescape once).
>   (*Chris*)
>
>
> On Sun, Oct 27, 2013 at 9:55 AM, Umesh Awasthi  >wrote:
>
> > Oh, that was my typo and yes message indeed contain $.
> > Issue here is how bean Validation is working.
> >
> > My problem is, when TextParseUtil is on to action, i do not have values
> for
> > ${min} and ${max}, so i can not pass these values as parameter to
> > TextParseUtil.
> >
> > And when message being passed back to plugin, these placeholders are
> > already parsed and i have no control over it.
> >
> > In order to fetch values for ${min} and ${max} from underlying bean
> > validation API, i need these placeholder names (min,max) as BeanValidator
> > hold these values in a Map with {min} and {max} as keys.
> >
> > I am not sure if custom TextParseUtil will work for me as it might create
> > issue with application which actually need to parse those messages.
> >
> > I do not want to reinvent everything from start as Struts2  is doing all
> > work as expected except this part ;)
> >
> >
> >
> >
> > On Sun, Oct 27, 2013 at 10:15 PM, Lukasz Lenart  > >wrote:
> >
> > > 2013/10/27 Umesh Awasthi :
> > > >> Are you sure? There is no opening chars (either $ or %)...
> > > >>
> > > > Not sure what does this mean?
> > >
> > > it supposed to be like this: Please provide a valid mobile number
> > > between ${min} and ${max}
> > >
> > > And then TextParseUtil will parse the placeholders.
> > >
> > > >> You can implement your own TextParser.
> > > >>
> > > > Seems like this is only way to go :(
> > >
> > > I'm not sure if it's the right way anyway - as you want to have a
> > > parser that doesn't parse ;-) Maybe something else has to be changed,
> > > on some other level.
> > >
> > >
> > > Regards
> > > --
> > > Łukasz
> > > + 48 606 323 122 http://www.lenart.org.pl/
> > >
> > > -
> > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> > > For additional commands, e-mail: user-h...@struts.apache.org
> > >
> > >
> >
> >
> > --
> > With Regards
> > Umesh Awasthi
> > http://www.travellingrants.com/
> >
>



-- 
With Regards
Umesh Awasthi
http://www.travellingrants.com/


Re: What is the concept of changing Revision's number in asf - Revision 1536283: /struts/sandbox/trunk/struts2examples

2013-10-28 Thread Lukasz Lenart
2013/10/28 Chris :
> Thank you.
>
> But a file or more could however be changed in the tree
> /struts/sandbox/trunk/struts2examples.
> between the 2.3.15.3 and the next 2.3.15.4 ?
>
> For example, if someone find an error, and a file could be changed in the
> /struts/sandbox/trunk/struts2examples but without changing the release
> 2.3.15.3 ?
>
> So, after that, It's not easy to know which one has changed.

I'm not sure if I got what you mean -
/struts/sandbox/trunk/struts2examples isn't part of release, it's a
standalone project as for now, but under Apache Struts project
control. The changes there are independent from the main project -
/struts/struts2/trunk.


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What is the concept of changing Revision's number in asf - Revision 1536283: /struts/sandbox/trunk/struts2examples

2013-10-28 Thread Chris
Thank you.

But a file or more could however be changed in the tree 
/struts/sandbox/trunk/struts2examples.
between the 2.3.15.3 and the next 2.3.15.4 ?

For example, if someone find an error, and a file could be changed in the
/struts/sandbox/trunk/struts2examples but without changing the release
2.3.15.3 ?

So, after that, It's not easy to know which one has changed.



--
View this message in context: 
http://struts.1045723.n5.nabble.com/What-is-the-concept-of-changing-Revision-s-number-in-asf-Revision-1536283-struts-sandbox-trunk-struts-tp5714459p5714461.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: What is the concept of changing Revision's number in asf - Revision 1536283: /struts/sandbox/trunk/struts2examples

2013-10-28 Thread Lukasz Lenart
2013/10/28 Chris :
> asf - Revision 1536283: /struts/sandbox/trunk/struts2examples
>
> Hello,
> I don't understand what means the constant change of the asf Revision's
> number.
> Many times per day, this number is changing.
> Just now, in a few seconds , the number Revision 1536283: becomes Revision
> 1536284:
> Does it mean a new file n the  /struts/sandbox/trunk/struts2examples ? And
> which one ?
> How to know which file has changed ?

It is because there is one enormous ASF repository ;-) And each commit
to any project increase revision number. It is especially annoying
when you preparing a new release and the Release plugin discovers that
the Revision number changed and aborts release process :P


Regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



What is the concept of changing Revision's number in asf - Revision 1536283: /struts/sandbox/trunk/struts2examples

2013-10-28 Thread Chris
asf - Revision 1536283: /struts/sandbox/trunk/struts2examples

Hello, 
I don't understand what means the constant change of the asf Revision's
number.
Many times per day, this number is changing. 
Just now, in a few seconds , the number Revision 1536283: becomes Revision
1536284:
Does it mean a new file n the  /struts/sandbox/trunk/struts2examples ? And
which one ? 
How to know which file has changed ?





--
View this message in context: 
http://struts.1045723.n5.nabble.com/What-is-the-concept-of-changing-Revision-s-number-in-asf-Revision-1536283-struts-sandbox-trunk-struts-tp5714459.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org