You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by Apache Wiki <wi...@apache.org> on 2006/12/14 00:35:30 UTC
[Tapestry Wiki] Update of "PagesAndComponentsInWEB-INF" by MarkReynolds
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Tapestry Wiki" for change notification.
The following page has been changed by MarkReynolds:
http://wiki.apache.org/tapestry/PagesAndComponentsInWEB-INF
------------------------------------------------------------------------------
The following does '''not''' work for Home.[page|html] which has to reside directly under WEB-INF!
'''Also note:'''
- This will not work correctly for components until the fix for [http://issues.apache.org/jira/browse/TAPESTRY-894 TAPESTRY-894] is released.
+ This did not work correctly for components until the fix for [http://issues.apache.org/jira/browse/TAPESTRY-894 TAPESTRY-894] was released in a 4.1.1-SNAPSHOT on Dec 10, 2006.
The class:
{{{
@@ -47, +47 @@
if (namespace.isApplicationNamespace()) {
Resource componentResource = componentsBaseLocation.getRelativeResource(type + ".jwc");
if (componentResource != null)
+ try {
- return cycle.getInfrastructure().getSpecificationSource().getComponentSpecification(componentResource);
+ return cycle.getInfrastructure().getSpecificationSource().getComponentSpecification(componentResource);
+ } catch (ApplicationRuntimeException e) {
+ return null;
+ }
}
return null;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
For additional commands, e-mail: dev-help@tapestry.apache.org