Results 1 to 2 of 2

Thread: setting render to false updates fields with empty values

  1. #1

    Default 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
    Attached Files Attached Files
    Last edited by builderdash; Mar 17th, 2011 at 10:46 AM. Reason: added path info

  2. #2

    Default

    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.

Posting Permissions

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