Results 1 to 3 of 3

Thread: Transient field help

  1. #1
    Join Date
    Aug 2005
    Posts
    7

    Default 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. #2
    Join Date
    Mar 2008
    Location
    Sydney, AU
    Posts
    974

    Default

    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
    Stefan Schmidt
    Software Engineer, Spring Roo
    SpringSource - a division of VMware
    twitter @schmidtstefan

  3. #3
    Join Date
    Aug 2005
    Posts
    7

    Default Worked

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

Tags for this Thread

Posting Permissions

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