Announcement Announcement Module
Collapse
No announcement yet.
AutoGeneration Issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • AutoGeneration Issue

    Hi Friends,
    I'm evaluating Roo for big projects development. I'm very pleased with Roo.
    I want to know if there is a way to solve this problem:

    Once several code are auto-generated by Roo and then I modify some of these files (i.e. jspx, or some predefined method on controllers class), Is there a way to configure Roo for update those files and not regenerate those from scratch? because when Roo auto-build from scratch I'm loosing the changes I made on those files.

    Thanks in advance!

    Mauro

  • #2
    z attribute

    Set the attribute "z" to "user-managed" on the elements that are not to be managed by Roo.

    So this code for example:
    Code:
    <field:select path="stuff" 
          items="${stuff}" 
          id="fc_com_springsource_roostarter_db_Stuff" 
          field="stuff" 
          itemValue="id" 
          z="F++2a8Nu5+tARuE+elxgrRMaCGc=" />
    would become:
    Code:
    <field:select path="stuff" 
          items="${stuff}" 
          id="fc_com_springsource_roostarter_db_Stuff" 
          field="stuff" 
          itemValue="id" 
          z="user-managed" />

    Comment


    • #3
      Thank you Mib for your reply. I'll use this information.

      Comment

      Working...
      X