Re: validation and form display problem

2010-07-11 Thread Burton Rhodes
That sounds like a classic 'prepare' problem. Take a look at the documentation on implementing Preparable in your action. You will want to initialize your backing beans inside the Prepare method in your action. That when 'input' is needed, your backing beans will be loaded. On 7/10/10, Jake Vang

Re: validation and form display problem

2010-07-11 Thread Jake Vang
what i did was to override ValidationAware.hasErrors(). according to the docs, the workflow interceptor calls this method, if there are validation errors, it returns input and stops further execution of the action. i tried this... public boolean hasErrors() { boolean result = super.hasErrors();

RE: validation and form display problem

2010-07-10 Thread Martin Gainty
you could use the org.apache.struts2.config_browser.ShowValidatorAction then use java.beans.Introspector to acquire the bean from Validator.class try { java.beans.BeanInfo beanInfoFrom = java.beans.Introspector.getBeanInfo(validator.getClass(), Object.class); } catch