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

2013-10-29 Thread Umesh Awasthi
Can try with that. But that means putting extra data in value-stack as constranitsViolation map provided by bean validation contains other information as well. I will look in to way to provide your custom text-provider . On Tue, Oct 29, 2013 at 3:57 PM, Christoph Nenning < christoph.nenn...@lex-

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

2013-10-29 Thread Christoph Nenning
> 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. > As far as I understand it, it should work when you push that map on ValueStack before re

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:

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

2013-10-27 Thread Chris Pratt
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 work

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

2013-10-27 Thread Umesh Awasthi
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 p

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

2013-10-27 Thread Lukasz Lenart
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 you

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

2013-10-27 Thread Umesh Awasthi
Hi Lukasz, On Sun, Oct 27, 2013 at 9:42 PM, Lukasz Lenart wrote: > 2013/10/27 Umesh Awasthi : > > Hi All, > > > > Is there a way to skip evaluation of ${} and %{} in TextParseUtil. > > Here is the reason i need this > > > > I need to display validatio

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

2013-10-27 Thread Lukasz Lenart
2013/10/27 Umesh Awasthi : > Hi All, > > Is there a way to skip evaluation of ${} and %{} in TextParseUtil. > Here is the reason i need this > > I need to display validation errors and need to pass parameters to messages > defined in resource bundles. > > this is ho

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

2013-10-27 Thread Umesh Awasthi
Hi All, Is there a way to skip evaluation of ${} and %{} in TextParseUtil. Here is the reason i need this I need to display validation errors and need to pass parameters to messages defined in resource bundles. this is how i have defined message in property file mobile.number=Please provide a