tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Howard M. Lewis Ship (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TAP5-720) Many components are difficult to extend because fields are private and have no accessors
Date Fri, 01 Apr 2011 00:08:06 GMT

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

Howard M. Lewis Ship updated TAP5-720:
--------------------------------------

             Priority: Minor  (was: Major)
    Affects Version/s: 5.2
                       5.3
              Summary: Many components are difficult to extend because fields are private
and have no accessors  (was: Extending componts is not possible)

Fields must be private. That's a given, see the documentation.

In terms of extending them; add specific cases for component properties or parameters you
need access to, but consider using mixins and/or composition rather than subclassing.  And,
I'm afraid, a bit of cut-and-paste.

> Many components are difficult to extend because fields are private and have no accessors
> ----------------------------------------------------------------------------------------
>
>                 Key: TAP5-720
>                 URL: https://issues.apache.org/jira/browse/TAP5-720
>             Project: Tapestry 5
>          Issue Type: Bug
>    Affects Versions: 5.3, 5.2, 5.1.0.5
>            Reporter: Fritz Pröbstle
>            Priority: Minor
>
> ... because most members/functions  are  declared "private.".
> Please change these the protected ( as you would do with any extendable object)!
> Or is the a reason (which I can not imagine )  for making them "private"?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message