Using tag

2011-09-22 Thread Anjib Mulepati
Hi All, I have two question 1. regarding understanding , and and 2. reloding option items after form validation fail. I have agency bean with (ID, Name). I create list of agency as agencyList. I have login page which have select/option box and it get value from the DB. So my action class se

Re: Unit Test Struts2 Action - Custom type converters not being run?

2011-09-22 Thread Carl Ballantyne
Okay same problem back again. It seems to happen after I have done a clean with Maven. The custom converters are not being run. *scratches head* I have done a maven install without running the tests to make sure all classes have been compiled. On Thu, Sep 22, 2011 at 9:56 AM, Carl Ballantyne wro

Re: Can Struts Junit plugin be used to test the redirect result of an action

2011-09-22 Thread Maurizio Cucchiara
The reason behind is simple: no browser no redirect. The redirect is sent as http header, so as long as there is no browser to interpret the header there is no way to redirect. You might call by yourself the second action, WDYT? PS: FWIW I have not read the optional reading :) Maurizio Cucchiara

Re: Unit Test Struts2 Action - Custom type converters not being run?

2011-09-22 Thread Carl Ballantyne
It seems to have fixed itself overnight without me changing anything. I can in this morning and now the converters are being run for the unit tests. Hm as long as it is passing all good. On Wed, Sep 21, 2011 at 7:25 PM, Maurizio Cucchiara wrote: > Does Maven Snapshot section [1] answer your q

Problem with @ConversionErrorFieldValidator

2011-09-22 Thread roger
Hi In my struts 2 action I'm using the @VistorFieldValidator @VisitorFieldValidator(message="",appendPrefix=true) public Rma getRma() { return rma; } and within the RMA class I'm using @ConversionErrorFieldValidator(message = "Serial Number must be numeric", shortCircuit=true)