No errors, just some warnings about not being able to parse value of property 
'display' in the css's.  When you load the page, jsCalendar will display a 
warning if you don't have the id's that are in the setup somewhere in your page 
and I'm not getting that error either.  Page seems to display fine with the 
calendar gif (which I love much better than the button) but no popup.

Ron

----- Original Message ----
From: Matt Raible <[EMAIL PROTECTED]>
To: users@appfuse.dev.java.net
Sent: Tuesday, February 12, 2008 8:12:54 PM
Subject: Re: [appfuse-user] Struts2 and jsCalendar

Do you see any sort of JavaScript error in your console (on Firefox)?

Matt

On 2/12/08, Ron Anderson <[EMAIL PROTECTED]> wrote:
>
> I'm using the instructions from Matt on adding jsCalendar to Appfuse 2.0 /
> Struts 2 and it isn't working.  The instructions are below.
>
> I understand how the id is determined for the inputField but where does the
> button id come from?  It must have something to do with the textfield
> title="date" and I see an img tag that gets created with what I put in for
> my button: in the Calendar.setup but nothing happens when you click on it.
>
> Any ideas?  Is there anything else I might be missing?
>
>  1. Add title="date" to an <s:textfield> - for example:
>
>  <s:textfield key="person.modificationDate" required="true" cssClass="text"
> size="11" title="date"/>
>
>  2. Add the calendar scripts to your page:
>
>  <script type="text/javascript" src="<c:url
> value='/scripts/calendar/calendar.js'/>"></script>
>  <script type="text/javascript" src="<c:url
> value='/scripts/calendar/calendar-setup.js'/>"></script>
>  <script type="text/javascript" src="<c:url
> value='/scripts/calendar/lang/calendar-${pageContext.request.locale}.js'/>"></script>
>
>  3. Call Calendar.setup() from JavaScript:
>
>  <script type="text/javascript">
>     Calendar.setup({inputField:
> "personForm_person_modificationDate", ifFormat: "%m/%d/%Y",
> button: "person.modificationDateDatePicker"});
>  </script>
>
> thanks,
>
> Ron
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Reply via email to