struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <newton.d...@yahoo.com>
Subject Re: Setting isDebug="true" for AJAX theme
Date Sun, 08 Apr 2007 01:22:14 GMT
--- Eduardo Kortright <ekortright@gmail.com> wrote:
> Hmm.  I still see two instances of this error:

The changes do not propagate to the live wiki
immediately.

The top snippet (whose output you can see by viewing
the source of your page that uses the <s:head.../> tag
is:

<script language="JavaScript" type="text/javascript">
    // Dojo configuration
    djConfig = {
        isDebug:
${parameters.debug?default(false)?string},
        bindEncoding: "${parameters.encoding}",
        <#if parameters.baseRelativePath?if_exists !=
"">
          baseRelativePath: "<@s.url
value='${parameters.baseRelativePath}'
includeParams='none' encode='false' />",
          baseScriptUri: "<@s.url
value='${parameters.baseRelativePath}'
includeParams='none' encode='false' />",
        <#else>
          baseRelativePath: "<@s.url
value='/struts/dojo/' includeParams='none'
encode='false' />",
          baseScriptUri: "<@s.url
value='/struts/dojo/' includeParams='none'
encode='false' />",
        </#if>  
        <#if parameters.locale?if_exists != "">
          locale: "${parameters.locale}",
        </#if>
        <#if parameters.extraLocales?exists>
          extraLocale: [
        	<#list parameters.extraLocales as locale>
        		"${locale}",
        	</#list>
          ]
        </#if>
    };
</script>

<#if parameters.compressed?default(true)>
  <#assign dojoFile="dojo.js">
<#else>
  <#assign dojoFile="dojo.js.uncompressed.js">
</#if>

<#if parameters.cache?default(false)>
  <#assign profile="struts_">
<#else>
  <#assign profile="">
</#if>           

<#if parameters.baseRelativePath?if_exists != "">
  <script language="JavaScript" type="text/javascript"
        src="<@s.url
value='${parameters.baseRelativePath}/${profile}${dojoFile}'
includeParams='none' encode='false'  />"></script>
<#else>
  <script language="JavaScript" type="text/javascript"
        src="<@s.url
value='/struts/dojo/${profile}${dojoFile}'
includeParams='none' encode='false'  />"></script>
</#if>  

<script language="JavaScript" type="text/javascript"
        src="<@s.url
value='/struts/ajax/dojoRequire.js'
includeParams='none' encode='false'  />"></script>
<script language="JavaScript" type="text/javascript"
        src="<@s.url
value='/struts/CommonFunctions.js'
includeParams='none' encode='false'/>"></script>

The bottom snippet is irrelevent; it's the
<s:head.../> stuff.

d.



 
____________________________________________________________________________________
Looking for earth-friendly autos? 
Browse Top Cars by "Green Rating" at Yahoo! Autos' Green Center.
http://autos.yahoo.com/green_center/

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message