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

  • Transient field help

    Hi,

    I've declared a property in my domain object as transient:

    @Transient
    private String status;

    Roo updates my Controller and view pages as expected. However, within my create.jspx and update.jpx files I don't want the "status" field present. Upon removing it, roo re-adds it. I just want the "status" field showing up on my show.jspx page.

    How do I achieve this?

    Thanks in advance,
    stephen

  • #2
    The all Roo supplied form tags have a 'render' attribute which you can simply set to false. This way, Roo will not render your input fields for status but still allow round tripping of the other fields.

    HTH,
    Stefan

    Comment


    • #3
      Worked

      Excellent - that did it. Works as expected now! Thank you!!

      Comment

      Working...
      X