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/13 15:23:28 UTC

[jira] [Closed] (TAP5-687) In a Tapestry template, mixing a Tapestry library namespace with a subpackage in the element name (a dot between the folder and the component name) fails

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

Jochen Kemnade closed TAP5-687.
-------------------------------

    Resolution: Not a Problem

Another year has passed since the last comment. Therefore, we assume this issue has either been resolved in the meantime or it is no longer relevant to you.
If recent versions of Tapestry (i.e. 5.4 betas and 5.3.7) are still affected, please reopen the issue and adjust the "Affected Version/s" property.

> In a Tapestry template, mixing a Tapestry library namespace with a subpackage in the element name (a dot between the folder and the component name) fails
> ---------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: TAP5-687
>                 URL: https://issues.apache.org/jira/browse/TAP5-687
>             Project: Tapestry 5
>          Issue Type: Bug
>          Components: tapestry-core
>    Affects Versions: 5.1.0.4
>            Reporter: Nguyen Ngoc Trung
>            Priority: Minor
>              Labels: bulk-close-candidate
>
> Steps to reproduce the exception:
> 1. Create library t5comp, and declare: configuration.add(new LibraryMapping("t5comp", "vn.pyco.demo.t5comp"));
> 2. Creare two components: vn.pyco.demo.t5comp.components.Comp1 and vn.pyco.demo.t5comp.components.sub.Comp2
> 3. Create webapp t5app, and using t5comp library.
> 4. Index.tml code:
> <html xmlns="http://www.w3.org/1999/xhtml"
>       xmlns:t="http://tapestry.apache.org/schema/tapestry_5_1_0.xsd"
>       xmlns:tc="tapestry-library:t5comp"
>       xmlns:p="tapestry:parameter">
>     <head>
>         <meta http-equiv="content-type" content="text/html; charset=utf-8"/>
>         <title>T5 Demo</title>
>     </head>
>     <body>
>         <tc:Comp1 />(1)
>         <t:t5comp.sub.Comp2 />(2)
>         <tc:sub.Comp2 />(3)
>     </body>
> </html>
> 5. Run webapp and get result:
> - (1), (2) OK
> - (3) throws an exception:
> Unable to resolve 't5comp/sub.Comp2' to a component class name. Available component types: ActionLink, AddRowLink, AjaxFormLoop, Any, BeanDisplay, BeanEditForm, BeanEditor, Checkbox, DateField, Delegate, Errors, EventLink, ExceptionDisplay, Form, FormFragment, FormInjector, Grid, GridCell, GridColumns, GridPager, GridRows, Hidden, If, Label, LinkSubmit, Loop, Output, OutputRaw, PageLink, Palette, PasswordField, ProgressiveDisplay, PropertyDisplay, PropertyEditor, Radio, RadioGroup, RemoveRowLink, RenderObject, Select, Submit, SubmitNotifier, TextArea, TextField, TextOutput, Unless, Zone, t5comp/Comp1, t5comp/sub/Comp2.



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