Thanks! That was exactly what I was looking for :) (although I looked up the javadocs after reading your mail and couldnt locate the rules in the javadocs)
Anyway, in case someone stumbles across this thread here is the exact solution - In Abc.page (page specification file) added the following: <context-asset name="$template" path="/thepath/Abc.html"/> Thanks and Regards, ~ amol --- Jamie Orchard-Hays <[EMAIL PROTECTED]> wrote: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
