click-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bob Schellink (JIRA)" <j...@apache.org>
Subject [jira] Closed: (CLK-522) Why does TypeConverter apply only public fields?
Date Thu, 09 Apr 2009 14:13:13 GMT

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

Bob Schellink closed CLK-522.
-----------------------------

    Resolution: Won't Fix

Hi,

For questions such as these I would suggest you rather use the mailing lists than JIRA.

The reason only public fields are converted is because we needed to provide a way to "not"
bound fields to request parameters. Otherwise every field added to a Page would be bound and
converted which can be confusing. So by declaring a field as public you are saying to Click
you want it bound to a request parameter.

There are some plans to use annotations to specify the binding instead of public fields: http://cwiki.apache.org/confluence/display/CLICK/Java+5+Support

regards

bob

> Why does TypeConverter apply only public fields?
> ------------------------------------------------
>
>                 Key: CLK-522
>                 URL: https://issues.apache.org/jira/browse/CLK-522
>             Project: Click
>          Issue Type: Question
>          Components: core
>    Affects Versions: 2.0.1
>         Environment: apache click 2.0.1
>            Reporter: hs.fujimoto.t
>            Priority: Minor
>   Original Estimate: 168h
>  Remaining Estimate: 168h
>
> I expected TypeConverter applies all Field in PageClass.
> But private Field does not apply.

-- 
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