Ok Jesse, thanks... that did it... although being picky I would have
preferred to bury it in my CustomHead component. I muted out the
instrumented stuff... but glad to use your code.
You might want to take note of that NPE... very strange.
But I appreciate you taking the time to straighten me out.
- cheers
Best regards
Ken in nashua
Markup follows...
<script type="text/javascript">djConfig =
{"isDebug":false,"baseRelativePath":"/assets/static/dojo-0.4.3/","preventBackButtonFix":false,"parseWidgets":false,"locale":"en"}
</script>
<script type="text/javascript"
src="/assets/static/dojo-0.4.3/dojo.js"></script><script
type="text/javascript" src="/assets/static/dojo-0.4.3/dojo2.js"></script>
<script type="text/javascript">
dojo.registerModulePath("tapestry", "/assets/static/tapestry");
</script>
<script type="text/javascript"
src="/assets/static/tapestry/core.js"></script>
<script type="text/javascript">
dojo.require("tapestry.namespace");
tapestry.requestEncoding='UTF-8';
</script>
<!-- Application: trails -->
<!-- Page: Login -->
<!-- Generated: Fri Jul 20 16:21:59 EDT 2007 -->
<html doctype="">
<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" />
</head>
<!-- renderContentType="false" -->
>
<body id="Body">
----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 15:38:31 -0400
Is this a bug?
NPE
java.lang.NullPointerException
Stack Trace:
org.apache.tapestry.dojo.AjaxShellDelegate.render(AjaxShellDelegate.java:121)
org.trails.demo.components.CustomHead.renderComponent(CustomHead.java:150)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:180)
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:180)
org.apache.tapestry.BaseComponent.renderComponent(BaseComponent.java:107)
org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:725)
org.apache.tapestry.services.impl.DefaultResponseBuilder.render(DefaultResponseBuilder.java:178)
org.apache.tapestry.AbstractPage.renderPage(AbstractPage.java:249)
org.apache.tapestry.engine.RequestCycle.renderPage(RequestCycle.java:397)
org.apache.tapestry.services.impl.DefaultResponseBuilder.renderResponse(DefaultResponseBuilder.java:152)
org.apache.tapestry.services.impl.ResponseRendererImpl.renderResponse(ResponseRendererImpl.java:33)
$ResponseRenderer_113e520c62b.renderResponse($ResponseRenderer_113e520c62b.java)
org.apache.tapestry.engine.PageService.service(PageService.java:68)
$IEngineService_113e520c69d.service($IEngineService_113e520c69d.java)
org.apache.tapestry.services.impl.EngineServiceOuterProxy.service(EngineServiceOuterProxy.java:72)
org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:237)
org.apache.tapestry.services.impl.InvokeEngineTerminator.service(InvokeEngineTerminator.java:54)
$WebRequestServicer_113e520c677.service($WebRequestServicer_113e520c677.java)
org.trails.i18n.LocaleFilter.service(LocaleFilter.java:26)
$WebRequestServicerFilter_113e520c675.service($WebRequestServicerFilter_113e520c675.java)
$WebRequestServicer_113e520c679.service($WebRequestServicer_113e520c679.java)
$WebRequestServicer_113e520c671.service($WebRequestServicer_113e520c671.java)
org.apache.tapestry.services.impl.WebRequestServicerPipelineBridge.service(WebRequestServicerPipelineBridge.java:61)
$ServletRequestServicer_113e520c657.service($ServletRequestServicer_113e520c657.java)
org.apache.tapestry.request.DecodedRequestInjector.service(DecodedRequestInjector.java:55)
$ServletRequestServicerFilter_113e520c653.service($ServletRequestServicerFilter_113e520c653.java)
$ServletRequestServicer_113e520c659.service($ServletRequestServicer_113e520c659.java)
org.apache.tapestry.multipart.MultipartDecoderFilter.service(MultipartDecoderFilter.java:52)
$ServletRequestServicerFilter_113e520c651.service($ServletRequestServicerFilter_113e520c651.java)
$ServletRequestServicer_113e520c659.service($ServletRequestServicer_113e520c659.java)
org.apache.tapestry.services.impl.SetupRequestEncoding.service(SetupRequestEncoding.java:53)
$ServletRequestServicerFilter_113e520c655.service($ServletRequestServicerFilter_113e520c655.java)
$ServletRequestServicer_113e520c659.service($ServletRequestServicer_113e520c659.java)
$ServletRequestServicer_113e520c64b.service($ServletRequestServicer_113e520c64b.java)
org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:126)
org.apache.tapestry.ApplicationServlet.doGet(ApplicationServlet.java:103)
javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:491)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1074)
org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:198)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:265)
org.acegisecurity.intercept.web.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:107)
org.acegisecurity.intercept.web.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:72)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:110)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.wrapper.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:81)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:229)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:286)
org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:275)
org.acegisecurity.util.FilterChainProxy.doFilter(FilterChainProxy.java:149)
org.acegisecurity.util.FilterToBeanProxy.doFilter(FilterToBeanProxy.java:98)
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1065)
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:365)
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:185)
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:689)
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:391)
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:146)
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139)
org.mortbay.jetty.Server.handle(Server.java:285)
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:457)
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:751)
org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:500)
org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:209)
org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:357)
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:329)
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:475)
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 14:07:23 -0400
Hey... whats the quickest way to Burma by Bicycle?
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 13:19:46 -0400
In firefox the folliowing line:121 produces NPE after clicking link in
application after bootstrap of webapp ... this line...
...append(_tapestryPath.buildURL()).append("\");\n");
str.append("\n<script type=\"text/javascript\">\n")
.append("dojo.registerModulePath(\"tapestry\", \"")
.append(_tapestryPath.buildURL()).append("\");\n");
str.append("</script>\n");
???
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 13:02:22 -0400
dojo undefined occurs at
dojo.require("dojo.logging.Logger"); in the markup below.
Why would this happen i IE if the following was rendered before it?
<script type="text/javascript">djConfig =
{"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/dojo/","parseWidgets":false,"locale":"en"}
</script>
<script type="text/javascript" src="/js/dojo/dojo.js"></script>
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 12:44:20 -0400
Ok, I mader some ground...
I made my CustomHead.JAVA look/act like ScriptIncludes.JAVA but had to
replace this...
<asset name="defaultDojoSource" path="classpath:/dojo/dojo.js" />
<asset name="defaultDojoPath" path="classpath:/dojo/" />
<asset name="defaultTapestrySource" path="classpath:/tapestry/core.js"
/>
<asset name="defaultTapestryPath" path="classpath:/tapestry/" />
for this...
@Asset("/js/dojo/dojo.js")
public abstract IAsset getDefaultDojoSource();
@Asset("/dojo/")
public abstract IAsset getDefaultDojoPath();
@Asset("/tapestry/core.js")
public abstract IAsset getDefaultTapestrySource();
@Asset("/tapestry/")
public abstract IAsset getDefaultTapestryPath();
here is the output... but I still get DOJO UNDEFINED message box in IE.
Jesse can you validate this markup for me? Why is dojo still undefined for
IE?
<!-- Application: trails -->
<!-- Page: Home -->
<!-- Generated: Fri Jul 20 12:39:16 EDT 2007 -->
<html renderContentType="false" doctype="">
<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" />
<script type="text/javascript">djConfig =
{"isDebug":true,"debugContainerId":"debug","baseRelativePath":"/dojo/","parseWidgets":false,"locale":"en"}
</script>
<script type="text/javascript" src="/js/dojo/dojo.js"></script>
<script type="text/javascript">
dojo.require("dojo.logging.Logger");
dojo.log.setLevel(dojo.log.getLevel("WARNING"));
</script>
<script type="text/javascript">
dojo.registerModulePath("tapestry", "/assets/static/tapestry");
</script>
<script type="text/javascript"
src="/assets/static/tapestry/core.js"></script>
<script type="text/javascript">
dojo.require("tapestry.namespace");
tapestry.requestEncoding='UTF-8';
</script>
</head>
Best regards
Ken in nashua
_________________________________________________________________
Need a brain boost? Recharge with a stimulating game. Play now!
http://club.live.com/home.aspx?icid=club_hotmailtextlink1
_________________________________________________________________
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
_________________________________________________________________
Don't get caught with egg on your face. Play Chicktionary!
http://club.live.com/chicktionary.aspx?icid=chick_hotmailtextlink2
_________________________________________________________________
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]