Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-3556

@Transient is ignored in FormProxyHandler

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.1
    • 8.0.3
    • Databind 2
    • Security Level: Jimmy
    • ZK 8.5.1 S1

      Steps to Reproduce

      run the attached JUnit test (4 methods)

      Actual Result

      the @Transient form field formattedName does not return the correct name after updating a related field in method testFormProxy()

      Expected Result

      all tests should pass, i.e. @Transient methods at root or nested level should not be intercepted by the proxy mechanism to allow calculated fields as implemented in ZK-2737

      Root Cause

      FormProxyHandler does not skip @Transient methods

      BeanProxyHandler has specific code to skip methods marked as @Transient

      Workaround

      a possible workaround is to implement an configure a custom proxy decorator doing the filtering

            bobpeng bobpeng
            cor3000 cor3000
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - 4 hours
                4h
                Remaining:
                Remaining Estimate - 4 hours
                4h
                Logged:
                Time Spent - Not Specified
                Not Specified