Quantcast

Upgrade to 2.0.4 - problem with controller method

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Upgrade to 2.0.4 - problem with controller method

John Moore
Trying an experimental upgrade of a 1.3.9 app to 2.0.4. When I try to run my app, I get this:

CartController.groovy: The [splitIntoColumns] action accepts a parameter of type [java.util.List] which does not appear to be a command object class.  This can happen if the source code for this class is not in this project and the class is not marked with @Validateable.

This is a bit puzzling. It seems to imply that every method in a controller is regarded as something which may be called as part of a URL (like closures in 1.3.x). But this is just a utility method. Is there something I can do to mark it as such?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Upgrade to 2.0.4 - problem with controller method

John Moore
What I meant to say was that this method is seemingly being regarded as an action. But it's not, it's  just a utility method, used by other actions.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Upgrade to 2.0.4 - problem with controller method

owen Rubel
um... private

Owen Rubel

On Fri, Jun 15, 2012 at 3:39 PM, John Moore <[hidden email]> wrote:
What I meant to say was that this method is seemingly being regarded as an
action. But it's not, it's  just a utility method, used by other actions.

--
View this message in context: http://grails.1312388.n4.nabble.com/Upgrade-to-2-0-4-problem-with-controller-method-tp4630228p4630229.html
Sent from the Grails - user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: Upgrade to 2.0.4 - problem with controller method

John Moore
Yes, just figured that out. Of course, it should have been private all along, it's just that Grails 2 is obviously a little more picky and shakes me out of the lazy habits I've obviously picked up...
Loading...