I have the s:head tag in the decorator as follows:
*************************************************
<%@ include file="/common/taglibs.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<%@ include file="/common/meta.jsp" %>
<title><decorator:title/> | <fmt:message
key="webapp.name"/></title>
<s:head theme="ajax" debug="true"/>
<link rel="stylesheet" type="text/css" media="all" href="<c:url
value='/styles/${appConfig["csstheme"]}/loadza.css'/>" />
<link rel="stylesheet" type="text/css" media="print"
href="<c:url
value='/styles/${appConfig["csstheme"]}/print.css'/>" />
<script type="text/javascript" src="<c:url
value='/scripts/global.js'/>"></script>
<decorator:head/>
</head>
<body<decorator:getProperty property="body.id"
writeEntireProperty="true"/><decorator:getProperty property="body.class"
writeEntireProperty="true"/>>
.
.
****************************************************************************
I commented out the sitemesh filter so its not used at all and moved the
s:head tag to the page in question and I still get exactly the same
errors....
Puzzling...
Andrew
mraible wrote:
>
> Do you have any better success if you add <s:head> to a <head> tag?
> What about if you disable SiteMesh by commenting out the
> filter-mapping in web.xml?
>
> Matt
>
> On 5/24/07, APenrose <[EMAIL PROTECTED]> wrote:
>>
>> Hi Guys,
>> Our environment: Appfuse 2 m4, struts2 with dojo 0.4 i think and
spring
>>
>> Problem: We are trying to get the datetimepicker and doubleselect
>> working,
>> but they just wont work for us.
>>
>> Illustrated by:
>> With datatimepicker we are getting the following erors as an
exception:
>> There is no Action mapped for namespace
/struts/dojo/src/widget/templates
>> and action name DatePicker.
>>
>> And the with debug=true in the ajax s:head we are getting the
following
>> on
>> in IE
>> DEBUG: dojo.widget.Parse: error:[object Error]
>>
>> I was also getting an error to do with widget ID collision with an
ID but
>> when I moved the code on the page from out of table tags it went.
>>
>> Here is the page with the datatimepicker...I had also added the
showcase
>> datetimepicker as well to see if they would work...
>>
>> *************************************
>> <%@ include file="/common/taglibs.jsp"%>
>>
>> <title><fmt:message key="search.title"/></title>
>> <body id="coverLetterBuilder"/>
>> <table>
>> <s:datetimepicker label="toggleType='wipe'" value="2006-10-31"
>> toggleType="wipe" toggleDuration="300" name="test"/>
>> <s:datetimepicker label="toggleType='explode'" value="2006-07-22"
>> toggleType="explode" toggleDuration="500"/>
>> <s:datetimepicker label="toggleType='fade'" value="2006-06-30"
>> toggleType="fade" toggleDuration="500"/>
>> <s:datetimepicker label="With value='today'" name="dddp1"
>> value="today"
>> />
>> <s:datetimepicker label="US format, empty" name="dddp2"
>> language="en-us"
>> />
>> <s:datetimepicker label="US format with initial date of
2006-06-26"
>> name="dddp3" value="2006-06-26" language="en-us" />
>> <s:datetimepicker label="With initial date of 1969-04-25 and a
custom
>> format dd/MM/yyyy" name="dddp5" value="25/04/1969"
>> displayFormat="dd/MM/yyyy" />
>> <s:datetimepicker label="In German" name="dddp7"
value="2006-06-28"
>> language="de" />
>> <s:datetimepicker label="In Dutch" name="dddp8"
value="2006-06-28"
>> language="nl" />
>> <s:datetimepicker label="US format with initial date of
2006-06-26
>> and
>> long formatting (parse not supported)" name="dddp12"
value="2006-06-26"
>> formatLength="long" language="en-us" />
>> <s:datetimepicker label="German format with initial date of
>> 2006-06-26
>> and long formatting (parse not supported)" name="dddp13"
>> value="2006-06-26"
>> formatLength="long" language="de" />
>> </table>
>>
>> <!-- main content -->
>> <h2><fmt:message key="coverLetterBuilder.title"/></h2>
>>
>> <fmt:message key="coverLetterBuilder.message"/>
>> <br/>
>> <strong><fmt:message key="coverLetterBuilder.note"/></strong>
>> <fmt:message key="coverLetterBuilder.note.message"/>
>>
>> <!-- start of form -->
>> <s:form method="post" validate="true">
>> <h3><fmt:message
>> key="coverLetterBuilder.information.heading"/></h3>
>> <s:datetimepicker name="candidateCoverLetter.dateAdded"
>> label="%{getText('coverLetterBuilder.detail.date')}"
>> displayFormat="dd/MM/yyyy"/>
>> <!-- start of button panel -->
>> <li>
>> <s:submit key="coverLetterBuilder.cancelButton"
>> action="cancelBuiltCoverLetter"/>
>> <s:submit key="coverLetterBuilder.saveButton"
>> action="saveBuiltCoverLetter"/>
>> <s:submit key="coverLetterBuilder.previewButton"
>> action="previewBuiltCoverLetter" targets="_blank"/>
>> </li>
>> <!-- end of button panel -->
>> <!-- end of table -->
>> </s:form>
>> <!-- end of form -->
>>
>> <!-- end of main content -->
>>
>> *****************************************
>>
>> I added these in the excldues in the decorator.xml
>>
>> <pattern>/struts/*</pattern>
>> <pattern>/scripts/*</pattern>
>> <pattern>/dojo/*</pattern>
>>
>> *****************************************
>> My web.xml has the following for the static filter...should it be
>> /scripts/dojo or struts/dojo ?
>>
>> <filter>
>> <filter-name>staticFilter</filter-name>
>>
>> <filter-class>org.appfuse.webapp.filter.StaticFilter</filter-class>
>> <init-param>
>> <param-name>includes</param-name>
>> <param-value>/scripts/dojo/*</param-value>
>> </init-param>
>> </filter>
>> ***************************************************
>> And to top it all I extracted the dojo jar file into
/webapp/scripts to
>> see
>> if that would make a difference.
>> ***************************************************
>>
>> As you can see it's not from lack of trying to solve this, but havent
>> managed it yet.
>>
>> Any help appreciated
>> Andrew
>> --
>> View this message in context:
>>
http://www.nabble.com/Dojo-Struts2-...-datetimepicker%2C-doubleselect...wont-work-for-us.-tf3811157s2369.html#a10787366
>> Sent from the AppFuse - User mailing list archive at Nabble.com.
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
> --
> http://raibledesigns.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Dojo-Struts2-...-datetimepicker%2C-doubleselect...wont-work-for-us.-tf3811157s2369.html#a10788358
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]