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 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.15view=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]



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.  What's even more weird is that the top  bottom are still
rendering top.vm  bottom.vm.

Any insight as to what I'm doing wrong ?  I feel like I'm missing
something simple here.


Thanks,
Tom

-Original Message-
From: Hampton, Thomas [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, November 17, 2004 9:46 AM
To: Jetspeed Users List
Subject: RE: What do you need to do to add a new screen ?

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.15view=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]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



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

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




Tom Hampton
Sr. Software Engineer / Architect
SRA International, Inc.
[EMAIL PROTECTED]
Phone 240-221-2012
Fax 240-221-2001




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


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

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 
$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/jetspeed/util/template/JetspeedLink.java?rev=1.15view=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]