RE: Changing the default location of the component template

2007-02-06 Thread Jim Roycroft
Was there something else to this? Any changes to the pages that use the component? I cannot get this to work. I presume you meant getTemplate() as opposed to get$template(). Khan, Hatim wrote: Ok, it turns out that I can do the following to change the location of a custom component

RE: Changing the default location of the component template

2007-02-06 Thread Jim Roycroft
Nevermind, get$template() was absolutely correct! Man that's ugly Jim Roycroft wrote: Was there something else to this? Any changes to the pages that use the component? I cannot get this to work. I presume you meant getTemplate() as opposed to get$template(). Khan, Hatim

Re: Changing the default location of the component template

2007-02-06 Thread andyhot
Better not use the $template asset - it's completely undocumented and could go away without notice. Go with the wiki suggestion - you can easily invent variations on it, i.e. we like keeping the templates (for both pages and components) in the same folder as the .java files - a

RE: Changing the default location of the component template

2006-11-28 Thread Khan, Hatim
Ok, it turns out that I can do the following to change the location of a custom component template: @ComponentClass(allowBody = true, allowInformalParameters = false) public abstract class Border extends BaseComponent { @Asset(context:/WEB-INF/component/my-border.html) public abstract IAsset