Re: Struts 2 and DateTimePicker tag

2011-06-20 Thread anjani varigonda
Hi  , I am using struts2 datetimepicker in my appln. 

I want to change the size of the dates in the calender. Can anyone suggest
me wid the solution please?

--
View this message in context: 
http://struts.1045723.n5.nabble.com/Struts-2-and-DateTimePicker-tag-tp3488506p4505299.html
Sent from the Struts - User mailing list archive at Nabble.com.

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



DateTimePicker Tag

2011-02-17 Thread Jerson John

Hi,
  Can u suggest me the best way to use datetime picker tag...It seems normal
Struts 2 Tag Library does not have this...
I try to follow the code dojo library,It's only displaying the label and not
displaying the datetime colander...When I try put the code s:head
theme=ajax / I am getting the freemaker template error...What is the
cause for this..Please help me on this


Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software  Marketing

E: jer...@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing  Loyalty Agency of the
Year Award - Organized by Marketing Magazine


-Original Message-
From: CRANFORD, CHRIS [mailto:chris.cranf...@setech.com] 
Sent: Friday, February 18, 2011 11:23 AM
To: Struts Users Mailing List
Subject: RE: generate SQL Hibernate Query using session

Jerson -

What I would likely suggest you consider is creating a DTO object that
resembles your result from the SQLQuery.  You can then use one of the
stock Hibernate Transformers to convert the SQL results into instances
of this DTO Bean and then you can return the beans to your view to
iterate over.

Here's a simple example:

public List getQueryUsingResultTransformer() {
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  query.setResultTransformer(new
AliasToBeanResultTransformer(YourDTO.class));
  return(query.list());
}

Another alternative would be to iterate the result set yourself 

public ListYourDTO getQueryDoingSelfInstantiation() {
  ListYourDTO myList = new ArrayListYourDTO();
  SQLQuery query = session.createSQLQuery(SELECT SOME FANCY DATA);
  /* do other stuff */
  List results = query.list();
  Iterator i = results.iterator();
  while(i.hasNext())
  {
Object[] row = (Object[]) i.next();
/* each row has a 0-based index for each column of query */
YourDTO dto = new YourDTO();
/* set values on dto */
myList.add(dto);
  }
  return(myList);
}

Both basically do the same; however I find that using the AliasToBean
transformer is much cleaner code :)

Chris

 -Original Message-
 From: Jerson John [mailto:jer...@cprvision.com]
 Sent: Thursday, February 17, 2011 7:43 PM
 To: user@struts.apache.org
 Subject: generate SQL Hibernate Query using session
 
 Hi,
   I am trying to generate SQL query using session.createSQLQuery and
 returning the list object..This select query contains joins and so it
 cannot
 be mapped to any of my model objects.How can I now get the values in
my
 jsp
 page using iterator tag in Struts 2...
 
 Please help me on this
 
 Many Thanks and Regards,
 
 Jerson
 
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: DateTimePicker Tag

2011-02-17 Thread Lukasz Lenart
2011/2/18 Jerson John jer...@cprvision.com:
  Can u suggest me the best way to use datetime picker tag...It seems normal
 Struts 2 Tag Library does not have this...
 I try to follow the code dojo library,It's only displaying the label and not
 displaying the datetime colander...When I try put the code s:head
 theme=ajax / I am getting the freemaker template error...What is the
 cause for this..Please help me on this

Try using sx:head/ ;-)


Kind regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: DateTimePicker Tag

2011-02-17 Thread Jerson John
Settled Thanks alot

Many Thanks and Regards,

Jerson
CPR Vision Management Pte Ltd
CRM Software  Marketing

E: jer...@cprvision.com
T: + (65) 6535 0996
F: + (65) 6327 8085
www.cprvision.com

CPR Vision - Nominated finalist for CRM, Marketing  Loyalty “Agency of the 
Year” Award – Organized by Marketing Magazine


-Original Message-
From: Lukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: Friday, February 18, 2011 2:47 PM
To: Struts Users Mailing List
Subject: Re: DateTimePicker Tag

2011/2/18 Jerson John jer...@cprvision.com:
  Can u suggest me the best way to use datetime picker tag...It seems normal
 Struts 2 Tag Library does not have this...
 I try to follow the code dojo library,It's only displaying the label and not
 displaying the datetime colander...When I try put the code s:head
 theme=ajax / I am getting the freemaker template error...What is the
 cause for this..Please help me on this

Try using sx:head/ ;-)


Kind regards
-- 
Łukasz
+ 48 606 323 122 http://www.lenart.org.pl/
Kapituła Javarsovia http://javarsovia.pl

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: Struts 2 and DateTimePicker tag

2009-01-22 Thread vikpan

I'm having trouble in validating  datetimepicker. Tried Using
required=true but doesn't get validated can u kindly help to go about the
same ... And one more doubt difference between   sx:datetimepicker and
s:datetimepicker ...


Cheers
Vikpan

-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p21602655.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-21 Thread Ralf Fischer
Hi,

as far as I understand the documentation [1], the datetimepicker /
has no format attribute, so I wonder how your JSP gets compiled. Are
you looking for the displayFormat attribute?

The error from your first mail suggests an error either in the type
conversion or in general with the OGNL expression. Type conversion
concerning dates gets tricky, as the XWorkBasicConverter[2] expects
your date to be formatted in either the short, medium or long format
of the locale set for the request (either the browsers' locale or
hard-wired in struts.properties), or in rfc3339 [3] format. If your
date is not in one of these formats, the conversion obviously fails.

Cheers,
-Ralf

[1] http://struts.apache.org/2.x/docs/datetimepicker.html
[2] 
http://www.opensymphony.com/webwork/api/com/opensymphony/xwork/util/XWorkBasicConverter.html
[3] http://www.ietf.org/rfc/rfc3339.txt


On Tue, May 20, 2008 at 5:23 PM, Milan Milanovic
[EMAIL PROTECTED] wrote:
 I'm not sure if this is a problem. I switched my browser only to US
  locale language and also in regional options and it is the same! I think
  that is some conversion problem from jsp page to Date in version
  2.0.11.1.

  Regards, Milan

 Ian Meikle [EMAIL PROTECTED] wrote:  I have had the same problem.
 I assume you are not using an US locale in your client browser.
 We use Norwegian and German and it does not work.

 Regards
 Ian

 CSC Solutions Norge AS
 Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway
 Registered in Norway No: 958 958 455



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



Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-20 Thread Milan Milanovic
I'm not sure if this is a problem. I switched my browser only to US
 locale language and also in regional options and it is the same! I think
 that is some conversion problem from jsp page to Date in version
 2.0.11.1.
   
  Regards, Milan

Ian Meikle [EMAIL PROTECTED] wrote:  I have had the same problem.
I assume you are not using an US locale in your client browser.
We use Norwegian and German and it does not work.

Regards
Ian

CSC Solutions Norge AS
Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway 
Registered in Norway No: 958 958 455

   

[Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
It seems that there is a bug with datetimepicker tag. I defined it as in 
documentation:
   
  s:datetimepicker name=delivery.date label=Delivery Date 
format=#-#MM-#dd  /
   
  I have delivery object in my action class with date field (of type 
java.util.Date) and all necessary get/set methods. But when I submit the form I 
get this error:
   
  17:55:47,968 ERROR 
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 
'delivery.date' on 'class com.myProject.actions.MyTestAction: Error setting 
expression 'delivery.date' with value '[Ljava.lang.String;@3b678'
   
  It seems that Struts 2 always send String for any type of tag and that it 
cannot set Date ?

  --
  Thx in advance, Milan

   

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
And when I add value attribute to this tag like this:
   
  s:datetimepicker name=delivery.date label=Delivery Date
 format=#-#MM-#dd  name=delivery.date /
   
  it generates and exception:
   
  18:24:22,531 ERROR org.apache.struts2.components.DateTimePicker:316 - Could 
not parse date
  java.text.ParseException: Unparseable date: pregled.odPeriod
  at java.text.DateFormat.parse(Unknown Source)
  at 
org.apache.struts2.components.DateTimePicker.format(DateTimePicker.java:309)
  at 
org.apache.struts2.components.DateTimePicker.evaluateParams(DateTimePicker.java:202)
  at org.apache.struts2.components.UIBean.end(UIBean.java:481)
  at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
  ...


Milan Milanovic [EMAIL PROTECTED] wrote:
  It seems that there is a bug with tag. I defined it as in documentation:



I have delivery object in my action class with date field (of type 
java.util.Date) and all necessary get/set methods. But when I submit the form I 
get this error:

17:55:47,968 ERROR 
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 
'delivery.date' on 'class com.myProject.actions.MyTestAction: Error setting 
expression 'delivery.date' with value '[Ljava.lang.String;@3b678'

It seems that Struts 2 always send String for any type of tag and that it 
cannot set Date ?

--
Thx in advance, Milan



   

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
By using this name=delivery.date attribute it reads the date good, but it 
can't store it back! It generates this error below 'ParametersInterceptor' ?
   
  --
  Thx, Milan

Milan Milanovic [EMAIL PROTECTED] wrote:
  And when I add value attribute to this tag like this:

format=#-#MM-#dd name=delivery.date /

it generates and exception:

18:24:22,531 ERROR org.apache.struts2.components.DateTimePicker:316 - Could not 
parse date
java.text.ParseException: Unparseable date: pregled.odPeriod
at java.text.DateFormat.parse(Unknown Source)
at org.apache.struts2.components.DateTimePicker.format(DateTimePicker.java:309)
at 
org.apache.struts2.components.DateTimePicker.evaluateParams(DateTimePicker.java:202)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
...


Milan Milanovic wrote:
It seems that there is a bug with tag. I defined it as in documentation:



I have delivery object in my action class with date field (of type 
java.util.Date) and all necessary get/set methods. But when I submit the form I 
get this error:

17:55:47,968 ERROR 
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 
'delivery.date' on 'class com.myProject.actions.MyTestAction: Error setting 
expression 'delivery.date' with value '[Ljava.lang.String;@3b678'

It seems that Struts 2 always send String for any type of tag and that it 
cannot set Date ?

--
Thx in advance, Milan





   

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Milan Milanovic
I tried everything with datetimepicker tag!

It seems that Struts 2 in 2.0.11.1 version have a bug with type conversion from 
s:datetimepicker jsp tag (that is actually a String) to corresponding 
java.util.Date field in action class. Could someone confirm this ?

--
Thx, Milan

Milan Milanovic [EMAIL PROTECTED] wrote: By using this name=delivery.date 
attribute it reads the date good, but it can't store it back! It generates this 
error below 'ParametersInterceptor' ?
   
  --
  Thx, Milan

Milan Milanovic  wrote:
  And when I add value attribute to this tag like this:

format=#-#MM-#dd name=delivery.date /

it generates and exception:

18:24:22,531 ERROR org.apache.struts2.components.DateTimePicker:316 - Could not 
parse date
java.text.ParseException: Unparseable date: pregled.odPeriod
at java.text.DateFormat.parse(Unknown Source)
at org.apache.struts2.components.DateTimePicker.format(DateTimePicker.java:309)
at 
org.apache.struts2.components.DateTimePicker.evaluateParams(DateTimePicker.java:202)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
...


Milan Milanovic wrote:
It seems that there is a bug with tag. I defined it as in documentation:



I have delivery object in my action class with date field (of type 
java.util.Date) and all necessary get/set methods. But when I submit the form I 
get this error:

17:55:47,968 ERROR 
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - 
ParametersInterceptor - [setParameters]: Unexpected Exception caught setting 
'delivery.date' on 'class com.myProject.actions.MyTestAction: Error setting 
expression 'delivery.date' with value '[Ljava.lang.String;@3b678'

It seems that Struts 2 always send String for any type of tag and that it 
cannot set Date ?

--
Thx in advance, Milan





   

   

Re: [Struts 2] Datetimepicker tag Bug ?!

2008-05-19 Thread Ian Meikle
I have had the same problem.
I assume you are not using an US locale in your client browser.
We use Norwegian and German and it does not work.

Regards
Ian

CSC Solutions Norge AS
Registered Office: Sandsliåsen 57, 5254 Sandsli, Norway 
Registered in Norway No: 958 958 455

-
This is a PRIVATE message. If you are not the intended recipient, please 
delete without copying and kindly advise us by e-mail of the mistake in 
delivery. 
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to 
any order or other contract unless pursuant to explicit written agreement 
or government initiative expressly permitting the use of e-mail for such 
purpose.
-




Milan Milanovic [EMAIL PROTECTED] 
19.05.2008 23:38
Please respond to
Struts Users Mailing List user@struts.apache.org


To
Struts Users Mailing List user@struts.apache.org
cc

Subject
Re: [Struts 2] Datetimepicker tag Bug ?!






I tried everything with datetimepicker tag!

It seems that Struts 2 in 2.0.11.1 version have a bug with type conversion 
from s:datetimepicker jsp tag (that is actually a String) to 
corresponding java.util.Date field in action class. Could someone confirm 
this ?

--
Thx, Milan

Milan Milanovic [EMAIL PROTECTED] wrote: By using this 
name=delivery.date attribute it reads the date good, but it can't store 
it back! It generates this error below 'ParametersInterceptor' ?
 
  --
  Thx, Milan

Milan Milanovic  wrote:
  And when I add value attribute to this tag like this:

format=#-#MM-#dd name=delivery.date /

it generates and exception:

18:24:22,531 ERROR org.apache.struts2.components.DateTimePicker:316 - 
Could not parse date
java.text.ParseException: Unparseable date: pregled.odPeriod
at java.text.DateFormat.parse(Unknown Source)
at 
org.apache.struts2.components.DateTimePicker.format(DateTimePicker.java:309)
at 
org.apache.struts2.components.DateTimePicker.evaluateParams(DateTimePicker.java:202)
at org.apache.struts2.components.UIBean.end(UIBean.java:481)
at 
org.apache.struts2.views.jsp.ComponentTagSupport.doEndTag(ComponentTagSupport.java:43)
...


Milan Milanovic wrote:
It seems that there is a bug with tag. I defined it as in documentation:



I have delivery object in my action class with date field (of type 
java.util.Date) and all necessary get/set methods. But when I submit the 
form I get this error:

17:55:47,968 ERROR 
com.opensymphony.xwork2.interceptor.ParametersInterceptor:204 - 
ParametersInterceptor - [setParameters]: Unexpected Exception caught 
setting 'delivery.date' on 'class com.myProject.actions.MyTestAction: 
Error setting expression 'delivery.date' with value 
'[Ljava.lang.String;@3b678'

It seems that Struts 2 always send String for any type of tag and that it 
cannot set Date ?

--
Thx in advance, Milan





 

 


Re: Struts 2 and DateTimePicker tag

2007-12-11 Thread Jugal

Thanks a ton for your reply Jeromy... Finally I got it working... :-)... 


Regards,
Jugal
-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p14277652.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts 2 and DateTimePicker tag

2007-12-10 Thread Jugal

Hi Jeromy,

Thanks a lot for your reply. I am exatcly doing the same way as suggested by
you.. but now I am not able see the  datetimepicker tag... 
Here is the snippet of the code that I am using:

head
script src=%=request.getContextPath()%/scripts/dojo.js
type=text/javascript/script

script language=javascript

function calculateEndDate() {
startDate = 
document.forms[0].elements['leasingStartDate.value'].value;
alert(startDate);
}

function init() {
   var datePicker = dojo.widget.byId(leasingStartDate);
   dojo.event.connect(datePicker, onchange, calculateEndDate);
}

dojo.addOnLoad(init); 

/script
s:head theme=simple/
/head

body style=margin-left: 31%; width: 388%;
s:form id=fm_form action=requisition theme=simple
name=fm_form method=POST
   s:datetimepicker onchange=calculateEndDate() 
id=leasingStartDate   
displayFormat=dd.MM. /
/s:form
/body

Kindly let me know what am I missing out here...

Thanks,

Jugal

-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p14249105.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: datetimepicker tag

2007-12-10 Thread Peng Tuck Kwok
 *am not able to see the field name for s:datetimepicker ... .*

 Yeah that's because it's processed by your web container before it gets
