Sitemesh2 and Struts2-JQuery-Plugin datepicker not showing calendar icon.

491 views
Skip to first unread message

SansunS

unread,
Nov 25, 2012, 12:59:30 PM11/25/12
to sitemes...@googlegroups.com
Hi
I am new to Sitemesh and Struts2-JQuery-Plugin. I have an web app that uses a Sitemesh 2.4.1 and Struts2-Core 2.2.3. Currently it uses
Struts Tags for the input of text fields (eg: <s:textfield label="User Name" name="username" />. ). I wanted to add a date field using a date picker. I have tried Struts2-Dojo_Plugin 2.2.3 and/or Struts-JQuery-Plugin 3.4.0. Both the plugins when tried together or independently is not displaying the Calendar icon. These date pickers are working if I am not using Sitemesh. Wonder anyone experienced this problem. I have tried all I could found in the forums without any help.

Here is what I have in the index.jsp file.

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>
.
.
.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>This is the Index Page Title</title>
<sx:head />
<sj:head loadAtOnce="true"/>
</head>
<body>
    <h3>Hello SimpleEvents</h3>
    <sj:dialog id="mydialog1" title="Local Dialog">
     Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.
   </sj:dialog>
    <s:form id="form" theme="xhtml">
      <sj:datepicker id="date0" label="Select a Date" />
    
    </s:form>
   
    <sx:datetimepicker tooltip="Select Your Birthday" label="Birthday"
        name="dt" />
</body>

I didnt get any calendar icons and no error code either. Appreciate any help to get the calendar icon working, I am open to any other options that available.

Thank you






phamti

unread,
Nov 25, 2012, 10:42:24 PM11/25/12
to sitemes...@googlegroups.com
Hi,

My first thought is that this may be a path rendering issue. Decorators must use full paths when referencing files as described in the SiteMesh tutorial.

I believe I can help if you could post the following,
  1. Decorator file.
  2. The page being decorated.
  3. Rendered html source code of the working page.
  4. Rendered html source code of the not working page.

Tin
Reply all
Reply to author
Forward
0 new messages