the "/struts" folder is inside the struts-core jar, and no, you shouldn't
have to specify anything else. I'm clueless about this one, even more weird
is that you said the datepicker was showing up, even with the error.

musachy

On 5/24/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:

Hi,

I updated the source code, done a "mvn clean" and recompile
("mvn")/redeploy the jars, and I have the same errors :
XP/IE 6 :
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'

XP/FF 2 :
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

Generated HTML :
<script language="JavaScript" type="text/javascript">
    // Dojo configuration
    djConfig = {
        isDebug: true
        ,bindEncoding: "UTF-8"
          ,baseRelativePath: "/crm/struts/dojo/"
          ,baseScriptUri: "/crm/struts/dojo/"
    };
</script>
  <script language="JavaScript" type="text/javascript"
        src="/crm/struts/dojo/dojo.js"></script>

<script language="JavaScript" type="text/javascript"
        src="/crm/struts/ajax/dojoRequire.js"></script>

<link rel="stylesheet" href="/crm/struts/xhtml/styles.css"
type="text/css"/>
<script language="JavaScript" src="/crm/struts/utils.js"
type="text/javascript"></script>
<script language="JavaScript" src="/crm/struts/xhtml/validation.js"
type="text/javascript"></script>
<script language="JavaScript" src="/crm/struts/css_xhtml/validation.js"
type="text/javascript"></script>


<form id="contacts" name="contacts" onsubmit="return true;"
action="/crm/contacts.action" method="POST">
<table class="wwFormTable">
<table border="0" width="100%" height="100%">
                 <tr>
    <td class="tdLabel"><label for="contacts_dateDeb" class="label">Date
de début
:&nbsp;</label></td>
    <td
><div
     dojoType="struts:StrutsDatePicker"    id="contacts_dateDeb"
name="dateDeb"    inputName="dojo.dateDeb"    displayFormat="dd/MM/yyyy"
saveFormat="rfc"></div>
</td>
</tr>
</table>
</table></form>


I don't have any folder named /crm/struts/... Is that normal that the
head.ftl generates this ? Do I have to copy some files from
dojo-plugin/resources to /crm/struts ? Or specify another baseRelativePath
?

Thanks for your help.

Regards,

Michaël



[EMAIL PROTECTED]
23/05/2007 17:43
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






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





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

Reply via email to