Regarding the JavaScript js include place an include-script element before 
the script body tag referencing the js file in the classpath, e.g.:

  <include-script resource-path="/com/mycorp/myscript.js"/>

  <body/>

Regarding the ActionLink URL do something like this:

ActionService service =
    getEngine().getServicE(IEngineService.ACTION_SERVICE);

String url = service.buildGesture(cycle, this, params).getAbsoluteURL();

Regards Malcolm

>From: "Luke Galea" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Subject: [Tapestry-developer] ActionLink with A tag
>Date: Mon, 9 Sep 2002 16:45:39 -0400
>
>I was thinking of writing a tapestry component that uses an open-source
>javascript class (one of the many out there) to display a tree.
>I have a few questions:
>             When using the shell component, how do I have a component
>require a specific javascript library included in the head? The examples
>I have of using this tree involve importing the js file in the head and
>defining the tree.. then just including it in the body. I suppose I
>could do it all inline in the body but I am still curious how to do it
>in the head if I needed to.
>
>Also, I need to provide links to the javascript in the form of a
>string.. how do I do something like an ActionLink component that just
>returns the URL instead of a whole A tag?
>
>Thanks
>
>
>Luke Galea
>Software Development
>BlueCat <http://www.bluecatnetworks.com/>  Networks
>905-762-5225
>




_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com



-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Tapestry-developer mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/tapestry-developer

Reply via email to