Announcement Announcement Module
Collapse
No announcement yet.
setting render to false updates fields with empty values Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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
    Code:
            <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
    ${PROJECT_HOME}/src/main/webapp/WEB-INF/views/accounts/update.jspx
    Last edited by builderdash; Mar 17th, 2011, 10:46 AM. Reason: added path info

  • #2
    Okay I found a way to fix this
    http://forum.springsource.org/showthread.php?p=351683

    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.

    Comment

    Working...
    X