Library Namespaces throws an exception when declaring a component in
sub-components package
-------------------------------------------------------------------------------------------
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
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 is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.