click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Malcolm Edgar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CLK-556) Add Bindable annotation
Date Mon, 13 Jul 2009 12:41:15 GMT

     [ https://issues.apache.org/jira/browse/CLK-556?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Malcolm Edgar updated CLK-556:
------------------------------

    Affects Version/s: 2.0.2
        Fix Version/s:     (was: 2.1.0)
                       2.1.0 RC1

> Add Bindable annotation
> -----------------------
>
>                 Key: CLK-556
>                 URL: https://issues.apache.org/jira/browse/CLK-556
>             Project: Click
>          Issue Type: New Feature
>    Affects Versions: 2.0.2
>            Reporter: Malcolm Edgar
>            Assignee: Malcolm Edgar
>             Fix For: 2.1.0 RC1
>
>
> Add a Bindable annotation to Click to provide an alternative to the public field auto
binding facility.
> http://cwiki.apache.org/confluence/display/CLICK/Java+5+Support
> "Autobinding
> 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."

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message