Results 1 to 2 of 2

Thread: How to cleanly remove Roo generated Controller?

  1. #1
    Join Date
    Jan 2011
    Posts
    12

    Default How to cleanly remove Roo generated Controller?

    Hi,

    I have generated controllers with
    Code:
    controller all --package ~.web
    However I don't need all Entities to be viewable, but still would like to keep them mapped. Is there a command or a best practice on how to remove unwanted generated controllers and their views?

  2. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    Hi,

    I am a little unclear what you mean by 'like to keep them mapped'. You mean you want to have controllers for all entities? If that is not what you want you can choose to create controllers for only a sub-selection of your entities by using the 'controller scaffold' command. You can also edit your menu.jspx file to remove links to scaffolded controllers, not sure if it would make sense in that case to keep them though.

    Maybe you can elaborate a bit on your question.

    Cheers,
    Stefan
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •