tks for ur reply,
 
but i expect when build calendar list in the action class, can assign the 
element of list(calendar) with clickable feature or highlight color, for 
example, the pop calendar display as following
 
 S M T W T F S
     1 2 3 4 5 6 7
  9 10 ....          
 
but Tuesday (2) color need to be  different color, such as blue, which refer to 
special event..(map to the data from database).
 
tks in advance
 
john 
 
 
 

--- On Sat, 4/11/09, Martin Gainty <mgai...@hotmail.com> wrote:


From: Martin Gainty <mgai...@hotmail.com>
Subject: RE: <s:datetimepicker
To: "Struts Users Mailing List" <user@struts.apache.org>
Date: Saturday, April 11, 2009, 5:20 PM




set the value with JS e.g.<script type="text/javascript">
  function setValue() {
     var picker = dojo.widget.byId("picker"); 
     //string value//figure out where the value is then use 
dojo.widget.byId("DateID").setValue('new value') e.g.
     picker.setValue('2007-01-01'); //notice the tick marks for constants
     //Date value
     picker.setValue(new Date());
  }
  
  function showValue() {
     var picker = dojo.widget.byId("picker");
     //string value
     var stringValue = picker.getValue();
     alert(stringValue);
     //date value
     var dateValue = picker.getDate();
     alert(dateValue);
  }
</script>

<sx:datetimepicker id="picker" 




Martin 
______________________________________________ 
Disclaimer and Confidentiality/Verzicht und Vertraulichkeitanmerkung / Note de 
déni et de confidentialité 
This message is confidential. If you should not be the intended receiver, then 
we ask politely to report. Each unauthorized forwarding or manufacturing of a 
copy is inadmissible. This message serves only for the exchange of information 
and has no legal binding effect. Due to the easy manipulation of emails we 
cannot take responsibility over the the contents.
Diese Nachricht ist vertraulich. Sollten Sie nicht der vorgesehene Empfaenger 
sein, so bitten wir hoeflich um eine Mitteilung. Jede unbefugte Weiterleitung 
oder Fertigung einer Kopie ist unzulaessig. Diese Nachricht dient lediglich dem 
Austausch von Informationen und entfaltet keine rechtliche Bindungswirkung. 
Aufgrund der leichten Manipulierbarkeit von E-Mails koennen wir keine Haftung 
fuer den Inhalt uebernehmen.
Ce message est confidentiel et peut être privilégié. Si vous n'êtes pas le 
destinataire prévu, nous te demandons avec bonté que pour satisfaire informez 
l'expéditeur. N'importe quelle diffusion non autorisée ou la copie de ceci est 
interdite. Ce message sert à l'information seulement et n'aura pas n'importe 
quel effet légalement obligatoire. Étant donné que les email peuvent facilement 
être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité 
pour le contenu fourni.







> Date: Sat, 11 Apr 2009 14:57:21 -0700
> Subject: Re: <s:datetimepicker
> From: saty.pra...@gmail.com
> To: user@struts.apache.org
> 
> Which version of struts are you using? If you using 2.1.6 and above, you
> need to have the struts-dojo lib and there is a tag include with <sx:
> you need to use <sx:datetimepicker> It is something like struts extensions.
> 
> You also need to include this..<sx:head debug="true" cache="false"
> compressed="false" />
> 
> 
> http://struts.apache.org/2.1.6/docs/datetimepicker.html
> 
> Rgds,
> 
> Satya
> 
> On Sat, Apr 11, 2009 at 11:34 AM, john lee <sh_thorn_b...@yahoo.com> wrote:
> 
> >
> > is <s:datetimepicker struts default tag? if so, why it can not render the
> > display?
> >
> > does it need to load additional .jar to support it?
> >
> > i tried the simple way
> > <s:datetimepicker lable="calendar" value="2009-01-01" >
> > but just display "calendar" only, nothing display on the right side
> >
> > i tried the complex way, define action class
> > public class DateBean extends ActionSupport {
> >
> > public String execute() throws Exception {
> > setTodayDate(new Date());
> > return SUCCESS;
> > }
> > private Date todayDate;
> > public Date getTodayDate() { return todayDate; }
> > public void setTodayDate(Date value) { todayDate = value; }
> > }
> >
> > the jsp file is
> > <s:datetimepicker name="todayDate" label="calendar"
> > displayFormat="yyyy-MM-dd"/>
> >
> > but just display 'calendar', nothing display on the right side either
> >
> > what happen?
> >
> > tks in advance
> >
> > john
> >
> >
> >
> >
> >

_________________________________________________________________
Rediscover Hotmail®: Get quick friend updates right in your inbox. 
http://windowslive.com/RediscoverHotmail?ocid=TXT_TAGLM_WL_HM_Rediscover_Updates1_042009


      

Reply via email to