extending BasicPreparerFactory

2008-02-04 Thread mteccles
Hi, I found the DTD for tiles configuration at http://struts.apache.org/struts-sandbox/tiles/tiles-core/dtddoc/index.html. What I want to do is extend the BasicPreparerFactory and configure the struts 2 application to use my class. The application uses the spring plugin but tiles 2 is sandbox an

using param tag inside custom tag

2008-02-27 Thread mteccles
Hi, Where and how do struts 2 param tags get evaluated and injected into the parent tag? When my custom tag is being invoked, the Component.getParameters() method is returning empty list. Is there some configuration required to make this work? -- View this message in context: http://www.nabb

Re: using param tag inside custom tag

2008-02-27 Thread mteccles
Hmm found already, if value is in 'value' attribute it goes lost, hmm.. maybe cos it is treated as Object. Was fixed by putting the value in the param tags body. mteccles wrote: > > Hi, > > Where and how do struts 2 param tags get evaluated and injected into the > p

Troubles getting validation to work

2008-03-03 Thread mteccles
I am trying to validate a form so that field 'username' is 3 characters or more. I have tried both xml configuration and annotations but seem to be missing something on how it works. The form is working perfectly, ie all properties on the class are being set. However the execute method is always c

Re: Troubles getting validation to work

2008-03-03 Thread mteccles
workflow interceptor was missing, this was the problem. newton.dave wrote: > > --- mteccles <[EMAIL PROTECTED]> wrote: >> I am trying to validate a form so that field 'username' is 3 characters >> or >> more. I have tried both xml configuration a

unexpected behaviour

2008-03-04 Thread mteccles
Hi, I developed a form that does some validation. I included validation and workflow interceptor in the actions stack. The validation is very simple, it makes sure one field is a minimum length. It works fine except for the following scenario: 1) submit invalid form (input is returned with fiel

Re: unexpected behaviour

2008-03-04 Thread mteccles
Now i just thought the action is wired by spring as a singleton, and the fielderrors are a property of this object... maybe forms should not be singletons. still like to know thoughts mteccles wrote: > > Hi, > > I developed a form that does some validation. I included va

Annotation Validation: compare two fields

2008-04-22 Thread mteccles
Hi, I have a form which contains password and a password check field. These fields must contain the same password or else a validation error is shown. Is it possible and what is the syntax for validating this? As far as I can see there only exists the possibility to validate fields exclusively.