I am new to ROO project. I have looked a lot but unable to find "How can I manually add function in one of my controller"? Suppose my controller looks like:
To add function in SlideController: Can I manually add function like this? (please also tell if I have to something in other files also)Code:package ch.epfl.psytest.web; import org.springframework.roo.addon.web.mvc.controller.RooWebScaffold; import org.springframework.stereotype.Controller; import org.springframework.web.bind.annotation.RequestMapping; import ch.epfl.psytest.domain.Slide; @RooWebScaffold(path = "slides", formBackingObject = Slide.class) @RequestMapping("/slides") @Controller public class SlideController { }
or is there any way to add function using ROO command shell? and How can I access this function?Code:public void addSilde(Slide s) { . . . }
Thanks in advance!


Reply With Quote