I have some pages, components, and assests that I put into a library. The
components and assets I have no problem accessing. However, when I try to
use a page fom the library I get an exception stating that the page cannot
be found in the namespace.
Here are my relevent files:
context/
|
|__Home.html
|
|__Home.class
|
|__WEB-INF/
|
|__classes/com/pestorich/tapestry/
|
|__Tapestry.library
|
|__pages/
|
|__CRUD.html
|
|__CRUD.class
=== app.application ===
<application>
...
<library id="mmp"
specification-path="/com/pestorich/tapestry/Tapestry.library" />
...
</application>
=== Tapestry.library ===
<library-specification>
<meta key="org.apache.tapestry.page-class-packages"
value="com.pestorich.tapestry.page" />
<meta key="org.apache.tapestry.component-class-packages"
value="com.pestorich.tapestry.component" />
</library-specification>
=== Home.html ===
...
<span jwcid="@DirectLink" listener="listener:CRUDPage">CRUD Page</span>
...
I have also tried adding namespace="ognl:namespace" ... however no change,
same problem.
=== Home.java ===
I've tried both:
public CRUD CRUDPage(IRequestCycle cycle) {
String qualifiedPageName =
getNamespace().constructQualifiedName("CRUD");
CRUD page = (CRUD)cycle.getPage(qualifiedPageName);
return page;
}
and:
@InjectPage("CRUD")
public abstract CRUD getCRUDPage();
public CRUD CRUDPage() {
return getCRUDPage();
}
I have also tried variations of "CRUD", "page.CRUD", "mmp:CRUD", and
"mmp:page.CRUD" - and always I get some variation of the Page not found in
namespace exception.
For Example (the stack trace):
Page 'CRUD' not found in application namespace.
Stack Trace:
org.apache.tapestry.resolver.PageSpecificationResolverImpl.resolve(PageSpecificationResolverImpl.java:140)
$PageSpecificationResolver_109fc31f2d0.resolve($PageSpecificationResolver_109fc31f2d0.java)
$PageSpecificationResolver_109fc31f2d1.resolve($PageSpecificationResolver_109fc31f2d1.java)
org.apache.tapestry.pageload.PageSource.getPage(PageSource.java:115)
...
I would greatly appreciate any help.
Thanks,
Mike
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]