kicked out as HTML to the browser. think you are looking for the
corresponding html form fields :D




 Tools  ErrorConsole = Warnings Tab:

 Warning: Error in parsing value for property 'cursor'.  Declaration
 dropped.
 Source File:
 http://localhost:8080/--//.action;jsessionid=FE29769C5916D88678E697B64A0E7BC7
 Line: 29

'cursor' looks like a start and try Jeromy's advice to use FireBug :D




 Any clue ...








 -Original Message-
 From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 10, 2007 11:13 AM
 To: Struts Users Mailing List
 Subject: Re: datetimepicker tag

 If you have firefox you can actually check out the javascript console for
 errors, might give you a clue as to what's going on if it is a js problem.

 HIH

 On Dec 10, 2007 12:54 PM, Rajagopal_Yendluri 
 [EMAIL PROTECTED]
 wrote:

  Hi..
 
I am using 2.0.9, but for the nothing is displaying in jsp page except
  label.
 
  Included the ajax theme in jsp page. Checked the generated dojo script,
 it
  is also fine.. but nothing is displaying in my jsp page...
 
  Any Views... or ideas... what could be the reasons for not displaying
  nothing other than lable ?
 
  Any workaround also helps
 
 
  Regards,
  Rajagopal Y (Raj)
  HCU-Consulting  Enterprise Solutions.
  Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
  -Original Message-
  From: Jeromy Evans [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 16, 2007 12:36 PM
  To: Struts Users Mailing List
  Subject: Re: datetimepicker tag
 
  Dipti, if you're using Struts 2.0.x, follow the example at :
 
  http://struts.apache.org/2.0.9/docs/datetimepicker.html
 
  It's likely you're just missing the essential
  %@ taglib prefix=s uri=/struts-tags %
  and/or
  s:head theme=ajax/
  tags mentioned at the top of that page.
 
  Note there are several issues with this version of the datetimepicker
  that are discussed in other threads.
 
  If you're using Struts 2.1.x you're probably missing the
  struts-dojo-plugin.  Michaël's reference below applies to Struts
 2.1.xonly.
 
  [EMAIL PROTECTED] wrote:
   In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo
  plugin.
   So you need to include %@ taglib uri=/struts-dojo-tags
 prefix=sx%
   and sx:head/
  
   and call  :sx:datetimepicker .../
  
   Michaël
  
  
  
   dipti RealSoftInc [EMAIL PROTECTED]
   16/10/2007 08:09
   Veuillez répondre à
   Struts Users Mailing List user@struts.apache.org
  
  
   A
   user@struts.apache.org
   cc
  
   Objet
   Re: datetimepicker tag
  
  
  
  
  
  
  
   I m using Struts2 and the tag which m using is:
   s:datetimepicker name=delivery.date label=Delivery Date
   displayFormat=-MM-dd  /
   and regarding the taglib declaration it is not declared in it hence it
  is
   giving the exception:
   No tag datetimepicker defined in tag library imported with prefix
  s..
   Struts2 does not support datetimepicker?? or some other reason..
 please
   reply back soon..
  
  
   Laurie Harper wrote:
  
   dipti RealSoftInc wrote:
  
   hello,
  
   I am using struts 2.0.1 and want to use datetimepicker tag... but it
  is
   giving an exception that it is not defined in the tld file i.e
   struts-tag.tld please help me out...
  
   What version of Struts are you using? What does your taglib
 declaration
   look like? And what does you tag usage look like?
  
   L.
  
   ObWhine: please don't post unrelated questions to an existing thread.
  Be
  
  
  
   sure to start a new thread (with an appropriate subject) by sending a
   fresh message to the list, rather than using Reply To.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  
 
  
   No virus found in this incoming message.
   Checked by AVG Free Edition.
   Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date:
  15/10/2007 5:55 PM
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  DISCLAIMER:
  This email (including any attachments) is intended for the sole use of
 the
  intended recipient/s and may contain material that is CONFIDENTIAL AND
  PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
 or
  distribution or forwarding of any or all of the contents in this message
 is
  STRICTLY PROHIBITED. If you are not the intended recipient, please
 contact
  the sender by email and delete all copies; your cooperation in this
 regard
  is appreciated.
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Struts 2 and DateTimePicker tag

2007-12-10 Thread Jeromy Evans
The order of javascript is important.  I believe in your case you 
haven't imported all the required dependencies before trying to call a 
dojo function.


Try this:

Put: s:head theme=ajax/

BEFORE you use the dojo-dependent javascript in the head.  


If you only want to use the simple theme, then manually import all the required 
dojo files using the code in head.ftl.  (eg. you need dojoRequires.js among 
others).

I suspect in your code below, dojo.addOnLoad(init) is throwing an exception and 
this occurs before the javascript that loads the dependencies for the 
datapicker can be executed (thus, none of the datepicker dependencies are 
loaded).

It should look like this:

head
s:head theme=simple/
script language=javascript

function calculateEndDate() {
startDate = 
document.forms[0].elements['leasingStartDate.value'].value;
alert(startDate);
}

function init() {
   var datePicker = dojo.widget.byId(leasingStartDate);
   dojo.event.connect(datePicker, onchange, calculateEndDate);
}

		dojo.addOnLoad(init); 
		

/script
/head

Take a look at the generated HTML and you'll understand what I mean.  

Regards, 
Jeromy Evans



Jugal wrote:

Hi Jeromy,

Thanks a lot for your reply. I am exatcly doing the same way as suggested by
you.. but now I am not able see the  datetimepicker tag... 
Here is the snippet of the code that I am using:


head
script src=%=request.getContextPath()%/scripts/dojo.js
type=text/javascript/script

script language=javascript

function calculateEndDate() {
startDate = 
document.forms[0].elements['leasingStartDate.value'].value;
alert(startDate);
}

function init() {
   var datePicker = dojo.widget.byId(leasingStartDate);
   dojo.event.connect(datePicker, onchange, calculateEndDate);
}

		dojo.addOnLoad(init); 
		

/script
s:head theme=simple/
/head

body style=margin-left: 31%; width: 388%;
s:form id=fm_form action=requisition theme=simple
name=fm_form method=POST
   s:datetimepicker onchange=calculateEndDate() 
id=leasingStartDate  	

displayFormat=dd.MM. /
/s:form
/body

Kindly let me know what am I missing out here...

Thanks,

Jugal

  



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



Re: Struts 2 and DateTimePicker tag

2007-12-10 Thread Jugal

Thanks for your reply Jeromy..
I have made changes according to the inputs provided by you... After change
my JSP looks something like this...

head
s:head theme=simple debug=true/
link href=%=request.getContextPath()%/css/fm.css type=text/css
rel=stylesheet

script type=test/javascriptdjConfig = { isDebug: true };/script 
script src=%=request.getContextPath()%/scripts/ajax.js
type=text/javascript/script
script src=%=request.getContextPath()%/scripts/prototype.js
type=text/javascript/script
script src=%=request.getContextPath()%/scripts/scriptaculous.js
type=text/javascript/script
script src=%=request.getContextPath()%/scripts/dojo/dojo.js
type=text/javascript/script

script type=text/javascript
dojo.require(dojo.widget.*);
dojo.require(dojo.event.*);
/script

script type=text/javascript

function submitForm() {
document.forms[0].submit();
}

function calculateEndDate() {
alert(Calculating...);
startDate = 
document.forms[0].elements['leasingStartDate.value'].value;
alert(startDate);
}

function init() {
   var datePicker = dojo.widget.byId(leasingStartDate);
   dojo.event.connect(datePicker, onchange, 
calculateEndDate);
}

dojo.addOnLoad(init); 

/script
/head

But still I am not able to invoke an onchage event on datetimepicker... Also
when i set the dojo in debug mode.. I get the following error.. FATAL
exception raised: Could not load 'dojo.debug'; last tried '__package__.js'

Kindly help me out on this...

Thanks and Regards,
Jugal 


-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p14251890.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



RE: datetimepicker tag

2007-12-10 Thread Rajagopal_Yendluri
No, I am not able to see the corresponding html form field for 
s:datetimepicker ...


-Original Message-
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 10, 2007 3:20 PM
To: Struts Users Mailing List
Subject: Re: datetimepicker tag

 *am not able to see the field name for s:datetimepicker ... .*

 Yeah that's because it's processed by your web container before it gets
kicked out as HTML to the browser. think you are looking for the
corresponding html form fields :D




 Tools  ErrorConsole = Warnings Tab:

 Warning: Error in parsing value for property 'cursor'.  Declaration
 dropped.
 Source File:
 http://localhost:8080/--//.action;jsessionid=FE29769C5916D88678E697B64A0E7BC7
 Line: 29

'cursor' looks like a start and try Jeromy's advice to use FireBug :D




 Any clue ...








 -Original Message-
 From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED]
 Sent: Monday, December 10, 2007 11:13 AM
 To: Struts Users Mailing List
 Subject: Re: datetimepicker tag

 If you have firefox you can actually check out the javascript console for
 errors, might give you a clue as to what's going on if it is a js problem.

 HIH

 On Dec 10, 2007 12:54 PM, Rajagopal_Yendluri 
 [EMAIL PROTECTED]
 wrote:

  Hi..
 
