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

@Transient is ignored in FormProxyHandler

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 8.0.3
    • Fix Version/s: 8.5.1
    • Component/s: Databind 2
    • Security Level: Jimmy
    • Labels:
    • gh.sprint.customfield.default.name:
      ZK 8.5.1 S1

      Description

      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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Time Tracking

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