Re: [S2] dropdowndatetimepicker not working
Hi Musachy, I'll try to build version 2.0.3 . Thanks for you help! Alexandre - Original Message - From: Musachy Barroso [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Friday, January 12, 2007 5:01 PM Subject: Re: [S2] dropdowndatetimepicker not working Hi Alexandre, The datepicker tag has been on the move between 2.0.1 - 2.0.3. I would suggest not to use 2.0.2, and wait until the next stable build is released, must likely 2.0.3. If you can't wait, and decide to build from source, and still have the same problem, let us know. regards musachy Alexandre Mendonça Lima wrote: Hi, Previously, when I was using version 2.0.1, my JSP was: s:datepicker name=equipamento.dataCadastro format=#dd/#MM/# value=%{dataEqp}/ The property dataCadastro in bean equipamento (property of my action) is from type java.util.Date . It's worked! Now, I'm using the actual version that I´ve copied from http://people.apache.org/builds/struts/2.0.2/ . The tag was modified and I change for: s:dropdowndatetimepicker name=equipamento.dataCadastro type=date language=pt-br/ After submit it generates error: Invalid field value for field equipamento.dataCadastro. In my console shows 2 messages: SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'dojo.equipamento.dataCadastro' with value '[Ljava.lang.String;@6adb31' SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'equipamento.dataCadastro' with value '[Ljava.lang.String;@272fec' What's happened? Alexandre Lima from Salvador, Brazil - 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: [S2] dropdowndatetimepicker not working
Hi Alexandre, The datepicker tag has been on the move between 2.0.1 - 2.0.3. I would suggest not to use 2.0.2, and wait until the next stable build is released, must likely 2.0.3. If you can't wait, and decide to build from source, and still have the same problem, let us know. regards musachy Alexandre Mendonça Lima wrote: Hi, Previously, when I was using version 2.0.1, my JSP was: s:datepicker name=equipamento.dataCadastro format=#dd/#MM/# value=%{dataEqp}/ The property dataCadastro in bean equipamento (property of my action) is from type java.util.Date . It's worked! Now, I'm using the actual version that I´ve copied from http://people.apache.org/builds/struts/2.0.2/ . The tag was modified and I change for: s:dropdowndatetimepicker name=equipamento.dataCadastro type=date language=pt-br/ After submit it generates error: Invalid field value for field equipamento.dataCadastro. In my console shows 2 messages: SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'dojo.equipamento.dataCadastro' with value '[Ljava.lang.String;@6adb31' SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception catched: Error setting expression 'equipamento.dataCadastro' with value '[Ljava.lang.String;@272fec' What's happened? Alexandre Lima from Salvador, Brazil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] dropdowndatetimepicker questions
Dariusz Wojtas wrote: Hi, I am absolutely nod in mood to be the 1st class troublemaker for S2 ajax support - which is very nice - but real life usage brings some questions. Don't lose your faith, must of the fixes have been recommended by you :) I have a form using theme ajax. And I have some: s:textfield ... label=aaa / s:select ... label=bbb / s:dropdowndatetimepicker ... label=ccc fields inside. Fields 'textfield' and 'select' do create a row in table with 2 cols: label, field. But the datetimepicker field only creates a single 'span' element withsome contents inside but seems to ignore the fact that it is placed inside an ajax form. Label defined for such field is not displayed. Is it supposed to behave like this? I may create that row myself, but I am worried that one day it will be 'fixed' and then my code is wrong. just another bug in the wall. I also have some question about the dropdowndatetimepicker in 'time' mode. What is the data type supported for this on the action side? If I have a Date property in my field and want to dysplay it as 2 fields in the form, using dropdowndatetimepickers: date time - what is the advised approach? I did not find any info in the docs/wiki about this. The server side type can be either a Date or an String. You can have two different fields on your action, then build just one Date object with them when your action executes. thanks musachy Thanks in advance Dariusz Wojtas - 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: [S2] dropdowndatetimepicker questions
I logged this ticket with a simple patch: https://issues.apache.org/struts/browse/WW-1602 (remember to remove theme=ajax for the ones that you want it to render the label) regards musachy Dariusz Wojtas wrote: Hi, I am absolutely nod in mood to be the 1st class troublemaker for S2 ajax support - which is very nice - but real life usage brings some questions. I have a form using theme ajax. And I have some: s:textfield ... label=aaa / s:select ... label=bbb / s:dropdowndatetimepicker ... label=ccc fields inside. Fields 'textfield' and 'select' do create a row in table with 2 cols: label, field. But the datetimepicker field only creates a single 'span' element withsome contents inside but seems to ignore the fact that it is placed inside an ajax form. Label defined for such field is not displayed. Is it supposed to behave like this? I may create that row myself, but I am worried that one day it will be 'fixed' and then my code is wrong. I also have some question about the dropdowndatetimepicker in 'time' mode. What is the data type supported for this on the action side? If I have a Date property in my field and want to dysplay it as 2 fields in the form, using dropdowndatetimepickers: date time - what is the advised approach? I did not find any info in the docs/wiki about this. Thanks in advance Dariusz Wojtas - 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: [S2] dropdowndatetimepicker questions
Maybe this fix helps, but for autocompleter. I asked for dropdowndatetimepicker :) Greetings Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: I logged this ticket with a simple patch: https://issues.apache.org/struts/browse/WW-1602 (remember to remove theme=ajax for the ones that you want it to render the label) regards musachy Dariusz Wojtas wrote: Hi, I am absolutely nod in mood to be the 1st class troublemaker for S2 ajax support - which is very nice - but real life usage brings some questions. I have a form using theme ajax. And I have some: s:textfield ... label=aaa / s:select ... label=bbb / s:dropdowndatetimepicker ... label=ccc fields inside. Fields 'textfield' and 'select' do create a row in table with 2 cols: label, field. But the datetimepicker field only creates a single 'span' element withsome contents inside but seems to ignore the fact that it is placed inside an ajax form. Label defined for such field is not displayed. Is it supposed to behave like this? I may create that row myself, but I am worried that one day it will be 'fixed' and then my code is wrong. I also have some question about the dropdowndatetimepicker in 'time' mode. What is the data type supported for this on the action side? If I have a Date property in my field and want to dysplay it as 2 fields in the form, using dropdowndatetimepickers: date time - what is the advised approach? I did not find any info in the docs/wiki about this. Thanks in advance Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] dropdowndatetimepicker questions
I swear I haven't been drinking today :). I will do a similar fix for the dropdowndatetimepicker musachy Dariusz Wojtas wrote: Maybe this fix helps, but for autocompleter. I asked for dropdowndatetimepicker :) Greetings Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: I logged this ticket with a simple patch: https://issues.apache.org/struts/browse/WW-1602 (remember to remove theme=ajax for the ones that you want it to render the label) regards musachy Dariusz Wojtas wrote: Hi, I am absolutely nod in mood to be the 1st class troublemaker for S2 ajax support - which is very nice - but real life usage brings some questions. I have a form using theme ajax. And I have some: s:textfield ... label=aaa / s:select ... label=bbb / s:dropdowndatetimepicker ... label=ccc fields inside. Fields 'textfield' and 'select' do create a row in table with 2 cols: label, field. But the datetimepicker field only creates a single 'span' element withsome contents inside but seems to ignore the fact that it is placed inside an ajax form. Label defined for such field is not displayed. Is it supposed to behave like this? I may create that row myself, but I am worried that one day it will be 'fixed' and then my code is wrong. I also have some question about the dropdowndatetimepicker in 'time' mode. What is the data type supported for this on the action side? If I have a Date property in my field and want to dysplay it as 2 fields in the form, using dropdowndatetimepickers: date time - what is the advised approach? I did not find any info in the docs/wiki about this. Thanks in advance Dariusz Wojtas - 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: [S2] dropdowndatetimepicker questions
Will it work with all modes of the parent form? (ajax, xhtml) as expected? Did anyone recognize the issue with textarea? If included inside a form with theme=ajax then it automatically is ajaxified (rich text) instead of just being rendered in a table row with two cols. btw, I am just sitting with a 2nd glass of a good red wine (no joke). If my future messages today are out of context - you know the reason :) Thanks for your time :) Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: I swear I haven't been drinking today :). I will do a similar fix for the dropdowndatetimepicker musachy Dariusz Wojtas wrote: Maybe this fix helps, but for autocompleter. I asked for dropdowndatetimepicker :) Greetings Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: I logged this ticket with a simple patch: https://issues.apache.org/struts/browse/WW-1602 (remember to remove theme=ajax for the ones that you want it to render the label) regards musachy Dariusz Wojtas wrote: Hi, I am absolutely nod in mood to be the 1st class troublemaker for S2 ajax support - which is very nice - but real life usage brings some questions. I have a form using theme ajax. And I have some: s:textfield ... label=aaa / s:select ... label=bbb / s:dropdowndatetimepicker ... label=ccc fields inside. Fields 'textfield' and 'select' do create a row in table with 2 cols: label, field. But the datetimepicker field only creates a single 'span' element withsome contents inside but seems to ignore the fact that it is placed inside an ajax form. Label defined for such field is not displayed. Is it supposed to behave like this? I may create that row myself, but I am worried that one day it will be 'fixed' and then my code is wrong. I also have some question about the dropdowndatetimepicker in 'time' mode. What is the data type supported for this on the action side? If I have a Date property in my field and want to dysplay it as 2 fields in the form, using dropdowndatetimepickers: date time - what is the advised approach? I did not find any info in the docs/wiki about this. Thanks in advance Dariusz Wojtas - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [S2] dropdowndatetimepicker questions
ok, here is the right one: https://issues.apache.org/struts/browse/WW-1605 musachy Dariusz Wojtas wrote: Will it work with all modes of the parent form? (ajax, xhtml) as expected? Did anyone recognize the issue with textarea? If included inside a form with theme=ajax then it automatically is ajaxified (rich text) instead of just being rendered in a table row with two cols. btw, I am just sitting with a 2nd glass of a good red wine (no joke). If my future messages today are out of context - you know the reason :) Thanks for your time :) Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: I swear I haven't been drinking today :). I will do a similar fix for the dropdowndatetimepicker musachy Dariusz Wojtas wrote: Maybe this fix helps, but for autocompleter. I asked for dropdowndatetimepicker :) Greetings Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: I logged this ticket with a simple patch: https://issues.apache.org/struts/browse/WW-1602 (remember to remove theme=ajax for the ones that you want it to render the label) regards musachy Dariusz Wojtas wrote: Hi, I am absolutely nod in mood to be the 1st class troublemaker for S2 ajax support - which is very nice - but real life usage brings some questions. I have a form using theme ajax. And I have some: s:textfield ... label=aaa / s:select ... label=bbb / s:dropdowndatetimepicker ... label=ccc fields inside. Fields 'textfield' and 'select' do create a row in table with 2 cols: label, field. But the datetimepicker field only creates a single 'span' element withsome contents inside but seems to ignore the fact that it is placed inside an ajax form. Label defined for such field is not displayed. Is it supposed to behave like this? I may create that row myself, but I am worried that one day it will be 'fixed' and then my code is wrong. I also have some question about the dropdowndatetimepicker in 'time' mode. What is the data type supported for this on the action side? If I have a Date property in my field and want to dysplay it as 2 fields in the form, using dropdowndatetimepickers: date time - what is the advised approach? I did not find any info in the docs/wiki about this. Thanks in advance Dariusz Wojtas - 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: [S2] dropdowndatetimepicker questions
I do not know if you did see my comment to WW-1605. It somehow produces endless loop ... Dariusz Wojtas On 1/7/07, Musachy Barroso [EMAIL PROTECTED] wrote: ok, here is the right one: https://issues.apache.org/struts/browse/WW-1605 musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] dropdowndatetimepicker
Great news! I have applied the patch for me, tested and it reads the property perfectly :) It is now correctly initialized. Good work. Thanks! But some issue is still there - format of the data submitted with the form. If I use it this way: s:dropdowndatetimepicker name=end displayFormat=-MM-dd language=pl / Produced URL: /my.action?=2006-12-25end=2006-12-25 then it works. But if I change it to: s:dropdowndatetimepicker name=end displayFormat=dd-MM- language=pl / Produced URL: /my.action?=2006-12-25end=25-12-2006 Then it ends with a large stacktrace in the browser and logs (see WW-1577). The display format attribute works perfectly for displaying it on the form, but still not in the submitted form data. Each dropdowndatepicker creates a pair of properties. The 1st one is always unnamed and contains date in the correct format for parsing (I think). The 2nd format depends on the displayFormat. Maybe the property name could be controlled in the same way as it is done with autocompleter? s:dropdowndatetimepicker name=end displayFormat=dd-MM- language=pl / It could mean: hidden 'end' field using the standard save format - matches the Date property in form displayed 'endDisplay' field using the display format - not needed in Form, may be ignored I know this is not something new, but if it works for autocompleter ... Best regards Dariusz Wojtas On 12/29/06, Musachy Barroso [EMAIL PROTECTED] wrote: I logged a ticket for this issue, with a patch: https://issues.apache.org/struts/browse/WW-1579 The tag was not reading the value from properties. Now it will get the value from the property specified in name, the value needs to be of type Date, or any object whose toString method returns an string that can be parsed into a date, using the displayFormat, or SimpleDateFormat.parse(). I removed the saveFormat attribute because it is confusing, the possible values for it were rfc, iso or unix. This is Dojo stuff. Now it will always be rfc (RFC 3379) regards musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] dropdowndatetimepicker
I don't think we need to submit two at all, just one on the RFC 3379 format (the one that works), the other one, which is the one on the textbox should be prefixed with dojo. so S2 ignores it (that's another issue by the way). regards musachy Dariusz Wojtas wrote: Great news! I have applied the patch for me, tested and it reads the property perfectly :) It is now correctly initialized. Good work. Thanks! But some issue is still there - format of the data submitted with the form. If I use it this way: s:dropdowndatetimepicker name=end displayFormat=-MM-dd language=pl / Produced URL: /my.action?=2006-12-25end=2006-12-25 then it works. But if I change it to: s:dropdowndatetimepicker name=end displayFormat=dd-MM- language=pl / Produced URL: /my.action?=2006-12-25end=25-12-2006 Then it ends with a large stacktrace in the browser and logs (see WW-1577). The display format attribute works perfectly for displaying it on the form, but still not in the submitted form data. Each dropdowndatepicker creates a pair of properties. The 1st one is always unnamed and contains date in the correct format for parsing (I think). The 2nd format depends on the displayFormat. Maybe the property name could be controlled in the same way as it is done with autocompleter? s:dropdowndatetimepicker name=end displayFormat=dd-MM- language=pl / It could mean: hidden 'end' field using the standard save format - matches the Date property in form displayed 'endDisplay' field using the display format - not needed in Form, may be ignored I know this is not something new, but if it works for autocompleter ... Best regards Dariusz Wojtas On 12/29/06, Musachy Barroso [EMAIL PROTECTED] wrote: I logged a ticket for this issue, with a patch: https://issues.apache.org/struts/browse/WW-1579 The tag was not reading the value from properties. Now it will get the value from the property specified in name, the value needs to be of type Date, or any object whose toString method returns an string that can be parsed into a date, using the displayFormat, or SimpleDateFormat.parse(). I removed the saveFormat attribute because it is confusing, the possible values for it were rfc, iso or unix. This is Dojo stuff. Now it will always be rfc (RFC 3379) regards musachy - 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: [s2] dropdowndatetimepicker
That's even better idea :) If you know how - I am 100% with you. Darek On 12/29/06, Musachy Barroso [EMAIL PROTECTED] wrote: I don't think we need to submit two at all, just one on the RFC 3379 format (the one that works), the other one, which is the one on the textbox should be prefixed with dojo. so S2 ignores it (that's another issue by the way). regards musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] dropdowndatetimepicker
I attached a new patch to WW-1579, the name of the textfield will now be dojo.${name}. This will make the params interceptor throw an exception, WW-1551 is asking to ignore such parameters. In the meanwhile you can implement ParameterNameAware on your action and ignore anything that starts with dojo. regards musachy Dariusz Wojtas wrote: That's even better idea :) If you know how - I am 100% with you. Darek On 12/29/06, Musachy Barroso [EMAIL PROTECTED] wrote: I don't think we need to submit two at all, just one on the RFC 3379 format (the one that works), the other one, which is the one on the textbox should be prefixed with dojo. so S2 ignores it (that's another issue by the way). regards musachy - 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: [s2] dropdowndatetimepicker
The latest patch fixed all issues that I had before with this tag. I tested it with various displayFormat values -MM-dd MM dd-MM- and it always worked as expected. Thanks a lot. Dariusz Wojtas On 12/29/06, Musachy Barroso [EMAIL PROTECTED] wrote: I attached a new patch to WW-1579, the name of the textfield will now be dojo.${name}. This will make the params interceptor throw an exception, WW-1551 is asking to ignore such parameters. In the meanwhile you can implement ParameterNameAware on your action and ignore anything that starts with dojo. regards musachy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [s2] dropdowndatetimepicker
I logged a ticket for this issue, with a patch: https://issues.apache.org/struts/browse/WW-1579 The tag was not reading the value from properties. Now it will get the value from the property specified in name, the value needs to be of type Date, or any object whose toString method returns an string that can be parsed into a date, using the displayFormat, or SimpleDateFormat.parse(). I removed the saveFormat attribute because it is confusing, the possible values for it were rfc, iso or unix. This is Dojo stuff. Now it will always be rfc (RFC 3379) regards musachy Dariusz Wojtas wrote: Hi, I ma trying to use the dropdowndatetimepicker tag but with little success. My Action defines field java.util.Date registrationDate; And here is my JSP part: s:dropdowndatetimepicker name=registrationDate displayFormat=dd-MM- saveFormat=-MM-dd language=pl/ Questions that I's like to ask: a) how do I force the tag to load initially with a value from the property? If I set the property to some non-null value, it is still not displayed. The showcase app uses an easy way, it predefines the initial value this way: s:dropdowndatetimepicker name=dddp3 value=2006-06-26 language=en-us / Which means the value is already formatted for the tag by hand. How to tell the tag to read my value from the property? Whatever I do - it displays empty date field when loaded from action. b) submitting the form with date I'd like to display the date in format 'dd-MM-' (Poland) And if I set it to the tag - it works for displaying. But it uses the same format to send the data when the field is submitted. And this causes an exception because validators cannot parse it: 22:49:53,187 ERROR - Dispatcher - Could not execute action java.lang.NullPointerException at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:197) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:337) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123) [...] Then I thought about using the saveFormat attribute for this purpose but it still fails. And here is the GET url generated by the browser for two Date properties on a form using dropdowndatetimepicker with the settings shown above: displayFormat=dd-MM- saveFormat=-MM-dd /myAction.action?=2006-12-22date1=22-12-2006=2006-12-23date2=23-12-2006 Such request produces stacktrace. Looks like the datepicker has empty names for the additional properties containing values in saveFormat. Using Struts 2.0.2 Dariusz Wojtas - 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: [s2] dropdowndatetimepicker
Hi Dariusz The thing is that the dropdowndatetimepicker is expecting the value to be an string, which is wrong, I will submit a patch to fix it so if the value is of type Date, it will format it using saveFormat, and then use it as the value. Now, I'm not sure what to do to with the submit, I don't know how to instruct S2 to use an specific format to populate a field. musachy Dariusz Wojtas wrote: Hi, I ma trying to use the dropdowndatetimepicker tag but with little success. My Action defines field java.util.Date registrationDate; And here is my JSP part: s:dropdowndatetimepicker name=registrationDate displayFormat=dd-MM- saveFormat=-MM-dd language=pl/ Questions that I's like to ask: a) how do I force the tag to load initially with a value from the property? If I set the property to some non-null value, it is still not displayed. The showcase app uses an easy way, it predefines the initial value this way: s:dropdowndatetimepicker name=dddp3 value=2006-06-26 language=en-us / Which means the value is already formatted for the tag by hand. How to tell the tag to read my value from the property? Whatever I do - it displays empty date field when loaded from action. b) submitting the form with date I'd like to display the date in format 'dd-MM-' (Poland) And if I set it to the tag - it works for displaying. But it uses the same format to send the data when the field is submitted. And this causes an exception because validators cannot parse it: 22:49:53,187 ERROR - Dispatcher - Could not execute action java.lang.NullPointerException at com.opensymphony.xwork2.DefaultActionInvocation.createResult(DefaultActionInvocation.java:197) at com.opensymphony.xwork2.DefaultActionInvocation.executeResult(DefaultActionInvocation.java:337) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:248) at com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept(ValidationInterceptor.java:115) at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java:86) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:219) at com.opensymphony.xwork2.DefaultActionInvocation$2.doProfiling(DefaultActionInvocation.java:218) at com.opensymphony.xwork2.util.profiling.UtilTimerStack.profile(UtilTimerStack.java:455) at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java:216) at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java:123) [...] Then I thought about using the saveFormat attribute for this purpose but it still fails. And here is the GET url generated by the browser for two Date properties on a form using dropdowndatetimepicker with the settings shown above: displayFormat=dd-MM- saveFormat=-MM-dd /myAction.action?=2006-12-22date1=22-12-2006=2006-12-23date2=23-12-2006 Such request produces stacktrace. Looks like the datepicker has empty names for the additional properties containing values in saveFormat. Using Struts 2.0.2 Dariusz Wojtas - 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]