You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by "Jochen Kemnade (JIRA)" <ji...@apache.org> on 2014/05/27 09:20:15 UTC

[jira] [Updated] (TAP5-1501) Asset Inheritance

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

Jochen Kemnade updated TAP5-1501:
---------------------------------

    Labels: bulk-close-candidate  (was: )

This issue has been last updated about 1.5 years ago, has no assignee, affects an old version of Tapestry that is not actively developed anymore, and is therefore prone to be bulk-closed in the near future.

If the issue still persists with the most recent development preview of Tapestry (5.4-beta-6, which is available from Maven Central), please update it as soon as possible. In the case of a feature request, please discuss it with the Tapestry developer community on the dev@tapestry.apache.org mailing list first.


> Asset Inheritance
> -----------------
>
>                 Key: TAP5-1501
>                 URL: https://issues.apache.org/jira/browse/TAP5-1501
>             Project: Tapestry 5
>          Issue Type: Wish
>          Components: tapestry-core
>    Affects Versions: 5.2
>            Reporter: Alex Lumpov
>              Labels: bulk-close-candidate
>
> Suppose there is a component that uses a certain  asset (for example DateField). I want to extend it.
> For example:
> package mypackage.testapp.components;
> import org.apache.tapestry5.corelib.components.DateField;
> public class MyDateField extends DateField {
> }
> If i change the asset and put it in a new classpath, then everything is fine.
> But if i want to override only a class and use the already existing asset, then i get the error:
> Unable to locate asset 'classpath:mypackage/testapp/components/datefield.gif' (the file does not exist).
> Hide uninteresting stack frames Stack trace
> Unable to locate asset 'classpath:mypackage/testapp/components/datefield.gif' (the file does not exist).
> Stack trace:
>         * org.apache.tapestry5.internal.services.AssetSourceImpl.getLocalizedAssetFromResource(AssetSourceImpl.java:135)
>         * org.apache.tapestry5.internal.services.AssetSourceImpl.getAssetInLocale(AssetSourceImpl.java:105)
>         * org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:85)
>         * $AssetSource_12f2703a8d2.getAsset($AssetSource_12f2703a8d2.java)
>         * org.apache.tapestry5.internal.bindings.AssetBindingFactory.newBinding(AssetBindingFactory.java:45)
>         * $BindingFactory_12f2703a9a5.newBinding($BindingFactory_12f2703a9a5.java)
>         * org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:78)
>         * org.apache.tapestry5.internal.services.BindingSourceImpl.newBinding(BindingSourceImpl.java:41) 
>         ... 
> It seems to me it would be nice if the classpath assets could be inheritable like templates.



--
This message was sent by Atlassian JIRA
(v6.2#6252)