You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Yunhua Sang (JIRA)" <de...@tapestry.apache.org> on 2008/08/19 23:59:44 UTC
[jira] Created: (TAPESTRY-2608) It's impossible to override default
model in subclass of Grid
It's impossible to override default model in subclass of Grid
-------------------------------------------------------------
Key: TAPESTRY-2608
URL: https://issues.apache.org/jira/browse/TAPESTRY-2608
Project: Tapestry
Issue Type: Improvement
Components: tapestry-core
Affects Versions: 5.0.14
Environment: All
Reporter: Yunhua Sang
For a sub-class of Grid, it's impossible to provide its own BeanModel to override the default model in Grid because the method
Binding defaultModel() {..}
is package visible.
it would be nice to have that method to be protected to let sub-class of Grid be able to override the default model.
I know a workaround is to make a component to composite the Grid, bind model parameter to a property and copy all the parameters over; but there are so many parameters in Grid component, I don't think it's a good way.
Thanks,
Yunhua
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Commented: (TAP5-49) It's impossible to override default
model in subclass of Grid
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-49?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12643373#action_12643373 ]
Howard M. Lewis Ship commented on TAP5-49:
------------------------------------------
I'm not sure I ever expected a parameter default method, such as defaultModel(), to be overridable in a subclass. It should work, so I'll see about easing the visiblility.
> It's impossible to override default model in subclass of Grid
> -------------------------------------------------------------
>
> Key: TAP5-49
> URL: https://issues.apache.org/jira/browse/TAP5-49
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Yunhua Sang
>
> For a sub-class of Grid, it's impossible to provide its own BeanModel to override the default model in Grid because the method
> Binding defaultModel() {..}
> is package visible.
> it would be nice to have that method to be protected to let sub-class of Grid be able to override the default model.
> I know a workaround is to make a component to composite the Grid, bind model parameter to a property and copy all the parameters over; but there are so many parameters in Grid component, I don't think it's a good way.
> Thanks,
> Yunhua
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Closed: (TAP5-49) Grid.defaultModel() should be a protected
method so that subclasses can override the default BeanModel logic
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAP5-49.
------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.16
> Grid.defaultModel() should be a protected method so that subclasses can override the default BeanModel logic
> ------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-49
> URL: https://issues.apache.org/jira/browse/TAP5-49
> Project: Tapestry 5
> Issue Type: Improvement
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Yunhua Sang
> Assignee: Howard M. Lewis Ship
> Fix For: 5.0.16
>
>
> For a sub-class of Grid, it's impossible to provide its own BeanModel to override the default model in Grid because the method
> Binding defaultModel() {..}
> is package visible.
> it would be nice to have that method to be protected to let sub-class of Grid be able to override the default model.
> I know a workaround is to make a component to composite the Grid, bind model parameter to a property and copy all the parameters over; but there are so many parameters in Grid component, I don't think it's a good way.
> Thanks,
> Yunhua
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Assigned: (TAP5-49) It's impossible to override default
model in subclass of Grid
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAP5-49:
----------------------------------------
Assignee: Howard M. Lewis Ship
> It's impossible to override default model in subclass of Grid
> -------------------------------------------------------------
>
> Key: TAP5-49
> URL: https://issues.apache.org/jira/browse/TAP5-49
> Project: Tapestry 5
> Issue Type: Bug
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Yunhua Sang
> Assignee: Howard M. Lewis Ship
>
> For a sub-class of Grid, it's impossible to provide its own BeanModel to override the default model in Grid because the method
> Binding defaultModel() {..}
> is package visible.
> it would be nice to have that method to be protected to let sub-class of Grid be able to override the default model.
> I know a workaround is to make a component to composite the Grid, bind model parameter to a property and copy all the parameters over; but there are so many parameters in Grid component, I don't think it's a good way.
> Thanks,
> Yunhua
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org
[jira] Updated: (TAP5-49) Grid.defaultModel() should be a protected
method so that subclasses can override the default BeanModel logic
Posted by "Howard M. Lewis Ship (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/TAP5-49?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAP5-49:
-------------------------------------
Issue Type: Improvement (was: Bug)
Summary: Grid.defaultModel() should be a protected method so that subclasses can override the default BeanModel logic (was: It's impossible to override default model in subclass of Grid)
> Grid.defaultModel() should be a protected method so that subclasses can override the default BeanModel logic
> ------------------------------------------------------------------------------------------------------------
>
> Key: TAP5-49
> URL: https://issues.apache.org/jira/browse/TAP5-49
> Project: Tapestry 5
> Issue Type: Improvement
> Affects Versions: 5.0.15
> Environment: All
> Reporter: Yunhua Sang
> Assignee: Howard M. Lewis Ship
>
> For a sub-class of Grid, it's impossible to provide its own BeanModel to override the default model in Grid because the method
> Binding defaultModel() {..}
> is package visible.
> it would be nice to have that method to be protected to let sub-class of Grid be able to override the default model.
> I know a workaround is to make a component to composite the Grid, bind model parameter to a property and copy all the parameters over; but there are so many parameters in Grid component, I don't think it's a good way.
> Thanks,
> Yunhua
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org