Announcement Announcement Module
Collapse
No announcement yet.
Add function in Controller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Add function in Controller

    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:

    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 {
    
    }
    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:
     
    public void addSilde(Slide s) {   
      .
      .    
      . }
    or is there any way to add function using ROO command shell? and How can I access this function?

    Thanks in advance!

  • #2
    Better off asking this question in the roo forum.

    Comment

    Working...
    X