This is my preferred approach to baseRelativePath, though:

<html jwcid="@Shell" title="ognl:'SomeTitle">

   <script type="text/javascript">
       djConfig = {
       parseWidgets: false,
       isDebug: false,
baseRelativePath: '<span jwcid="@Insert" value="ognl:baseURL + '/js/dojo/'" />'
     };
</script>
<script jwcid="@Any" type="text/javascript" src="ognl:baseURL + '/js/dojo/dojo.js'"></script>

And in Border.java:

   @InjectObject("infrastructure:request")
   public abstract WebRequest getWebRequest();

   public String getBaseURL() {
       return getWebRequest().getContextPath();
   }

Dojo would be of course, inside /js/dojo under the context root.

--
Ing. Leonardo Quijano Vincenzi
DTQ Software



Joseph Hannon wrote:
Jesse,

Sure did, many times. The relative path appended to my context root url does indeed show my js. I was thinking there may be something wrong with my path based on the error below. If my path is correct, then what would you say is amiss below?

Thanks,
Joseph

Jesse Kuhnert wrote:
Did you read this? http://tacos.sourceforge.net/userguide/Setup.html  ?

You'll know if you've configured the base relative path correctly if you can take that string and add it to your context root url and see ye good ol javascript come in.

On 4/6/06, *Joseph Hannon* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

Anyone? Perhaps other people wanting to try out Tacos are having the same issues as me. Assistance on these type of issues may help with the
    adoption of Tacos.

    Thanks,
    Joseph

    jah.volcano wrote:
> Using Tacos 4 beta 1, Tapestry 4.0. I am attempting to try out the > InlineEditBox on one of my pages. It appears that there is something
     > wrong with my baseRelativePath setting in the djConfig
    section.  I have
     > a js/dojo/.... dir at the top of my context dir.  I have included
    some
     > snips of files below.  Any ideas?
     >
     > Thanks,
     > Joseph
     >
     > --- Dojo errors ---
     >
     > This console displays your debug information
     > DEBUG: NO Floating pane widget found with id:debugconsole
     > DEBUG: Creating InlinedEditBox widget with value Dancing
     > DEBUG: DEPRECATED: dojo.widget.fromScript use
    dojo.widget.createWidget
     > instead
     > DEBUG: DEPRECATED: dojo.dom.createNodesFromText use
     > dojo.html.createNodesFromText instead
     > DEBUG: ERROR: On line 0 of document : uncaught exception:
    [Exception...
     > "Component returned failure code: 0x80004003
    (NS_ERROR_INVALID_POINTER)
     > [nsIDOMHTMLElement.appendChild]" nsresult: "0x80004003
     > (NS_ERROR_INVALID_POINTER)" location: "JS frame ::
     > http://localhost:8081/apply/js/dojo/dojo.js
    <http://localhost:8081/apply/js/dojo/dojo.js> :: anonymous :: line
    224" data:
     > no]
     >
     > --- dojo.js ---
     >
     > dojo.hostenv.getBaseScriptUri=function(){
     > if(djConfig.baseScriptUri.length){
     > return djConfig.baseScriptUri ;
     > }
     > var uri=new
    String(djConfig.libraryScriptUri||djConfig.baseRelativePath);
     > if(!uri){
     > dojo.raise("Nothing returned by getLibraryScriptUri(): "+uri);
     > }
     > var _33=uri.lastIndexOf ("/");
     > djConfig.baseScriptUri=djConfig.baseRelativePath;
     > return djConfig.baseScriptUri;                        // ****
    line 224
     > };
     >
     > --- border.html ---
     >
     > djConfig = { isDebug: true,
     >             baseRelativePath: "js/dojo",
     >             preventBackButtonFix: false,
     >             parseWidgets: false
     >           };
     >
     >
     >
     >
     > -------------------------------------------------------
     > This SF.Net email is sponsored by xPML, a groundbreaking
    scripting language
> that extends applications into web and mobile media. Attend the live
     > webcast
     > and join the prime developer group breaking into this new coding
    territory!
     >
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>



    -------------------------------------------------------
    This SF.Net email is sponsored by xPML, a groundbreaking scripting
    language
    that extends applications into web and mobile media. Attend the live
    webcast
    and join the prime developer group breaking into this new coding
    territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 <http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642>
    _______________________________________________
    Tacos-devel mailing list
    [email protected]
    <mailto:[email protected]>
    https://lists.sourceforge.net/lists/listinfo/tacos-devel
    <https://lists.sourceforge.net/lists/listinfo/tacos-devel>




--
Jesse Kuhnert
Tacos/Tapestry, team member/developer

Open source based consulting work centered around dojo/tapestry/tacos/hivemind. http://opennotion.com



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Tacos-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tacos-devel

Reply via email to