You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Howard M. Lewis Ship (JIRA)" <de...@tapestry.apache.org> on 2008/01/02 20:55:34 UTC
[jira] Closed: (TAPESTRY-1776) Component classes may be loaded by
different class loaders, causing type coercion issues when a component has
a parameter whose type is a component class
[ https://issues.apache.org/jira/browse/TAPESTRY-1776?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Howard M. Lewis Ship closed TAPESTRY-1776.
------------------------------------------
Resolution: Duplicate
Assignee: Howard M. Lewis Ship
Duplicate of TAPESTRY-2005.
> Component classes may be loaded by different class loaders, causing type coercion issues when a component has a parameter whose type is a component class
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: TAPESTRY-1776
> URL: https://issues.apache.org/jira/browse/TAPESTRY-1776
> Project: Tapestry
> Issue Type: Bug
> Components: tapestry-core
> Affects Versions: 5.0.5
> Environment: Mac OS X, Eclipse 3.3, Jetty Launcher, Jetty 5
> Reporter: Ognen Ivanovski
> Assignee: Howard M. Lewis Ship
> Attachments: log.txt
>
>
> I get the following exception:
> java.lang.IllegalArgumentException: Could not find a coercion from type com.telekurs.pass.online.permissiongui.components.CheckboxGroup to type com.telekurs.pass.online.permissiongui.components.CheckboxGroup. Available coercions:... (full trace attached)
> Note that it says "cannot find a coercion from A to A". I did some debugging and indeed the class CheckboxGroup was represented by two different objects.
> Tapestry should not allow for a component class to be loaded differently than in the modified version.
> More details:
> - CheckBoxGroup is a component very similar to RadioGroup (80% code similar) it is used to group render a set of checkboxes with the same name.
> - BulkSelect is a js component that i used for "select all" and "select none" operations in connection to the CheckBoxGroup. It has a
> @Parameter(required = true, defaultPrefix="component")
> private CheckboxGroup checkboxes;
> They are used in the following way:
> <t:BulkSelect checkboxes="permissionSelections" select="true" />
> <t:CheckboxGroup t:id="permissionSelections"
> value="selected" encoder="permissionValueEncoder" disabled="disabled">
> <!-- ...-->
> </t:CheckboxGroup>
--
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