example on sjg:grid

2011-09-21 Thread krishnateja.v
any body send me examples on sjg:grid with dropdowns anb checkboxs in rows -- View this message in context: http://struts.1045723.n5.nabble.com/example-on-sjg-grid-tp4829124p4829124.html Sent from the Struts - User mailing list archive at Nabble.com. -

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

2011-09-21 Thread Maurizio Cucchiara
Does Maven Snapshot section [1] answer your question? [1] http://struts.apache.org/dev/builds.html#MavenSnapshots Maurizio Cucchiara On 21 September 2011 17:55, Carl Ballantyne wrote: > I am using 2.2.3. > > How can I try the nightly build if using Maven? I do not see it listed as an > option.

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

2011-09-21 Thread Miguel Almeida
On Wed, 2011-09-21 at 17:55 +0200, Carl Ballantyne wrote: > How can I try the nightly build if using Maven? I do not see it listed as an > option. Would be nice if Struts released SNAPSHOT versions into maven. Does it? > > Be aware that you can write your test as follow: > > > > public void t

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

2011-09-21 Thread Carl Ballantyne
I am using 2.2.3. How can I try the nightly build if using Maven? I do not see it listed as an option. I also noticed I am using spring beans as the converters. Not sure if this makes a difference. So for example in the conversion properties file I have something like roles=rolesConverter. And ro

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

2011-09-21 Thread Maurizio Cucchiara
What Struts version are you using? Could you give a try to the nightly version [1] and tell me if it works as you expect? Be aware that you can write your test as follow: public void testValidationRequired() throws Exception { request.setParameter("user.roles", ""); execute

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

2011-09-21 Thread Carl Ballantyne
Hi All, I have an action that I am trying to unit test. However it seems the converters I have set for the User object that is being create by the action are not being applied at all when running the unit test. The converters are run when running the application. For example I have a test class:

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

2011-09-21 Thread Miguel Almeida
I am using the Struts Junit plugin (http://struts.apache.org/2.2.3.1/docs/struts-2-junit-plugin-tutorial.html ), extending the StrutsSpringTestCase for a regression test of an action in my application. (Optional reading: Long story short on the problem, the action adds a record to a database vi