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 left.vm to a JSP template ? Thanks, Tom -----Original Message----- From: David Sean Taylor [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 16, 2004 11:58 PM To: Jetspeed Users List Subject: Re: What do you need to do to add a new screen ? 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 $jslink.getTemplate("Page2") from the Left.vm file ? > > Where are things like jslink, link, jlink, and clink documented, I've looked around but am not finding where these things are documented. How do I know what these references are and what methods are available on them ? > Its documented in the JetspeedLink.java interface http://cvs.apache.org/viewcvs.cgi/jakarta-jetspeed/src/java/org/apache/j etspeed/util/template/JetspeedLink.java?rev=1.15&view=markup The $jslink is self-documented with examples in the "JSLink Examples" portlet. Add this portlet to your page with the customizer and you will see The other variations ($clink, $link, $jlink) we tried to deprecate. > Thanks for your help. > Tom > > ________________________________ > > From: David Sean Taylor [mailto:[EMAIL PROTECTED] > Sent: Tue 11/16/2004 6:38 PM > To: Jetspeed Users List > Subject: Re: What do you need to do to add a new screen ? > > > > 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 href="$jslink.getTemplate("EditAccount")"> >> <img src="images/leftnav_api.gif" border="0"> >> </a> >> </td> >> </tr> >> >>What I want to happen is for the "Page2" screen to come up the same way >>the "EditAccount" screen does. But I just get a blank page. The >>EditAccount screen comes up ok. So I'm sure that I have not done >>something that is needed to "register" the "Page2" screen template, but >>I don't know what I'm missing. The "Page2" template just has static >>text in it right now. >> >>What am I missing ? >> >> > > $jslink.getPage gets a PSML page, not a turbine template > I think you may be confusing it with $link.getPage > Why not use $jslink.getTemplate here too > > -- > David Sean Taylor > Bluesunrise Software > [EMAIL PROTECTED] > [office] +01 707 773 4646 > [mobile] +01 707 529 9194 > > --------------------------------------------------------------------- > 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] -- David Sean Taylor Bluesunrise Software [EMAIL PROTECTED] [office] +01 707 773 4646 [mobile] +01 707 529 9194 --------------------------------------------------------------------- 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]