Re: passing form parameters to a custom validator

2009-05-21 Thread manub
what you need from inside the validator? You have > the > ActionInvocation passed to your doIntercept(...), which contains the > ValueStack containing your objects. > > Peace, > Scott > > > > On Tue, May 19, 2009 at 7:59 AM, manub wrote: > >> >

Re: passing form parameters to a custom validator

2009-05-21 Thread manub
I think that this may work for the expression validator because you are supplying an expression. Maybe I need to use an expression too, but I don't know how to evaluate it within my Java class for Validator. Lukasz Lenart wrote: > > 2009/5/20 manub : >> I've written a

Re: passing form parameters to a custom validator

2009-05-20 Thread manub
Lukasz Lenart wrote: > > Frankly, I don't understand, are you trying to pass data from > validator xml configuration to action? > I've written a custom field validator, which needs other field values to validate his field. I need a way to pass that values to that field validator. -- View thi

Re: passing form parameters to a custom validator

2009-05-20 Thread manub
Yes, I did. But in the action the string takes the value "${field}" and not the field value. Lukasz Lenart wrote: > > 2009/5/19 manub : >> I'm trying to write a custom field validator which needs other fields to >> validate the field I need to validate. How ca

Re: customize fielderror

2009-05-20 Thread manub
Yes. renders also and tag, and I don't need them. I'm in need of a way to showing only the errors for a specific field without having any HTML tag (I need only the plain text). newton.dave wrote: > > manub wrote: >> I used the iterator trick described before and it

Re: customize fielderror

2009-05-19 Thread manub
I used the iterator trick described before and it works, showing me all field errors. Nested into the 2 iterators tag, there's a tag which I could use to print only the errors for a specific field using ? Thanks. manub wrote: > > Isn't it possible to reference directly

Re: customize fielderror

2009-05-19 Thread manub
Isn't it possible to reference directly the single field errors without modifying the FTL and without having and tags? Sonny Gill wrote: > > Ahh...right. > Assuming that you are using simple theme as default, You will need to > extract fielderror.ftl from the struts2 jar, modify it to suit t

passing form parameters to a custom validator

2009-05-19 Thread manub
Hi all, I'm trying to write a custom field validator which needs other fields to validate the field I need to validate. How can I pass field values (and not static params) to a field validator in the validation xml? I'm using Struts 2.1.6. Thank you. -- View this message in context: http://www

Re: xml validation

2009-05-15 Thread manub
newton.dave wrote: > > > Include the complete field validation configuration, the interceptor > stack you're using, and the action configuration. > > Dave > > Hi Dave, I solved it. Thanks. Now I've got another question, still about validation. I'm trying to write a custom field validator

xml validation

2009-05-14 Thread manub
Hi, I've got two problems with XML validation :( - I'm not able to perform an equality check on two parameters. I've got password and confirmPassword which I try to validate using something like: confirmPassword.equals(password)

Re: problems using tiles with struts 2

2009-05-14 Thread manub
Wes Wannemacher wrote: > > On Tuesday 12 May 2009 11:54:35 am Lukasz Lenart wrote: >> 2009/5/12 manub : >> > Yes, I'm behind a proxy. How to disable that functionality? Thanks in >> > advance. >> >> Sorry, no idea. It's related

Re: problems using tiles with struts 2

2009-05-12 Thread manub
Lukasz Lenart wrote: > > 2009/5/12 manub : >> Anyone can suggest me how to handle this? > > XML parser is trying to connect over the Internet to validate XML base > on DTD, do you have proxy in use? It was possible to disable such > function and to use local DTD copy

problems using tiles with struts 2

2009-05-12 Thread manub
Hello there, I got a strange error when I try to develop a simple blank Struts2 Application with Tiles support. The strangest thing is that this application, without any modify, works on another PC. Here's my stacktrace: 12-mag-2009 11.36.06 org.apache.catalina.core.StandardContext listenerStar

file upload problems

2008-02-06 Thread manub
Hi there, I'm a newbie in Struts 2 and in Java EE programming... I tried to search about this but i didn't found any succesfull answer. So I'm trying to ask to this ML :) I need to make a form that permits an user to upload a file. I had the "so-well-known" MultiWrapper problem, and I managed it