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


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

Reply via email to