So it seems I have to tell my Customhaed.JAVA to act like ScriptIncludes.JAVA

Best regards
Ken in nashua



----Original Message Follows----
From: "Ken nashua" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], users@tapestry.apache.org
Subject: Re: dojo undefined in IE.6 for tapestry-4.1.2-SNAPSHOT
Date: Fri, 20 Jul 2007 11:05:10 -0400

ScriptIncludes is not usable as-is within a CustomHead.JAVA component. It just gets written out with the markup as follows:

<span [EMAIL PROTECTED]/> and becomes unevaluated/processed... just text.

I was hoping you could elaborate on original suggested solution:
you'll still need to provide it with path information to include the js correctly.

Best regards
Ken in nashua



----Original Message Follows----
From: "Ken nashua" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], users@tapestry.apache.org
Subject: Re: dojo undefined in IE.6 for tapestry-4.1.2-SNAPSHOT
Date: Fri, 20 Jul 2007 10:08:57 -0400

So this is all that got called... any idea what I'm missing?

public class BaseTagWriter implements IRender
{

   public void render(IMarkupWriter writer, IRequestCycle cycle)
   {
       IPage page = cycle.getPage();

       StringBuffer sb = new StringBuffer();
       sb.append("/");

       if (page.getNamespace().getId() == null)
       {
           String name = page.getPageName();
           int slashx = name.lastIndexOf('/');

           // Include the directory and trailing slash.
           if (slashx > 0)
               sb.append(name.substring(0, slashx + 1));
       }

       String url = cycle.getAbsoluteURL(sb.toString());

       writer.beginEmpty("base");
       writer.attribute("href", url);
       writer.printRaw("<!--[if IE]></base><![endif]-->");

       writer.println();
   }

Best regards
Ken in nashua



----Original Message Follows----
From: "Ken nashua" <[EMAIL PROTECTED]>
To: users@tapestry.apache.org
CC: [EMAIL PROTECTED]
Subject: Re: dojo undefined in IE.6 for tapestry-4.1.2-SNAPSHOT
Date: Fri, 20 Jul 2007 10:03:08 -0400

Thanks Jesse... I need to use my CustomHead so ScriptIncludes is not possible.

I went with your former suggestion and still not getting the includes to happen. Could you elaborate on the file path specs? Not sure how to do that.

Here are my details. thanks

I added this to my CustomHead.JAVA

                        IRender ajaxDelegate = getAjaxDelegate();
                        if (ajaxDelegate != null)
                                ajaxDelegate.render(writer, cycle);

and Customhead.jwc

<!DOCTYPE component-specification PUBLIC "-//Apache Software Foundation//Tapestry Specification 4.0//EN" "http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";>
<component-specification class="org.trails.demo.components.CustomHead"
                                                 allow-body="yes"
                                                 
allow-informal-parameters="yes">

        <component id="customhead" inherit-informal-parameters="no" 
type="Shell">
                <inherited-binding name="stylesheet" 
parameter-name="stylesheet"/>
                <inherited-binding name="title" parameter-name="title"/>

                <inherited-binding name="ajaxDelegate" 
parameter-name="ajaxDelegate"/>
<!-- <inherited-binding name="coreAjaxDelegate" parameter-name="coreAjaxDelegate"/> -->

<!-- <inherited-binding name="defaultDojoSource" parameter-name="defaultDojoSource"/> --> <!-- <inherited-binding name="defaultDojoPath" parameter-name="defaultDojoPath"/> --> <!-- <inherited-binding name="defaultTapestrySource" parameter-name="defaultTapestrySource"/> --> <!-- <inherited-binding name="defaultTapestryPath" parameter-name="defaultTapestryPath"/> -->
        </component>

Here is the markup output:
<!-- Application: trails -->
<!-- Page: Home -->
<!-- Generated: Fri Jul 20 10:01:02 EDT 2007 -->
<html doctype="" renderContentType="false">
<head>
<meta name="generator" content="Tapestry Application Framework, version 4.1.2" />
<title>Best WEB Application on the planet!</title>
<link rel="stylesheet" type="text/css" title="don't select" href="/styles/tapestryskin/theme.css" />

<base href="http://localhost:8080/"; /><!--[if IE]></base><![endif]-->
</head>

<body id="Body">

Best regards
Ken in nashua

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01

_________________________________________________________________
Local listings, incredible imagery, and driving directions - all in one place! http://maps.live.com/?wip=69&FORM=MGAC01

_________________________________________________________________
http://newlivehotmail.com

_________________________________________________________________
http://liveearth.msn.com


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

Reply via email to