I get all the SVN workspace this morning, I didn't have it before...

I resolved the javascript bug saying "unterminated string" by modifing the 
head.ftl : I set the "," before each parameter, elsewhere whe have a "," 
for the last parameter.
<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: "${base}/struts/dojo/"
          ,baseScriptUri: "${base}/struts/dojo/"
        </#if> 
        <#if parameters.locale?if_exists != "">
          ,locale: "${parameters.locale}"
        </#if>
        <#if parameters.extraLocales?exists>
          ,extraLocale: [
                <#list parameters.extraLocales as locale>
                        "${locale}",
                </#list>
          ]
        </#if>
    };
</script>

Now I have these errors :
DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be removed 
in version: 0.5
DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in 
version: 0.5
DEBUG: failed loading /crm/struts/dojo/struts/widget/StrutsTreeSelector.js 
with error: [SyntaxError: Identificateur, chaîne ou nombre attendu]
FATAL exception raised: Could not load 'struts.widget.StrutsTreeSelector'; 
last tried '__package__.js'
DEBUG: failed loading /crm/struts/dojo/struts/widget/__package__.js with 
error: [Error: Could not load 'struts.widget.StrutsTreeSelector'; last 
tried '__package__.js']
FATAL exception raised: symbol 'struts.widget' is not defined after 
loading '__package__.js'

I add a folder struts/dojo in my "WebContent" folder, containing the 
resource of dojo-plugin "resources\org\apache\struts2\static\dojo\struts", 
but the same errors occures :/


Michaël



"Musachy Barroso" <[EMAIL PROTECTED]> 
23/05/2007 17:30
Veuillez répondre à
"Struts Users Mailing List" <user@struts.apache.org>


A
"Struts Users Mailing List" <user@struts.apache.org>
cc

Objet
Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error






Can you do a maven clean and recompile/redeploy? In the last days I've 
been
making changes that could result in that kind of problem, but at least it
was fine on the weekend, and it is working for me now (XP\FF)

musachy

On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 
wrote:
>
> In Firefox I have this :
> DEBUG: DEPRECATED: dojo.event replaced by dojo.event.* -- will be 
removed
> in version: 0.5
> DEBUG: DEPRECATED: dojo.io replaced by dojo.io.* -- will be removed in
> version: 0.5
>
> But nothing in IE.
>
> Just to say, the datepicker is working fine (it opens, I can choose a
> date, it fills the input), but I have this javascript error, and my HTML
> page is not good rendered.
>
>
> Michaël
>
>
>
> "Musachy Barroso" <[EMAIL PROTECTED]>
> 23/05/2007 15:12
> Veuillez répondre à
> "Struts Users Mailing List" <user@struts.apache.org>
>
>
> A
> "Struts Users Mailing List" <user@struts.apache.org>
> cc
>
> Objet
> Re: [S2 v2.1.0] DateTimePicker : Dojo javascript error
>
>
>
>
>
>
> that usually means that there is a javascript error in one of the struts
> dojo widgets. If you set debug="true" on the head tag you should a lot 
of
> errors on the page.
>
> musachy
>
> On 5/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> >
> > Hi all,
> >
> > I try to insert a datetimepicker tag in my JSP, and I have the 
following
> > javascript error  :
> > symbol 'struts.widget' is not defined after loading '__package__.js'
> >
> > here is my JSP :
> > <%@ taglib uri="/struts-dojo-tags" prefix="sx"%>
> >
> > <sx:head />
> > <s:form action="contacts">
> >
> > <table border="0" width="100%" height="100%">
> >         <tr>
> >                 <td>
> >                         <sx:datetimepicker name="dateDeb" label=
> > "test.datepicker" />
> >                 </td>
> >         </tr>
> > </table>
> >
> > </s:form>
> >
> > I'm in version 2.1.0-SNAPSHOT (of today) for "core",
> "codebehind-plugin",
> > "dojo-plugin", "sitemesh-plugin", "spring-plugin" and "tiles-plugin"
> jars.
> >
> > What's wrong ?
> >
> > Thanks for your help,
> >
> > Regards,
> >
> > Michaël
>
>
>
>
> --
> "Hey you! Would you help me to carry the stone?" Pink Floyd
>
>


-- 
"Hey you! Would you help me to carry the stone?" Pink Floyd

Reply via email to