Re: s:datetimepicker
john lee wrote: is s:datetimepicker struts default tag? if so, why it can not render the display? You're using S2.1 I assume? Are you using the s:head tag as mentioned in the s:datetimepicker docs [1]? Dave [1] http://struts.apache.org/2.0.11/docs/datetimepicker.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:datetimepicker / display date content customrize
tks, it works after i put s:head my new question: is it possible to mark some of display/pop calendar cell with special color and clickable link? In real word, any of display date could associate special event or customer order ...etc. what is the approach could be? tks in advance --- On Sat, 4/11/09, Dave Newton newton.d...@yahoo.com wrote: From: Dave Newton newton.d...@yahoo.com Subject: Re: s:datetimepicker To: Struts Users Mailing List user@struts.apache.org Date: Saturday, April 11, 2009, 1:50 PM john lee wrote: is s:datetimepicker struts default tag? if so, why it can not render the display? You're using S2.1 I assume? Are you using the s:head tag as mentioned in the s:datetimepicker docs [1]? Dave [1] http://struts.apache.org/2.0.11/docs/datetimepicker.html - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org
Re: s:datetimepicker
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=-MM-dd/ but just display 'calendar', nothing display on the right side either what happen? tks in advance john
RE: s:datetimepicker
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=-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
RE: s:datetimepicker
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=-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
Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12
Due to a lack of internet connection, Rainer will not be able to do a xwork release before monday. As soon as we have it out, a 2.0.14 build will follow. Musachy Barroso schrieb: We don't have a full 2.0.14 build yet, we will provide a snapshot of xwork(or you can build it yourself, it is not hard), and you can just drop the jar in your app. Rene, any news on the snapshot? regards musachy On Fri, Oct 31, 2008 at 3:13 AM, [EMAIL PROTECTED] wrote: The only testing I can do is to use 2.0.14 with my application. I am a beginner in the matter of struts. Where to get the complete version of 2.0.14? -Ursprüngliche Nachricht- Von: Musachy Barroso [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Oktober 2008 15:20 An: Struts Users Mailing List Betreff: Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12 We are trying to get people to test the latest xwork before releasing 2.0.14, if you could try it would help. regards musachy On Thu, Oct 30, 2008 at 9:43 AM, [EMAIL PROTECTED] wrote: Thanks for information. A Bug in 2.0.12 and I was working on a solution for hours. Stuff it! Is there the possibility to download a complete 2.0.13 version of struts? -Ursprüngliche Nachricht- Von: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Oktober 2008 13:46 An: Struts Users Mailing List Betreff: Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12 It might be related to this issue: https://issues.apache.org/struts/browse/WW-2849 Nils-H On Thu, Oct 30, 2008 at 1:20 PM, [EMAIL PROTECTED] wrote: Hello, I am using the s:datetimepicker in struts 2.0.11.2. After updating to version 2.0.12 I got the error dojo not defined. Is there someting different in the new version. Or, perhaps a bug? Does anybody have the same problem? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- René Gielen IT-Neering.net Saarstrasse 100, 52062 Aachen, Germany Tel: +49-(0)241-4010770 Fax: +49-(0)241-4010771 Cel: +49-(0)177-3194448 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12
We don't have a full 2.0.14 build yet, we will provide a snapshot of xwork(or you can build it yourself, it is not hard), and you can just drop the jar in your app. Rene, any news on the snapshot? regards musachy On Fri, Oct 31, 2008 at 3:13 AM, [EMAIL PROTECTED] wrote: The only testing I can do is to use 2.0.14 with my application. I am a beginner in the matter of struts. Where to get the complete version of 2.0.14? -Ursprüngliche Nachricht- Von: Musachy Barroso [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Oktober 2008 15:20 An: Struts Users Mailing List Betreff: Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12 We are trying to get people to test the latest xwork before releasing 2.0.14, if you could try it would help. regards musachy On Thu, Oct 30, 2008 at 9:43 AM, [EMAIL PROTECTED] wrote: Thanks for information. A Bug in 2.0.12 and I was working on a solution for hours. Stuff it! Is there the possibility to download a complete 2.0.13 version of struts? -Ursprüngliche Nachricht- Von: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Oktober 2008 13:46 An: Struts Users Mailing List Betreff: Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12 It might be related to this issue: https://issues.apache.org/struts/browse/WW-2849 Nils-H On Thu, Oct 30, 2008 at 1:20 PM, [EMAIL PROTECTED] wrote: Hello, I am using the s:datetimepicker in struts 2.0.11.2. After updating to version 2.0.12 I got the error dojo not defined. Is there someting different in the new version. Or, perhaps a bug? Does anybody have the same problem? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12
It might be related to this issue: https://issues.apache.org/struts/browse/WW-2849 Nils-H On Thu, Oct 30, 2008 at 1:20 PM, [EMAIL PROTECTED] wrote: Hello, I am using the s:datetimepicker in struts 2.0.11.2. After updating to version 2.0.12 I got the error dojo not defined. Is there someting different in the new version. Or, perhaps a bug? Does anybody have the same problem? - 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: s:datetimepicker doesn' t work after upgraded to struts2.0.12
We are trying to get people to test the latest xwork before releasing 2.0.14, if you could try it would help. regards musachy On Thu, Oct 30, 2008 at 9:43 AM, [EMAIL PROTECTED] wrote: Thanks for information. A Bug in 2.0.12 and I was working on a solution for hours. Stuff it! Is there the possibility to download a complete 2.0.13 version of struts? -Ursprüngliche Nachricht- Von: Nils-Helge Garli Hegvik [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 30. Oktober 2008 13:46 An: Struts Users Mailing List Betreff: Re: s:datetimepicker doesn' t work after upgraded to struts2.0.12 It might be related to this issue: https://issues.apache.org/struts/browse/WW-2849 Nils-H On Thu, Oct 30, 2008 at 1:20 PM, [EMAIL PROTECTED] wrote: Hello, I am using the s:datetimepicker in struts 2.0.11.2. After updating to version 2.0.12 I got the error dojo not defined. Is there someting different in the new version. Or, perhaps a bug? Does anybody have the same problem? - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Hey you! Would you help me to carry the stone? Pink Floyd
Re: s:datetimepicker
Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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: s:datetimepicker
Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker
Sorry for the misunderstanding. The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag s:datetimepicker with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widgetDatePicker.js). Regards, Sébastien Pablo Vázquez Blázquez a écrit : Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - 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: s:datetimepicker
Yes, that is my problem. Do you know how to do to get it? I don´t see where struts call dojo via javascript to parse the form... Thank you very much. Sébastien Domergue escribió: Sorry for the misunderstanding. The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag s:datetimepicker with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widgetDatePicker.js). Regards, Sébastien Pablo Vázquez Blázquez a écrit : Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker
I finally found where struts call dojo. In struts' jar, check the package template.simple. You'll find datetimepicker.ftl. This is the base used by struts to generate HTML. The syntax is not very hard and you'll easily see where dojo is called. If you want to modify this, you can modify the inner ftl (use with caution) or build a new external template. The problem when you create a template from simple is that when you use all of the others, you call simple. Regards Sébastien Pablo Vázquez Blázquez a écrit : Yes, that is my problem. Do you know how to do to get it? I don´t see where struts call dojo via javascript to parse the form... Thank you very much. Sébastien Domergue escribió: Sorry for the misunderstanding. The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag s:datetimepicker with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widgetDatePicker.js). Regards, Sébastien Pablo Vázquez Blázquez a écrit : Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - 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] - 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: s:datetimepicker
I would prefer to call whatever struts calls to apply this template instead of changing it. Do you know how struts invokes this template? Thank you. Sébastien Domergue escribió: I finally found where struts call dojo. In struts' jar, check the package template.simple. You'll find datetimepicker.ftl. This is the base used by struts to generate HTML. The syntax is not very hard and you'll easily see where dojo is called. If you want to modify this, you can modify the inner ftl (use with caution) or build a new external template. The problem when you create a template from simple is that when you use all of the others, you call simple. Regards Sébastien Pablo Vázquez Blázquez a écrit : Yes, that is my problem. Do you know how to do to get it? I don´t see where struts call dojo via javascript to parse the form... Thank you very much. Sébastien Domergue escribió: Sorry for the misunderstanding. The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag s:datetimepicker with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widgetDatePicker.js). Regards, Sébastien Pablo Vázquez Blázquez a écrit : Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker
When a jsp enters in struts' filter, it's read and each tag prefixed by s: (if such declared for struts tag use) is rewrite using the ftl files in the template package. It's one of the core purposes and I don't think it's a good idea to change this. I would rather recommend you to modifiy the ftl instead or try not to use dojo by loocking at the ftl. It seems that there is a way not to call dojo but another mecanism with some parameter (but i'm not sure). You're welcome. Pablo Vázquez Blázquez a écrit : I would prefer to call whatever struts calls to apply this template instead of changing it. Do you know how struts invokes this template? Thank you. Sébastien Domergue escribió: I finally found where struts call dojo. In struts' jar, check the package template.simple. You'll find datetimepicker.ftl. This is the base used by struts to generate HTML. The syntax is not very hard and you'll easily see where dojo is called. If you want to modify this, you can modify the inner ftl (use with caution) or build a new external template. The problem when you create a template from simple is that when you use all of the others, you call simple. Regards Sébastien Pablo Vázquez Blázquez a écrit : Yes, that is my problem. Do you know how to do to get it? I don´t see where struts call dojo via javascript to parse the form... Thank you very much. Sébastien Domergue escribió: Sorry for the misunderstanding. The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag s:datetimepicker with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widgetDatePicker.js). Regards, Sébastien Pablo Vázquez Blázquez a écrit : Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - 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] - 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] - 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: s:datetimepicker
I have finally solved it! I did not modify any template. This is the code in my subscribe function: if (type == load) { dojo.require(dojo.widget.Parse); var widgetParser = new dojo.widget.Parse(); var xmlParser = new dojo.xml.Parse(); var initIndex = data.indexOf(form); var endIndex = data.indexOf(/form); if ((initIndex != -1) (endIndex != -1)) { var formStr = data.substring(initIndex, endIndex+7); var div = document.createElement(div); div.innerHTML = formStr; var results = widgetParser.createComponents( xmlParser.parseElement(div.childNodes[0],null,true)); for (var i = 0; i results.length; i++) { var formNode = results[i].formNode; if (formNode formNode != ) { form1 = formNode; } } } else { form1 = undefined; } Sébastien Domergue escribió: When a jsp enters in struts' filter, it's read and each tag prefixed by s: (if such declared for struts tag use) is rewrite using the ftl files in the template package. It's one of the core purposes and I don't think it's a good idea to change this. I would rather recommend you to modifiy the ftl instead or try not to use dojo by loocking at the ftl. It seems that there is a way not to call dojo but another mecanism with some parameter (but i'm not sure). You're welcome. Pablo Vázquez Blázquez a écrit : I would prefer to call whatever struts calls to apply this template instead of changing it. Do you know how struts invokes this template? Thank you. Sébastien Domergue escribió: I finally found where struts call dojo. In struts' jar, check the package template.simple. You'll find datetimepicker.ftl. This is the base used by struts to generate HTML. The syntax is not very hard and you'll easily see where dojo is called. If you want to modify this, you can modify the inner ftl (use with caution) or build a new external template. The problem when you create a template from simple is that when you use all of the others, you call simple. Regards Sébastien Pablo Vázquez Blázquez a écrit : Yes, that is my problem. Do you know how to do to get it? I don´t see where struts call dojo via javascript to parse the form... Thank you very much. Sébastien Domergue escribió: Sorry for the misunderstanding. The difference that you see between the form while loading and the form loaded comes from dojo widget only. Struts rewrites the tag s:datetimepicker with a call to dojo (in javascript) which is executed on the client side. You could find the process construction in dojo's source (widgetDatePicker.js). Regards, Sébastien Pablo Vázquez Blázquez a écrit : Thank you Sébastien, but this is not actually my issue, but when does dojo do create the hidden inputs for each s:datetimepicker tag. (why if I have the form when loads and once it is loaded, they are different.) Sébastien Domergue escribió: Hello, We are using Struts 2 + Dojo too and it seems that datetimepicker separate informations into a list with two elements. The first one is the date and the second one is the time. Nevertheless, we still have problems to repopulate our inputs after an action. So we rebuild Strings to render informations. Regards, Sébastien Pablo Vázquez Blázquez a écrit : Hello, I am using Struts 2.0.9 + dojo 0.4. I would like to know when dojo adds two hidden inputs for each s:datetimepicker tag. I have a topic that is published when I load a form and when I recieve the data and parse the form (type == load), it has N elements. When the form is rendered, if I see it in the DOM, it has N+2*m elements (where m is the number of s:datetimepicker tags the form has). So, why when I get the form from the data response in the subscribed topic those input tags are not present? When are they created? Thanks, - 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] - 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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional
Re: s:datetimepicker Exception
--- On Mon, 9/1/08, Harden ZHU wrote: I am using s:datetimepicker as follow s:datetimepicker name=user.birthDate displayFormat=-MM-dd / When user.birthDate is null, i got exception == Caused by: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location] == What that mean? It means you may be serving that page without running through the Struts dispatcher filter. Are you trying to serve a JSP page directly without running it through an action? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker Exception
It can mean that you did not configured the S2 filter in the web.xml file at all. 2008/9/1, Dave Newton [EMAIL PROTECTED]: --- On Mon, 9/1/08, Harden ZHU wrote: I am using s:datetimepicker as follow s:datetimepicker name=user.birthDate displayFormat=-MM-dd / When user.birthDate is null, i got exception == Caused by: The Struts dispatcher cannot be found. This is usually caused by using Struts tags without the associated filter. Struts tags are only usable when the request has passed through its servlet filter, which initializes the Struts dispatcher needed for this tag. - [unknown location] == What that mean? It means you may be serving that page without running through the Struts dispatcher filter. Are you trying to serve a JSP page directly without running it through an action? Dave - 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: s:datetimepicker 2
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i did it like that: in package_??.properties (?? for the locale) dateformat=dd.MM. in my jsp: s:set name=dateformat value=%{getTextd('dateformat'}) / s:datetimepicker format=%{dateformat} ... / Maybe it works for you ~ volker Ian Meikle schrieb: | Hi, | | In the doc for s:datetimepicker it says: The value sent to the server | is a locale-independent value, in a hidden | field as defined by the name attribute. The value will be formatted | conforming to RFC3 339 (-MM-dd'T'HH:mm:ss) | | From my debugging two values are sent to the server. | 1) dojo.attributeName | 2) attributename | | 1) is in the RFC format 2) is in the typed in format. | | This means that the typed in format is the one converted and set into my | object after being procesed by XWorkBasicConverter.doConvertToDate | For a pure date field this conversion code uses the request locale to | convert the string into a date. | However because the typed in string is not as per locale (see my previous | post on s:datetimepicker this conversion fails). | If I change the template for the picker and swap the params so that | attributeName actually gets the value in RFC format, the | conversion also fails because this format is not checked for pure date | fields, only datetime fields. | | Can anyone shed some light on this ? | | 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. | - | - -- - --- Volker Karlmeier Friedrich-Freye-Str. 61 45481 Mülheim/Ruhr Tel. : (+49) 208-7785675 Mobil: (+49) 176-21056587 Mail : [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIIKeXaEMQXBIqssERApLfAJ9CjpbwSMoGqL2DqgjKP+bjvrfl9wCfYaqx JalJr0FeT3sQ5fSuQXqoNYE= =V+oP -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker 2
Hi, Thanks for the response. We are using S2 2.0.11.1 and in this version the format attribute does not exist in s:datetimepicket So you suggestion will not work for us. 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. - Volker Karlmeier [EMAIL PROTECTED] 06.05.2008 20:46 Please respond to Struts Users Mailing List user@struts.apache.org To Struts Users Mailing List user@struts.apache.org cc Subject Re: s:datetimepicker 2 -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, i did it like that: in package_??.properties (?? for the locale) dateformat=dd.MM. in my jsp: s:set name=dateformat value=%{getTextd('dateformat'}) / s:datetimepicker format=%{dateformat} ... / Maybe it works for you ~ volker Ian Meikle schrieb: | Hi, | | In the doc for s:datetimepicker it says: The value sent to the server | is a locale-independent value, in a hidden | field as defined by the name attribute. The value will be formatted | conforming to RFC3 339 (-MM-dd'T'HH:mm:ss) | | From my debugging two values are sent to the server. | 1) dojo.attributeName | 2) attributename | | 1) is in the RFC format 2) is in the typed in format. | | This means that the typed in format is the one converted and set into my | object after being procesed by XWorkBasicConverter.doConvertToDate | For a pure date field this conversion code uses the request locale to | convert the string into a date. | However because the typed in string is not as per locale (see my previous | post on s:datetimepicker this conversion fails). | If I change the template for the picker and swap the params so that | attributeName actually gets the value in RFC format, the | conversion also fails because this format is not checked for pure date | fields, only datetime fields. | | Can anyone shed some light on this ? | | 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. | - | - -- - --- Volker Karlmeier Friedrich-Freye-Str. 61 45481 Mülheim/Ruhr Tel. : (+49) 208-7785675 Mobil: (+49) 176-21056587 Mail : [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFIIKeXaEMQXBIqssERApLfAJ9CjpbwSMoGqL2DqgjKP+bjvrfl9wCfYaqx JalJr0FeT3sQ5fSuQXqoNYE= =V+oP -END PGP SIGNATURE- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker version 2.0.11 issue
akash agrawal wrote: Issue: 1. Time cannot be edited by going straight to the text field and entering using keyboard. It only allows to pick up the time from the popup. However popup only gives minutes granularity in 5 minutes interval. Any workaround? Is there a better mailing list to post this question. Unfortunately... Answer: usability of the time picker in Dojo 0.4 sucks Work around: 1. I use selects for time with javascript to combine the selections into a string in a hidden field (and vice versa). Not as pertty, but it works well! 2. google javascript time picker - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker not working
Which build are you using? regards musachy xiao jie wrote: Hi : I seem to have problem with the s:datetimepicker tag in my struts 2 application, I used the quickstart project as a template and starting point for my project, but when I include a s:datetimepicker in a jsp page,it says No tag datetimepicker defined in tag library imported with prefix s. do I have to change the struts 2 tld file or sth? thanks a lot Pam Do you Yahoo!? Everyone is raving about the all-new Yahoo! Mail beta. http://new.mail.yahoo.com - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker not working
Which version of S2 are you using? There were changes in this area in the last month. You need to use 2.0.3, or preferably 2.0.4 to use it this way http://people.apache.org/builds/struts/nightlies/2.0.x/ Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker not working
hi: I am using struts 2 2.0.1 but how do I update it to 2.0.4? thanks a lot. Pam - Original Message From: Dariusz Wojtas [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, January 28, 2007 7:58:20 PM Subject: Re: s:datetimepicker not working Which version of S2 are you using? There were changes in this area in the last month. You need to use 2.0.3, or preferably 2.0.4 to use it this way http://people.apache.org/builds/struts/nightlies/2.0.x/ Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Expecting? Get great news right away with email Auto-Check. Try the Yahoo! Mail Beta. http://advision.webevents.yahoo.com/mailbeta/newmail_tools.html
Re: s:datetimepicker not working
Look at the link I have given you :) http://people.apache.org/builds/struts/nightlies/2.0.x/ These are the nightly builds for Struts 2. Download struts core, struts api + the plugins you need - only a set from the last day. Alternatively checkout the sources from the repository and make a build yourself. Look into wiki for details on this topic. Dariusz Wojtas On 1/28/07, xiao jie [EMAIL PROTECTED] wrote: hi: I am using struts 2 2.0.1 but how do I update it to 2.0.4? thanks a lot. Pam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: s:datetimepicker not working
Hi Dariusz: thanks a lot!! Pam - Original Message From: Dariusz Wojtas [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Sunday, January 28, 2007 8:21:43 PM Subject: Re: s:datetimepicker not working Look at the link I have given you :) http://people.apache.org/builds/struts/nightlies/2.0.x/ These are the nightly builds for Struts 2. Download struts core, struts api + the plugins you need - only a set from the last day. Alternatively checkout the sources from the repository and make a build yourself. Look into wiki for details on this topic. Dariusz Wojtas On 1/28/07, xiao jie [EMAIL PROTECTED] wrote: hi: I am using struts 2 2.0.1 but how do I update it to 2.0.4? thanks a lot. Pam - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] 8:00? 8:25? 8:40? Find a flick in no time with the Yahoo! Search movie showtime shortcut. http://tools.search.yahoo.com/shortcuts/#news