if (LOG.isDebugEnabled())
LOG.debug("Resolving unknown page '" + _simpleName + "' in " + namespace);
String expectedName = _simpleName + ".page";
IResourceLocation namespaceLocation = namespace.getSpecificationLocation();
// See if there's a specification file in the same folder
// as the library or application specification that's
// supposed to contain the page.
if (found(namespaceLocation.getRelativeLocation(expectedName)))
return;
if (namespace.isApplicationNamespace())
{
// The application namespace gets some extra searching.
if (found(getWebInfAppLocation().getRelativeLocation(expectedName)))
return;
if (found(getWebInfLocation().getRelativeLocation(expectedName)))
return;
if (found(getApplicationRootLocation().getRelativeLocation(expectedName)))
return;
// The wierd one ... where we see if there's a template in the application root location.
String templateName = _simpleName + "." + getTemplateExtension();
IResourceLocation templateLocation =
getApplicationRootLocation().getRelativeLocation(templateName);
if (templateLocation.getResourceURL() != null)
{
setupImplicitPage(templateLocation);
return;
}