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
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
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
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