• Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0 RC1
    • Component/s: None
    • Labels:


      Add a Bindable annotation to Click to provide an alternative to the public field auto binding facility.


      Re-examining this feature like it and I hate it at the same time. Why I like it, is because its quick to declare a public field/control in your Page class, and it will appear in your template. However after maintaining some large Click applications, this quick little hack can become a real problem. It is often not obvious when reading source code as to what is happening with all the autobinding black magic being performed. For instance you could have a public String field which is being autobound with a request parameter, or maybe its just used to display something in the template, and controls can also be auto bound, which can become very confusing if you have a HiddenField which is a public variable but is also added to a Form. If I had my time again I would not have included this feature with Java 1.4, its simply too much black magic and it has burnt me plenty of times.

      Now Java 1.5 provides the opportunity to clean up this mess by adding annotations to Page fields and properties."


        Malcolm Edgar created issue -
        Malcolm Edgar made changes -
        Field Original Value New Value
        Assignee Malcolm Edgar [ medgar ]
        Malcolm Edgar made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Malcolm Edgar made changes -
        Fix Version/s 2.1.0 RC1 [ 12314096 ]
        Fix Version/s 2.1.0 [ 12313730 ]
        Affects Version/s 2.0.2 [ 12313731 ]
        Malcolm Edgar made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Bob Schellink made changes -
        Affects Version/s 2.0.1 [ 12313732 ]
        Affects Version/s 2.0.2 [ 12313731 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open In Progress In Progress
        47m 38s 1 Malcolm Edgar 31/May/09 11:30
        In Progress In Progress Resolved Resolved
        43d 1h 10m 1 Malcolm Edgar 13/Jul/09 12:41


          • Assignee:
            Malcolm Edgar
            Malcolm Edgar
          • Votes:
            0 Vote for this issue
            0 Start watching this issue


            • Created: