Sorry, you wanted to relocated the html template, not the page spec, right?

Here are the rules from DefaultTemplateSource:
/**
 *  Finds the template for the given component, using the following rules:
 *  <ul>
 *  <li>If the component has a $template asset, use that
 *  <li>Look for a template in the same folder as the component
* <li>If a page in the application namespace, search in the application root
 *  <li>Fail!
 *  </ul>
 *
 *  @return the template, or null if not found
 *
 **/

You can also specify your own ITemplateSourceDelegate.

Hope this helps.

Jamie


Jamie Orchard-Hays wrote:
in your .application file:

<page name="ThePageName" specification-path="/WEB-INF/thepath/ThePageName.page"/>

[EMAIL PROTECTED] wrote:

Hi,

I would like to know how I can organize my templates
in folders, eg. have my html as
$CONTEXT_ROOT/basic/Abc.html instead of
$CONTEXT_ROOT/Abc.html

When I try to simply put the htmls in a folder inside
the context root, I (very obviously) get an error:

"Could not find template for page Abc in locale en_US"

(All the examples I have seen so far keep the html
templates in the context root, also there seemed to be
no mention of this in the user-guide)

I imagine there should be some way to configure this
in the page specification file?

Thanks and Regards,
~ amol

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to