Announcement Announcement Module
No announcement yet.
setting render to false updates fields with empty values Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • setting render to false updates fields with empty values

    I have a mvc generated view and I want some fields not be displayed when updating the entry.
    So I set the render attribute of the field:input tag to false
            <field:input field="login" id="c_test_domain_Account_login" z="user-managed" render="false"/>
    All test work as expected, so I ran the application in jetty with mvn jetty:run.
    I added some entries for Client and aAcount.
    After updating an entry of Account the value of the field login becomes empty. That is not the desired behavior. I justed wanted the value not to be changed.

    I added the roo script, where I only changed the render attribute of the login field mentioned above in
    Last edited by builderdash; Mar 17th, 2011, 10:46 AM. Reason: added path info

  • #2
    Okay I found a way to fix this

    But I think it could be a nice improvment to roo to change the behavior of the render attribute. Setting a display option should not effect the data.