You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Eduardo Kortright <ek...@gmail.com> on 2007/04/08 02:14:03 UTC

Setting isDebug="true" for AJAX theme

Hi again,

Can anyone tell me how to turn on debugging (DOJO config var "isDebug")?

The page http://struts.apache.org/2.0.6/docs/ajax-head-template.html seems
to have some errors in it and I can't tell what the procedure is for setting
isDebug to true.

Thanks

-- 
Eduardo Kortright

Re: Setting isDebug="true" for AJAX theme

Posted by Dave Newton <ne...@yahoo.com>.
--- Eduardo Kortright <ek...@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


Re: Setting isDebug="true" for AJAX theme

Posted by Eduardo Kortright <ek...@gmail.com>.
Hmm.  I still see two instances of this error:

     Error formatting macro: snippet: java.lang.IllegalArgumentException:
Invalid url: must begin with a configured prefix.

The first occurrence is after the words "The contents of head.ftl are:", and
the second is after the words "simply do the following in your HTML:"
Thanks for your prompt responses in any case.

--
Eduardo




On 4/7/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- Eduardo Kortright <ek...@gmail.com> wrote:
> > The page
> >
> http://struts.apache.org/2.0.6/docs/ajax-head-template.html
> > seems to have some errors in it [...]
>
> Fixed(-ish).
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> Finding fabulous fares is fun.
> Let Yahoo! FareChase search your favorite travel sites to find flight and
> hotel bargains.
> http://farechase.yahoo.com/promo-generic-14795097
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Eduardo Kortright

Re: Setting isDebug="true" for AJAX theme

Posted by Eduardo Kortright <ek...@gmail.com>.
Thanks.  Now I only have to figure out why <s:div theme="ajax"> gives a
dojo.widget.parse error when the URL is a remote website, but not when it is
a page on a local web server.

--
Eduardo


On 4/7/07, Dave Newton <ne...@yahoo.com> wrote:
>
> --- Eduardo Kortright <ek...@gmail.com> wrote:
> > Can anyone tell me how to turn on debugging (DOJO
> > config var "isDebug")?
>
> <s:head theme="ajax" debug="true"/>
>
> d.
>
>
>
>
>
> ____________________________________________________________________________________
> Bored stiff? Loosen up...
> Download and play hundreds of games for free on Yahoo! Games.
> http://games.yahoo.com/games/front
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
>
>


-- 
Eduardo Kortright

Re: Setting isDebug="true" for AJAX theme

Posted by Dave Newton <ne...@yahoo.com>.
--- Eduardo Kortright <ek...@gmail.com> wrote:
> The page
>
http://struts.apache.org/2.0.6/docs/ajax-head-template.html
> seems to have some errors in it [...]

Fixed(-ish).

d.



 
____________________________________________________________________________________
Finding fabulous fares is fun.  
Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains.
http://farechase.yahoo.com/promo-generic-14795097

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


Re: Setting isDebug="true" for AJAX theme

Posted by Dave Newton <ne...@yahoo.com>.
--- Eduardo Kortright <ek...@gmail.com> wrote:
> Can anyone tell me how to turn on debugging (DOJO
> config var "isDebug")?

<s:head theme="ajax" debug="true"/>

d.



 
____________________________________________________________________________________
Bored stiff? Loosen up... 
Download and play hundreds of games for free on Yahoo! Games.
http://games.yahoo.com/games/front

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