You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Kevin Menard (JIRA)" <de...@tapestry.apache.org> on 2007/11/20 18:41:43 UTC
[jira] Created: (TAPESTRY-1925) Grid does not handle
java.util.Collections empty collections.
Grid does not handle java.util.Collections empty collections.
-------------------------------------------------------------
Key: TAPESTRY-1925
URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
Project: Tapestry
Issue Type: Bug
Components: Core Components
Affects Versions: 5.0.6
Reporter: Kevin Menard
Priority: Minor
Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Obscure exception when a
Collection (not a List) is used as a GridDataSource
Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12555639#action_12555639 ]
Kevin Menard commented on TAPESTRY-1925:
----------------------------------------
Thanks for adding the GridSetDemo.java. I did have one written, but it looks like it didn't get added to the patch. I'll chock it up to using a new IDE. Fortunately it was simple enough, so thanks for providing one.
> Obscure exception when a Collection (not a List) is used as a GridDataSource
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.7
>
> Attachments: TAPESTRY-1925.patch, TAPESTRY-1925_(2).patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Obscure exception when a Collection
(not a List) is used as a GridDataSource
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-1925.
------------------------------------------
Resolution: Fixed
Fix Version/s: 5.0.7
> Obscure exception when a Collection (not a List) is used as a GridDataSource
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.7
>
> Attachments: TAPESTRY-1925.patch, TAPESTRY-1925_(2).patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Grid does not handle Collections,
only Lists.
Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Menard updated TAPESTRY-1925:
-----------------------------------
Attachment: TAPESTRY-1925_(2).patch
I failed to update the javadocs in the last one. This patch corrects that.
> Grid does not handle Collections, only Lists.
> ---------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Priority: Minor
> Attachments: TAPESTRY-1925.patch, TAPESTRY-1925_(2).patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Grid does not handle Collections,
only Lists.
Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Menard updated TAPESTRY-1925:
-----------------------------------
Summary: Grid does not handle Collections, only Lists. (was: Grid does not handle java.util.Collections empty collections.)
> Grid does not handle Collections, only Lists.
> ---------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Priority: Minor
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Grid does not handle Collections,
only Lists.
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12553751 ]
Howard M. Lewis Ship commented on TAPESTRY-1925:
------------------------------------------------
Looks like the GridSetDemo class was omitted as well. I think I can make it up.
> Grid does not handle Collections, only Lists.
> ---------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Attachments: TAPESTRY-1925.patch, TAPESTRY-1925_(2).patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Grid does not handle Collections,
only Lists.
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship reassigned TAPESTRY-1925:
----------------------------------------------
Assignee: Howard M. Lewis Ship
> Grid does not handle Collections, only Lists.
> ---------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Attachments: TAPESTRY-1925.patch, TAPESTRY-1925_(2).patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Obscure exception when a Collection
(not a List) is used as a GridDataSource
Posted by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship updated TAPESTRY-1925:
-------------------------------------------
Summary: Obscure exception when a Collection (not a List) is used as a GridDataSource (was: Grid does not handle Collections, only Lists.)
> Obscure exception when a Collection (not a List) is used as a GridDataSource
> ----------------------------------------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Assignee: Howard M. Lewis Ship
> Priority: Minor
> Fix For: 5.0.7
>
> Attachments: TAPESTRY-1925.patch, TAPESTRY-1925_(2).patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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: (TAPESTRY-1925) Grid does not handle Collections,
only Lists.
Posted by "Kevin Menard (JIRA)" <de...@tapestry.apache.org>.
[ https://issues.apache.org/jira/browse/TAPESTRY-1925?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Kevin Menard updated TAPESTRY-1925:
-----------------------------------
Attachment: TAPESTRY-1925.patch
Updated the type coercion to work with any Collection type. Although the grid does expect to be able to reference items by index, implying a defined iteration order, this invariant should be held by the fact that grid wraps up the collection as a List anyway.
I added a test that simply checks for the non-existence of an error page when a Set is used as a grid source. There's probably a better way to test, but I'm still getting my feet wet.
> Grid does not handle Collections, only Lists.
> ---------------------------------------------
>
> Key: TAPESTRY-1925
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1925
> Project: Tapestry
> Issue Type: Bug
> Components: Core Components
> Affects Versions: 5.0.6
> Reporter: Kevin Menard
> Priority: Minor
> Attachments: TAPESTRY-1925.patch
>
>
> Tapestry throws an exception when providing an empty collection, such as java.util.Collections.EMPTY_SET, to the Grid component as the source parameter. The message is of the form "tried to access class java.util.Collections$EmptySet from clas $PropertyConduit_XXX".
> It appears to be a case of not knowing which type of class to use, rather than just using the interface.
--
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