RE: What do you need to do to add a new screen ?

2004-11-17 Thread Hampton, Thomas
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

RE: What do you need to do to add a new screen ?

2004-11-17 Thread Hampton, Thomas
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.

Re: What do you need to do to add a new screen ?

2004-11-16 Thread David Sean Taylor
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

RE: What do you need to do to add a new screen ?

2004-11-16 Thread Hampton, Thomas
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

Re: What do you need to do to add a new screen ?

2004-11-16 Thread David Sean Taylor
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