Hi Hao,
Based on my knowledge of Struts 1.2 I would guess that the
<sx:datatimepicker/> tag is most likely some javascript, images, html
and possibly using ajax calls to render a calendar menu item.
I think that the reason those Struts tags are not working is that
SiteMesh is setup to decorate the contents of what is rendered by
<sx:datatimepicker/>. Here is how I would solve the problem,
1. Turn off sitemesh and use a tool like iewatch to determine
generally where the resources (css, html, js ect...) of the struts
tags are being pulled from
2. Ensure that your excludes from decorator.xml covers the top level
paths of the resources of the struts tags
3. Makes your decorator pattern and your view folder specific. For
example, in most of my applications I keep all my jsp and servlets in
specific location. For a simple Struts 1.2 application I might use the
following patterns,
1. <pattern>/view/*.do</pattern>
2. <pattern>/view/*.jsp</pattern>
I am not done writing the tutorials yet, but this might be helpful,
http://www.sitemesh.homeip.net/wiki/display/sitemesh/Learn+-+Getting+Started+with+SiteMesh
Note that this site is using a temporary domain name will change in
the future most likely to
http://docs.sitemesh.org
Hope that helps.
Tin
On 21 June, 02:13, hao wang <
f1v...@gmail.com> wrote:
> Hi Tin,
>
> Thank you very much for your kindness.I just want to unify my project
> styles, there are some pages contain struts2 tags, like:
>
> <s:form name="editForm" action="save" method="post" >
> <s:textfield name="task.memoname" maxlength="50"
> label="memoname"></s:textfield>
> <s:textfield name="task.taskname" maxlength="50"
> label="taskname"></s:textfield>
> <sx:datetimepicker name="task.date" label="date" ></sx:datetimepicker>
> <s:submit value="submit"></s:submit>
>
> but if I configure sitemesh on these pages, tags like <sx:datatimepicker/>
> will not work. And tag <sx:tabbedpanel > can't work too. So I want to
> someone can help me solve them, or I may use another frame instead of
> struts2 or sitemesh.
>
> Regards,
> -Hao
>
> 2011/6/21 phamti <
tin.p...@gmail.com>
> >
http://opensource.adobe.com/wiki/display/blazeds/BlazeDS- is powered by