David,
Thank you. The jslink example helps a lot.
The $jslink.getTemplate(Page2) is working. But I also have some
templates that are JSP. The $jslink.getTemplate() method seems to only
be finding VM templates and not the JSP templates. Is it possible to
link from a VM template such as
Ok, so I changed the code in left.vm to the following
Jslink.getTemplate(Page2.jsp)
This caused the template to be found but also caused left.jsp to be
rendered instead of left.vm which confuses me. I would have expected
left.vm to be rendered using velocity and for Page2 to be rendered by
JSP.
Hampton, Thomas wrote:
I created a new screen template in the
webapp\WEB-INF\templates\vm\screens\html directory. Then I modified the
left.vm file as follows.
td
a href=$jslink.getPage(Page2)
img src=images/leftnav_api.gif border=0
/a
/td
/tr
tr
td
a
Right, so I changed it to $jslink.getTemplate() but it still does not bring up
my screen. Still a blank screen.
Is there anything else that needs to be done besides creating the Page2.vm file
and putting it in the correct directory and then calling
$jslink.getTemplate(Page2) from the Left.vm
Hampton, Thomas wrote:
Right, so I changed it to $jslink.getTemplate() but it still does not bring up
my screen. Still a blank screen.
Is there anything else that needs to be done besides creating the Page2.vm file and
putting it in the correct directory and then calling