I am using 2.0.9, but for the nothing is displaying in jsp page except
  label.
 
  Included the ajax theme in jsp page. Checked the generated dojo script,
 it
  is also fine.. but nothing is displaying in my jsp page...
 
  Any Views... or ideas... what could be the reasons for not displaying
  nothing other than lable ?
 
  Any workaround also helps
 
 
  Regards,
  Rajagopal Y (Raj)
  HCU-Consulting  Enterprise Solutions.
  Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
  -Original Message-
  From: Jeromy Evans [mailto:[EMAIL PROTECTED]
  Sent: Tuesday, October 16, 2007 12:36 PM
  To: Struts Users Mailing List
  Subject: Re: datetimepicker tag
 
  Dipti, if you're using Struts 2.0.x, follow the example at :
 
  http://struts.apache.org/2.0.9/docs/datetimepicker.html
 
  It's likely you're just missing the essential
  %@ taglib prefix=s uri=/struts-tags %
  and/or
  s:head theme=ajax/
  tags mentioned at the top of that page.
 
  Note there are several issues with this version of the datetimepicker
  that are discussed in other threads.
 
  If you're using Struts 2.1.x you're probably missing the
  struts-dojo-plugin.  Michaël's reference below applies to Struts
 2.1.xonly.
 
  [EMAIL PROTECTED] wrote:
   In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo
  plugin.
   So you need to include %@ taglib uri=/struts-dojo-tags
 prefix=sx%
   and sx:head/
  
   and call  :sx:datetimepicker .../
  
   Michaël
  
  
  
   dipti RealSoftInc [EMAIL PROTECTED]
   16/10/2007 08:09
   Veuillez répondre à
   Struts Users Mailing List user@struts.apache.org
  
  
   A
   user@struts.apache.org
   cc
  
   Objet
   Re: datetimepicker tag
  
  
  
  
  
  
  
   I m using Struts2 and the tag which m using is:
   s:datetimepicker name=delivery.date label=Delivery Date
   displayFormat=-MM-dd  /
   and regarding the taglib declaration it is not declared in it hence it
  is
   giving the exception:
   No tag datetimepicker defined in tag library imported with prefix
  s..
   Struts2 does not support datetimepicker?? or some other reason..
 please
   reply back soon..
  
  
   Laurie Harper wrote:
  
   dipti RealSoftInc wrote:
  
   hello,
  
   I am using struts 2.0.1 and want to use datetimepicker tag... but it
  is
   giving an exception that it is not defined in the tld file i.e
   struts-tag.tld please help me out...
  
   What version of Struts are you using? What does your taglib
 declaration
   look like? And what does you tag usage look like?
  
   L.
  
   ObWhine: please don't post unrelated questions to an existing thread.
  Be
  
  
  
   sure to start a new thread (with an appropriate subject) by sending a
   fresh message to the list, rather than using Reply To.
  
  
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
  
  
  
  
 
  
   No virus found in this incoming message.
   Checked by AVG Free Edition.
   Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date:
  15/10/2007 5:55 PM
  
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
  DISCLAIMER:
  This email (including any attachments) is intended for the sole use of
 the
  intended recipient/s and may contain material that is CONFIDENTIAL AND
  PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying
 or
  distribution or forwarding of any or all of the contents in this message
 is
  STRICTLY PROHIBITED. If you

Re: Struts 2 and DateTimePicker tag

2007-12-10 Thread Jeromy Evans

Jugal wrote:

Thanks for your reply Jeromy..
I have made changes according to the inputs provided by you... After change
my JSP looks something like this...

head
s:head theme=simple debug=true/

  
I recommend using the ajax theme until everything works, then step 
backwards to simple.  It's too easy to miss something if you do it by 
hand.  Try to minimize the possible causes of errors.


script type=text/javascript
dojo.require(dojo.widget.*);
dojo.require(dojo.event.*);
/script

script type=text/javascript 
  
		function init() {

   var datePicker = dojo.widget.byId(leasingStartDate);
   dojo.event.connect(datePicker, onchange, 
calculateEndDate);
}

  
As per my original email, I'm quite certain the event's called 
onValueChanged in this version.
onchange is actually a DOM event whereas connect is using dojo's AOP's 
features to intercept a call to the onValueChanged function of the 
widget. Big difference.


So you're back to this:

function calculateEndDate() {
alert(Calculating...);
startDate = 
document.forms[0].elements['leasingStartDate.value'].value;
alert(startDate);
}   

function init() {
   var datePicker = dojo.widget.byId(leasingStartDate);
  dojo.event.connect(datePicker, onValueChanged, 
calculateEndDate);
}

Note I've used a function reference rather than calculateEndDate.

If you're using Struts2.0.x you are using Dojo 0.40.  If you're using 
Struts2.1.x you're using Dojo 0.43
The event API for 0.43 (similar to 0.40) is at 
http://download.dojotoolkit.org/release-0.4.3/dojo-0.4.3-src/api/#dojo.event  


You'll find more examples by googling the Dojo Datepicker.

While we're on the topic, you may prefer to read the value from the 
widget rather than try to get it from a form element:

replace:

startDate = document.forms[0].elements['leasingStartDate.value'].value;

with:

var datePicker = dojo.widget.byId(leasingStartDate);

startDate = datePicker.getValue();   // or datePicker.getDate() if you 
want a Javacript date rather an a string



But still I am not able to invoke an onchage event on datetimepicker... Also
when i set the dojo in debug mode.. I get the following error.. FATAL
exception raised: Could not load 'dojo.debug'; last tried '__package__.js'

  
That probably means a file is still missing.  It's best to use s:head 
theme=ajax until it works and then try to convert it to simple.
Use Firebug to debug these errors.  It'll show the 404 and/or the source 
of the javascript error.


regards,
Jeromy Evans
  



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



Struts 2 and DateTimePicker tag

2007-12-09 Thread Jugal

Hello All, 

I am using Struts 2.0.11 for development of my application. 
I am using datetimepicker tag and I want to trap onchange event of
datetimepicker tag. After exploring for a while I found that there is
already a  https://issues.apache.org/struts/browse/WW-1867 bug  raised for
the issue. So as per the solution mentioned I am using the valueNotifyTopics
instead of onchange attribute to trap the event; but using valueNotifyTopics
gives me compilation error for my jsp saying that attribute
valueNotifyTopicsis invalid according to struts-tags.tld. After checking the
tld, I found that there is no such entry for this attribute. Also the use of
this attribute is mentioned in the docs provided along with the 2.0.11
distribution.

I have been searching on this for quite a while, but not hitting on any
solution. Can any one please throw me some light on this? Do I need to do
some special configuration to get this working? 
Any help is appreciated. 


Thanks and Regards,
Jugal
-- 
View this message in context: 
http://www.nabble.com/Struts-2-and-DateTimePicker-tag-tp14239582p14239582.html
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: Struts 2 and DateTimePicker tag

2007-12-09 Thread Jeromy Evans

Jugal wrote:
Hello All, 

I am using Struts 2.0.11 for development of my application. 
I am using datetimepicker tag and I want to trap onchange event of

datetimepicker tag. After exploring for a while I found that there is
already a  https://issues.apache.org/struts/browse/WW-1867 bug  raised for
the issue. So as per the solution mentioned I am using the valueNotifyTopics
instead of onchange attribute to trap the event; but using valueNotifyTopics
gives me compilation error for my jsp saying that attribute
valueNotifyTopicsis invalid according to struts-tags.tld. After checking the
tld, I found that there is no such entry for this attribute. Also the use of
this attribute is mentioned in the docs provided along with the 2.0.11
distribution.

I have been searching on this for quite a while, but not hitting on any
solution. Can any one please throw me some light on this? Do I need to do
some special configuration to get this working? 
Any help is appreciated. 



Thanks and Regards,
Jugal
  

Hi Jugal,
The Struts2.0x datatimepicker is a Dojo 0.4x DatePicker widget of type 
dropdowndatepicker.

Once you get a reference to the widget you can access Dojo's event model.

The javascript below will lookup a datepicker with id myDatePickerId 
and connect myListener to its onValueChanged event:


function init() {
  var datePicker = dojo.widget.byId(myDatePickerId);
  dojo.event.connect(datePicker, onValueChanged, myListener);
}

dojo.addOnLoad(init);

The dojo.addOnLoad(init) line ensures the init function is called when 
the page is loaded.


regards,
Jeromy Evans


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



RE: datetimepicker tag

2007-12-09 Thread Rajagopal_Yendluri
Hi..

   I am using 2.0.9, but for the nothing is displaying in jsp page except label.

Included the ajax theme in jsp page. Checked the generated dojo script, it is 
also fine.. but nothing is displaying in my jsp page...

Any Views... or ideas... what could be the reasons for not displaying nothing 
other than lable ?

Any workaround also helps


Regards,
Rajagopal Y (Raj)
HCU-Consulting  Enterprise Solutions.
Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 16, 2007 12:36 PM
To: Struts Users Mailing List
Subject: Re: datetimepicker tag

Dipti, if you're using Struts 2.0.x, follow the example at :

http://struts.apache.org/2.0.9/docs/datetimepicker.html

It's likely you're just missing the essential
%@ taglib prefix=s uri=/struts-tags %
and/or
s:head theme=ajax/
tags mentioned at the top of that page. 

Note there are several issues with this version of the datetimepicker 
that are discussed in other threads.

If you're using Struts 2.1.x you're probably missing the 
struts-dojo-plugin.  Michaël's reference below applies to Struts 2.1.x only.

[EMAIL PROTECTED] wrote:
 In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo plugin. 
 So you need to include %@ taglib uri=/struts-dojo-tags prefix=sx% 
 and sx:head/

 and call  :sx:datetimepicker .../

 Michaël



 dipti RealSoftInc [EMAIL PROTECTED] 
 16/10/2007 08:09
 Veuillez répondre à
 Struts Users Mailing List user@struts.apache.org


 A
 user@struts.apache.org
 cc

 Objet
 Re: datetimepicker tag







 I m using Struts2 and the tag which m using is:
 s:datetimepicker name=delivery.date label=Delivery Date
 displayFormat=-MM-dd  /
 and regarding the taglib declaration it is not declared in it hence it is
 giving the exception:
 No tag datetimepicker defined in tag library imported with prefix s..
 Struts2 does not support datetimepicker?? or some other reason.. please
 reply back soon..


 Laurie Harper wrote:
   
 dipti RealSoftInc wrote:
 
 hello,

 I am using struts 2.0.1 and want to use datetimepicker tag... but it is
 giving an exception that it is not defined in the tld file i.e
 struts-tag.tld please help me out... 
   
 What version of Struts are you using? What does your taglib declaration 
 look like? And what does you tag usage look like?

 L.

 ObWhine: please don't post unrelated questions to an existing thread. Be 
 

   
 sure to start a new thread (with an appropriate subject) by sending a 
 fresh message to the list, rather than using Reply To.


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



 

   
 

 No virus found in this incoming message.
 Checked by AVG Free Edition. 
 Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date: 15/10/2007 
 5:55 PM
   


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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.

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



Re: datetimepicker tag

2007-12-09 Thread Jeromy Evans

Rajagopal_Yendluri wrote:

Hi..

   I am using 2.0.9, but for the nothing is displaying in jsp page except label.

Included the ajax theme in jsp page. Checked the generated dojo script, it is 
also fine.. but nothing is displaying in my jsp page...

Any Views... or ideas... what could be the reasons for not displaying nothing 
other than lable ?

Any workaround also helps

  
The only other time I've seen this occur is when you access a JSP page 
directly instead of through an action.  In that situation, there's no 
value stack and hence not much to display except a label.


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



RE: datetimepicker tag

2007-12-09 Thread Rajagopal_Yendluri
I am not accessing the page directly, am going to the page thru an
action only... to display few other dropdowns.

Any other reasons ???

-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 10, 2007 10:51 AM
To: Struts Users Mailing List
Subject: Re: datetimepicker tag

Rajagopal_Yendluri wrote:
 Hi..

I am using 2.0.9, but for the nothing is displaying in jsp page
except label.

 Included the ajax theme in jsp page. Checked the generated dojo
script, it is also fine.. but nothing is displaying in my jsp page...

 Any Views... or ideas... what could be the reasons for not displaying
nothing other than lable ?

 Any workaround also helps

   
The only other time I've seen this occur is when you access a JSP page 
directly instead of through an action.  In that situation, there's no 
value stack and hence not much to display except a label.

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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.

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



Re: datetimepicker tag

2007-12-09 Thread Jeromy Evans
Use FireBug to see if there's any errors loading dojo,  it's 
dependencies and datapicker images.

It's has to be related to your specific setup.

eg. apache is in front of your container and handles all requests for 
images.
eg. serving static files from /struts is disabled and you don't have an 
equivalent source

eg. it doesn't like your locale settings (just guessing)

Rajagopal_Yendluri wrote:

I am not accessing the page directly, am going to the page thru an
action only... to display few other dropdowns.

Any other reasons ???

-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 10, 2007 10:51 AM

To: Struts Users Mailing List
Subject: Re: datetimepicker tag

Rajagopal_Yendluri wrote:
  

Hi..

   I am using 2.0.9, but for the nothing is displaying in jsp page


except label.
  

Included the ajax theme in jsp page. Checked the generated dojo


script, it is also fine.. but nothing is displaying in my jsp page...
  

Any Views... or ideas... what could be the reasons for not displaying


nothing other than lable ?
  

Any workaround also helps

  

The only other time I've seen this occur is when you access a JSP page 
directly instead of through an action.  In that situation, there's no 
value stack and hence not much to display except a label.


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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents in this message is 
STRICTLY PROHIBITED. If you are not the intended recipient, please contact the 
sender by email and delete all copies; your cooperation in this regard is 
appreciated.

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




  



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



Re: datetimepicker tag

2007-12-09 Thread Peng Tuck Kwok
If you have firefox you can actually check out the javascript console for
errors, might give you a clue as to what's going on if it is a js problem.

HIH

On Dec 10, 2007 12:54 PM, Rajagopal_Yendluri [EMAIL PROTECTED]
wrote:

 Hi..

   I am using 2.0.9, but for the nothing is displaying in jsp page except
 label.

 Included the ajax theme in jsp page. Checked the generated dojo script, it
 is also fine.. but nothing is displaying in my jsp page...

 Any Views... or ideas... what could be the reasons for not displaying
 nothing other than lable ?

 Any workaround also helps


 Regards,
 Rajagopal Y (Raj)
 HCU-Consulting  Enterprise Solutions.
 Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
 -Original Message-
 From: Jeromy Evans [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2007 12:36 PM
 To: Struts Users Mailing List
 Subject: Re: datetimepicker tag

 Dipti, if you're using Struts 2.0.x, follow the example at :

 http://struts.apache.org/2.0.9/docs/datetimepicker.html

 It's likely you're just missing the essential
 %@ taglib prefix=s uri=/struts-tags %
 and/or
 s:head theme=ajax/
 tags mentioned at the top of that page.

 Note there are several issues with this version of the datetimepicker
 that are discussed in other threads.

 If you're using Struts 2.1.x you're probably missing the
 struts-dojo-plugin.  Michaël's reference below applies to Struts 2.1.xonly.

 [EMAIL PROTECTED] wrote:
  In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo
 plugin.
  So you need to include %@ taglib uri=/struts-dojo-tags prefix=sx%
  and sx:head/
 
  and call  :sx:datetimepicker .../
 
  Michaël
 
 
 
  dipti RealSoftInc [EMAIL PROTECTED]
  16/10/2007 08:09
  Veuillez répondre à
  Struts Users Mailing List user@struts.apache.org
 
 
  A
  user@struts.apache.org
  cc
 
  Objet
  Re: datetimepicker tag
 
 
 
 
 
 
 
  I m using Struts2 and the tag which m using is:
  s:datetimepicker name=delivery.date label=Delivery Date
  displayFormat=-MM-dd  /
  and regarding the taglib declaration it is not declared in it hence it
 is
  giving the exception:
  No tag datetimepicker defined in tag library imported with prefix
 s..
  Struts2 does not support datetimepicker?? or some other reason.. please
  reply back soon..
 
 
  Laurie Harper wrote:
 
  dipti RealSoftInc wrote:
 
  hello,
 
  I am using struts 2.0.1 and want to use datetimepicker tag... but it
 is
  giving an exception that it is not defined in the tld file i.e
  struts-tag.tld please help me out...
 
  What version of Struts are you using? What does your taglib declaration
  look like? And what does you tag usage look like?
 
  L.
 
  ObWhine: please don't post unrelated questions to an existing thread.
 Be
 
 
 
  sure to start a new thread (with an appropriate subject) by sending a
  fresh message to the list, rather than using Reply To.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date:
 15/10/2007 5:55 PM
 


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




 DISCLAIMER:
 This email (including any attachments) is intended for the sole use of the
 intended recipient/s and may contain material that is CONFIDENTIAL AND
 PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
 distribution or forwarding of any or all of the contents in this message is
 STRICTLY PROHIBITED. If you are not the intended recipient, please contact
 the sender by email and delete all copies; your cooperation in this regard
 is appreciated.

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




RE: datetimepicker tag

2007-12-09 Thread Rajagopal_Yendluri
Hi,

  I tested the same with firefox:

Tools= PageInfo = Forms Tab: am not able to see the field name for 
s:datetimepicker ... .

Tools  ErrorConsole = Warnings Tab: 

Warning: Error in parsing value for property 'cursor'.  Declaration dropped.
Source File: 
http://localhost:8080/--//.action;jsessionid=FE29769C5916D88678E697B64A0E7BC7
Line: 29


Any clue ...







  
-Original Message-
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 10, 2007 11:13 AM
To: Struts Users Mailing List
Subject: Re: datetimepicker tag

If you have firefox you can actually check out the javascript console for
errors, might give you a clue as to what's going on if it is a js problem.

HIH

On Dec 10, 2007 12:54 PM, Rajagopal_Yendluri [EMAIL PROTECTED]
wrote:

 Hi..

   I am using 2.0.9, but for the nothing is displaying in jsp page except
 label.

 Included the ajax theme in jsp page. Checked the generated dojo script, it
 is also fine.. but nothing is displaying in my jsp page...

 Any Views... or ideas... what could be the reasons for not displaying
 nothing other than lable ?

 Any workaround also helps


 Regards,
 Rajagopal Y (Raj)
 HCU-Consulting  Enterprise Solutions.
 Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
 -Original Message-
 From: Jeromy Evans [mailto:[EMAIL PROTECTED]
 Sent: Tuesday, October 16, 2007 12:36 PM
 To: Struts Users Mailing List
 Subject: Re: datetimepicker tag

 Dipti, if you're using Struts 2.0.x, follow the example at :

 http://struts.apache.org/2.0.9/docs/datetimepicker.html

 It's likely you're just missing the essential
 %@ taglib prefix=s uri=/struts-tags %
 and/or
 s:head theme=ajax/
 tags mentioned at the top of that page.

 Note there are several issues with this version of the datetimepicker
 that are discussed in other threads.

 If you're using Struts 2.1.x you're probably missing the
 struts-dojo-plugin.  Michaël's reference below applies to Struts 2.1.xonly.

 [EMAIL PROTECTED] wrote:
  In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo
 plugin.
  So you need to include %@ taglib uri=/struts-dojo-tags prefix=sx%
  and sx:head/
 
  and call  :sx:datetimepicker .../
 
  Michaël
 
 
 
  dipti RealSoftInc [EMAIL PROTECTED]
  16/10/2007 08:09
  Veuillez répondre à
  Struts Users Mailing List user@struts.apache.org
 
 
  A
  user@struts.apache.org
  cc
 
  Objet
  Re: datetimepicker tag
 
 
 
 
 
 
 
  I m using Struts2 and the tag which m using is:
  s:datetimepicker name=delivery.date label=Delivery Date
  displayFormat=-MM-dd  /
  and regarding the taglib declaration it is not declared in it hence it
 is
  giving the exception:
  No tag datetimepicker defined in tag library imported with prefix
 s..
  Struts2 does not support datetimepicker?? or some other reason.. please
  reply back soon..
 
 
  Laurie Harper wrote:
 
  dipti RealSoftInc wrote:
 
  hello,
 
  I am using struts 2.0.1 and want to use datetimepicker tag... but it
 is
  giving an exception that it is not defined in the tld file i.e
  struts-tag.tld please help me out...
 
  What version of Struts are you using? What does your taglib declaration
  look like? And what does you tag usage look like?
 
  L.
 
  ObWhine: please don't post unrelated questions to an existing thread.
 Be
 
 
 
  sure to start a new thread (with an appropriate subject) by sending a
  fresh message to the list, rather than using Reply To.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 
 
 
  
 
  No virus found in this incoming message.
  Checked by AVG Free Edition.
  Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date:
 15/10/2007 5:55 PM
 


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




 DISCLAIMER:
 This email (including any attachments) is intended for the sole use of the
 intended recipient/s and may contain material that is CONFIDENTIAL AND
 PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
 distribution or forwarding of any or all of the contents in this message is
 STRICTLY PROHIBITED. If you are not the intended recipient, please contact
 the sender by email and delete all copies; your cooperation in this regard
 is appreciated.

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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the 
intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE 
COMPANY INFORMATION. Any review or reliance by others or copying or 
distribution or forwarding of any or all of the contents

Re: datetimepicker tag

2007-12-09 Thread Jeromy Evans

Use Firebug!

https://addons.mozilla.org/en-US/firefox/addon/1843

Jeromy Evans wrote:
Use FireBug to see if there's any errors loading dojo,  it's 
dependencies and datapicker images.
It's has to be related to your specific setup. 


Rajagopal_Yendluri wrote:

Hi,

  I tested the same with firefox:

Tools= PageInfo = Forms Tab: am not able to see the field name for 
s:datetimepicker ... .

Tools  ErrorConsole = Warnings Tab: 


Warning: Error in parsing value for property 'cursor'.  Declaration dropped.
Source File: 
http://localhost:8080/--//.action;jsessionid=FE29769C5916D88678E697B64A0E7BC7
Line: 29


Any clue ...







  
-Original Message-
From: Peng Tuck Kwok [mailto:[EMAIL PROTECTED] 
Sent: Monday, December 10, 2007 11:13 AM

To: Struts Users Mailing List
Subject: Re: datetimepicker tag

If you have firefox you can actually check out the javascript console for
errors, might give you a clue as to what's going on if it is a js problem.

HIH

On Dec 10, 2007 12:54 PM, Rajagopal_Yendluri [EMAIL PROTECTED]
wrote:

  

Hi..

  I am using 2.0.9, but for the nothing is displaying in jsp page except
label.

Included the ajax theme in jsp page. Checked the generated dojo script, it
is also fine.. but nothing is displaying in my jsp page...

Any Views... or ideas... what could be the reasons for not displaying
nothing other than lable ?

Any workaround also helps


Regards,
Rajagopal Y (Raj)
HCU-Consulting  Enterprise Solutions.
Phone: (C) +91-9986584084 / (W)+91-80-6658 3685.
-Original Message-
From: Jeromy Evans [mailto:[EMAIL PROTECTED]
Sent: Tuesday, October 16, 2007 12:36 PM
To: Struts Users Mailing List
Subject: Re: datetimepicker tag

Dipti, if you're using Struts 2.0.x, follow the example at :

http://struts.apache.org/2.0.9/docs/datetimepicker.html

It's likely you're just missing the essential
%@ taglib prefix=s uri=/struts-tags %
and/or
s:head theme=ajax/
tags mentioned at the top of that page.

Note there are several issues with this version of the datetimepicker
that are discussed in other threads.

If you're using Struts 2.1.x you're probably missing the
struts-dojo-plugin.  Michaël's reference below applies to Struts 2.1.xonly.

[EMAIL PROTECTED] wrote:


In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo
  

plugin.


So you need to include %@ taglib uri=/struts-dojo-tags prefix=sx%
and sx:head/

and call  :sx:datetimepicker .../

Michaël



dipti RealSoftInc [EMAIL PROTECTED]
16/10/2007 08:09
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org


A
user@struts.apache.org
cc

Objet
Re: datetimepicker tag







I m using Struts2 and the tag which m using is:
s:datetimepicker name=delivery.date label=Delivery Date
displayFormat=-MM-dd  /
and regarding the taglib declaration it is not declared in it hence it
  

is


giving the exception:
No tag datetimepicker defined in tag library imported with prefix
  

s..


Struts2 does not support datetimepicker?? or some other reason.. please
reply back soon..


Laurie Harper wrote:

  

dipti RealSoftInc wrote:



hello,

I am using struts 2.0.1 and want to use datetimepicker tag... but it
  

is


giving an exception that it is not defined in the tld file i.e
struts-tag.tld please help me out...

  

What version of Struts are you using? What does your taglib declaration
look like? And what does you tag usage look like?

L.

ObWhine: please don't post unrelated questions to an existing thread.


Be

  

sure to start a new thread (with an appropriate subject) by sending a
fresh message to the list, rather than using Reply To.


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








No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date:
  

15/10/2007 5:55 PM

-

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




DISCLAIMER:
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.

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






DISCLAIMER:
This email (including any attachments

Re: datetimepicker tag

2007-10-16 Thread dipti RealSoftInc

I m using Struts2 and the tag which m using is:
s:datetimepicker name=delivery.date label=Delivery Date
displayFormat=-MM-dd  /
and regarding the taglib declaration it is not declared in it hence it is
giving the exception:
No tag datetimepicker defined in tag library imported with prefix s..
Struts2 does not support datetimepicker?? or some other reason.. please
reply back soon..


Laurie Harper wrote:
 
 dipti RealSoftInc wrote:
 
 hello,
  
 I am using struts 2.0.1 and want to use datetimepicker tag... but it is
 giving an exception that it is not defined in the tld file i.e
 struts-tag.tld please help me out... 
 
 What version of Struts are you using? What does your taglib declaration 
 look like? And what does you tag usage look like?
 
 L.
 
 ObWhine: please don't post unrelated questions to an existing thread. Be 
 sure to start a new thread (with an appropriate subject) by sending a 
 fresh message to the list, rather than using Reply To.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13227362
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: datetimepicker tag

2007-10-16 Thread MLENEVEUT
In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo plugin. 
So you need to include %@ taglib uri=/struts-dojo-tags prefix=sx% 
and sx:head/

and call  :sx:datetimepicker .../

Michaël



dipti RealSoftInc [EMAIL PROTECTED] 
16/10/2007 08:09
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org


A
user@struts.apache.org
cc

Objet
Re: datetimepicker tag







I m using Struts2 and the tag which m using is:
s:datetimepicker name=delivery.date label=Delivery Date
displayFormat=-MM-dd  /
and regarding the taglib declaration it is not declared in it hence it is
giving the exception:
No tag datetimepicker defined in tag library imported with prefix s..
Struts2 does not support datetimepicker?? or some other reason.. please
reply back soon..


Laurie Harper wrote:
 
 dipti RealSoftInc wrote:
 
 hello,
 
 I am using struts 2.0.1 and want to use datetimepicker tag... but it is
 giving an exception that it is not defined in the tld file i.e
 struts-tag.tld please help me out... 
 
 What version of Struts are you using? What does your taglib declaration 
 look like? And what does you tag usage look like?
 
 L.
 
 ObWhine: please don't post unrelated questions to an existing thread. Be 

 sure to start a new thread (with an appropriate subject) by sending a 
 fresh message to the list, rather than using Reply To.
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13227362

Sent from the Struts - User mailing list archive at Nabble.com.


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




Re: datetimepicker tag

2007-10-16 Thread Jeromy Evans

Dipti, if you're using Struts 2.0.x, follow the example at :

http://struts.apache.org/2.0.9/docs/datetimepicker.html

It's likely you're just missing the essential
%@ taglib prefix=s uri=/struts-tags %
and/or
s:head theme=ajax/
tags mentioned at the top of that page. 

Note there are several issues with this version of the datetimepicker 
that are discussed in other threads.


If you're using Struts 2.1.x you're probably missing the 
struts-dojo-plugin.  Michaël's reference below applies to Struts 2.1.x only.


[EMAIL PROTECTED] wrote:
In the lasts versions (since 2.0.9 I guess), all AJAX are in dojo plugin. 
So you need to include %@ taglib uri=/struts-dojo-tags prefix=sx% 
and sx:head/


and call  :sx:datetimepicker .../

Michaël



dipti RealSoftInc [EMAIL PROTECTED] 
16/10/2007 08:09

Veuillez répondre à
Struts Users Mailing List user@struts.apache.org


A
user@struts.apache.org
cc

Objet
Re: datetimepicker tag







I m using Struts2 and the tag which m using is:
s:datetimepicker name=delivery.date label=Delivery Date
displayFormat=-MM-dd  /
and regarding the taglib declaration it is not declared in it hence it is
giving the exception:
No tag datetimepicker defined in tag library imported with prefix s..
Struts2 does not support datetimepicker?? or some other reason.. please
reply back soon..


Laurie Harper wrote:
  

dipti RealSoftInc wrote:


hello,

I am using struts 2.0.1 and want to use datetimepicker tag... but it is
giving an exception that it is not defined in the tld file i.e
struts-tag.tld please help me out... 
  
What version of Struts are you using? What does your taglib declaration 
look like? And what does you tag usage look like?


L.

ObWhine: please don't post unrelated questions to an existing thread. Be 



  
sure to start a new thread (with an appropriate subject) by sending a 
fresh message to the list, rather than using Reply To.



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






  



No virus found in this incoming message.
Checked by AVG Free Edition. 
Version: 7.5.488 / Virus Database: 269.14.12/1072 - Release Date: 15/10/2007 5:55 PM
  



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



datetimepicker tag

2007-10-15 Thread dipti RealSoftInc


hello,
 
I am using struts 2.0.1 and want to use datetimepicker tag... but it is
giving an exception that it is not defined in the tld file i.e
struts-tag.tld please help me out... 
-- 
View this message in context: 
http://www.nabble.com/Struts-Application-is-not-working-tf4560069.html#a13212419
Sent from the Struts - User mailing list archive at Nabble.com.


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



Re: datetimepicker tag

2007-10-15 Thread Laurie Harper

dipti RealSoftInc wrote:


hello,
 
I am using struts 2.0.1 and want to use datetimepicker tag... but it is

giving an exception that it is not defined in the tld file i.e
struts-tag.tld please help me out... 


What version of Struts are you using? What does your taglib declaration 
look like? And what does you tag usage look like?


L.

ObWhine: please don't post unrelated questions to an existing thread. Be 
sure to start a new thread (with an appropriate subject) by sending a 
fresh message to the list, rather than using Reply To.



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



datetimepicker tag problem

2007-05-11 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis 
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez 
à la mise à jour de votre carnet d'adresses.


Hi all,
I'm simply trying to use the datetime picker tag in my form exactly the 
same
way in the showcase sample app. It works in the showcase app and fail in 
my example.
Nothing appears. 
here is an extract of my code.

s:form action=create 
 table border=0 width=80% cellpadding=0 cellspacing=0 align=center
 

tr nowrap class=datavaluewite 
 tdnbsp;bAuteur : /td
 td align=left
 s:textfield name=article.auteur size=50/
 /td
/tr

tr nowrap class=datavalueblue 
s:datetimepicker label=With initial date of 1969-04-25 and a custom 
format dd/MM/ name=dddp5 value=25/04/1969 
displayFormat=dd/MM/ theme=xhtml/
/tr

trtdnbsp;/td/tr
  tr
 td/td
 td
 input type=submit value=Ajouter
 input type=submit value=Annuler 
 /td
/tr
 
 
/table
/s:form

can someone tells me if there is something to add in config files or 
somewhere else
to make it works.

thanks in advance.

Meissa



L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.



Re: datetimepicker tag problem

2007-05-11 Thread Julien Leonard

Hi,

I had the same problem.
Did you put s:head theme=ajax / tag?
In fact I think that the datetimepicker needs ajax includes.

Julien

2007/5/11, [EMAIL PROTECTED] 
[EMAIL PROTECTED]:


Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
Investor Servicing. Les adresses mails des collaborateurs ayant changé,
veillez à la mise à jour de votre carnet d'adresses.


Hi all,
I'm simply trying to use the datetime picker tag in my form exactly the
same
way in the showcase sample app. It works in the showcase app and fail in
my example.
Nothing appears.
here is an extract of my code.

s:form action=create
table border=0 width=80% cellpadding=0 cellspacing=0 align=center


tr nowrap class=datavaluewite 
 tdnbsp;bAuteur : /td
 td align=left
 s:textfield name=article.auteur size=50/
 /td
/tr

tr nowrap class=datavalueblue 
s:datetimepicker label=With initial date of 1969-04-25 and a custom
format dd/MM/ name=dddp5 value=25/04/1969
displayFormat=dd/MM/ theme=xhtml/
/tr

trtdnbsp;/td/tr
  tr
 td/td
 td
 input type=submit value=Ajouter
 input type=submit value=Annuler
 /td
/tr


/table
/s:form

can someone tells me if there is something to add in config files or
somewhere else
to make it works.

thanks in advance.

Meissa



L'integrite de ce message n'etant pas assuree sur internet, Natixis ne
peut etre tenu responsable de son contenu. Toute utilisation ou diffusion
non autorisee est interdite. Si vous n'etes pas destinataire de ce message,
merci de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails
que si necessaire

The integrity of this message cannot be guaranteed on the Internet.
Natixis can not therefore be considered responsible for the contents. Any
unauthorized use or dissemination is prohibited. If you are not the intended
recipient of this message, then please delete it and notify the sender.




Re: datetimepicker tag problem

2007-05-11 Thread meissa . sakho
Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis 
Investor Servicing. Les adresses mails des collaborateurs ayant changé, veillez 
à la mise à jour de votre carnet d'adresses.


Good answer !
I was near to tear my heair off because of this problem.
There is nowhere in the documentation that's telling that the ajax them is 
required
for the datetimepicker.
Thank you for your help.
Meissa





Julien Leonard [EMAIL PROTECTED] 
11/05/2007 11:10
Veuillez répondre à
Struts Users Mailing List user@struts.apache.org


A
Struts Users Mailing List user@struts.apache.org
cc

Objet
Re: datetimepicker tag problem






Hi,

I had the same problem.
Did you put s:head theme=ajax / tag?
In fact I think that the datetimepicker needs ajax includes.

Julien

2007/5/11, [EMAIL PROTECTED] 
[EMAIL PROTECTED]:

 Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle Natixis
 Investor Servicing. Les adresses mails des collaborateurs ayant changé,
 veillez à la mise à jour de votre carnet d'adresses.


 Hi all,
 I'm simply trying to use the datetime picker tag in my form exactly the
 same
 way in the showcase sample app. It works in the showcase app and fail in
 my example.
 Nothing appears.
 here is an extract of my code.

 s:form action=create
 table border=0 width=80% cellpadding=0 cellspacing=0 align=center


 tr nowrap class=datavaluewite 
  tdnbsp;bAuteur : /td
  td align=left
  s:textfield name=article.auteur size=50/
  /td
 /tr

 tr nowrap class=datavalueblue 
 s:datetimepicker label=With initial date of 1969-04-25 and a 
custom
 format dd/MM/ name=dddp5 value=25/04/1969
 displayFormat=dd/MM/ theme=xhtml/
 /tr

 trtdnbsp;/td/tr
   tr
  td/td
  td
  input type=submit value=Ajouter
  input type=submit value=Annuler
  /td
 /tr


 /table
 /s:form

 can someone tells me if there is something to add in config files or
 somewhere else
 to make it works.

 thanks in advance.

 Meissa



 L'integrite de ce message n'etant pas assuree sur internet, Natixis ne
 peut etre tenu responsable de son contenu. Toute utilisation ou 
diffusion
 non autorisee est interdite. Si vous n'etes pas destinataire de ce 
message,
 merci de le detruire et d'avertir l'expediteur.
 Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails
 que si necessaire

 The integrity of this message cannot be guaranteed on the Internet.
 Natixis can not therefore be considered responsible for the contents. 
Any
 unauthorized use or dissemination is prohibited. If you are not the 
intended
 recipient of this message, then please delete it and notify the sender.





L'integrite de ce message n'etant pas assuree sur internet, Natixis ne peut 
etre tenu responsable de son contenu. Toute utilisation ou diffusion non 
autorisee est interdite. Si vous n'etes pas destinataire de ce message, merci 
de le detruire et d'avertir l'expediteur.
Ensemble, faisons un geste pour l'environnement : n'imprimons nos mails que si 
necessaire

The integrity of this message cannot be guaranteed on the Internet. Natixis can 
not therefore be considered responsible for the contents. Any unauthorized use 
or dissemination is prohibited. If you are not the intended recipient of this 
message, then please delete it and notify the sender.



SV: datetimepicker tag problem

2007-05-11 Thread Gunnar.Bostrom
Hi,

Have you set 
struts.serve.static=true
In struts.xml?

Regards
Gunnar
 

 -Ursprungligt meddelande-
 Från: Julien Leonard [mailto:[EMAIL PROTECTED] 
 Skickat: den 11 maj 2007 11:11
 Till: Struts Users Mailing List
 Ämne: Re: datetimepicker tag problem
 
 Hi,
 
 I had the same problem.
 Did you put s:head theme=ajax / tag?
 In fact I think that the datetimepicker needs ajax includes.
 
 Julien
 
 2007/5/11, [EMAIL PROTECTED] 
 [EMAIL PROTECTED]:
 
  Depuis le 21 décembre 2006, Natexis Investor Servicing s'appelle 
  Natixis Investor Servicing. Les adresses mails des collaborateurs 
  ayant changé, veillez à la mise à jour de votre carnet d'adresses.
 
 
  Hi all,
  I'm simply trying to use the datetime picker tag in my form exactly 
  the same way in the showcase sample app. It works in the 
 showcase app 
  and fail in my example.
  Nothing appears.
  here is an extract of my code.
 
  s:form action=create
  table border=0 width=80% cellpadding=0 cellspacing=0 align=center
 
 
  tr nowrap class=datavaluewite 
   tdnbsp;bAuteur : /td
   td align=left
   s:textfield name=article.auteur size=50/
   /td
  /tr
 
  tr nowrap class=datavalueblue 
  s:datetimepicker label=With initial date of 1969-04-25 and a 
  custom format dd/MM/ name=dddp5 value=25/04/1969
  displayFormat=dd/MM/ theme=xhtml/ /tr
 
  trtdnbsp;/td/tr
tr
   td/td
   td
   input type=submit value=Ajouter
   input type=submit value=Annuler
   /td
  /tr
 
 
  /table
  /s:form
 
  can someone tells me if there is something to add in config 
 files or 
  somewhere else to make it works.
 
  thanks in advance.
 
  Meissa
 
 
 
  L'integrite de ce message n'etant pas assuree sur internet, 
 Natixis ne 
  peut etre tenu responsable de son contenu. Toute utilisation ou 
  diffusion non autorisee est interdite. Si vous n'etes pas 
 destinataire 
  de ce message, merci de le detruire et d'avertir l'expediteur.
  Ensemble, faisons un geste pour l'environnement : n'imprimons nos 
  mails que si necessaire
 
  The integrity of this message cannot be guaranteed on the Internet.
  Natixis can not therefore be considered responsible for the 
 contents. 
  Any unauthorized use or dissemination is prohibited. If you are not 
  the intended recipient of this message, then please delete 
 it and notify the sender.
 
 
 

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