[
https://issues.apache.org/jira/browse/TAPESTRY-1776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12530028
]
Howard M. Lewis Ship commented on TAPESTRY-1776:
------------------------------------------------
This is caused by how Tapestry must convert your classes for use inside the
framework.
You can avoid these errors by defining an interface.
See the notes:
http://tapestry.apache.org/tapestry5/tapestry-core/guide/reload.html
> Component Class object exists in several instances
> ----------------------------------------------------
>
> 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
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]