Re: Problem with Date fields in struts2.1.8.1

2009-12-17 Thread Greg Lindholm
Your setter should be setVdat1s() with a capital V to match java bean standards. There has been other reports on this list of this issue. On Thu, Dec 17, 2009 at 2:26 PM, Parm Lehal wrote: > I migrated from struts2.1.6 to 2.1.8.1 and all of a sudden my date > fields don't get saved any more.  H

Re: Problem with Date fields in struts2.1.8.1

2009-12-17 Thread Parm Lehal
I migrated from struts2.1.6 to 2.1.8.1 and all of a sudden my date fields don't get saved any more. Has anyone else faced this issue? Please, help. I am using plain text field for date and using getter and setter methods in the model class to format the date. the form has Setter in the mode

Re: [S2] Problem with Date pattern

2007-06-14 Thread Diego Yasuhiko Kurisaki
Yes thats right... When i have the following signature for the setter method setDataInicial(java.util.Date data){ } The method is called properly and my date is setted, but it changes dd/MM for MM/dd, so if my date is 01/12 (first of december) in my bean it turns to 12/01 (twelveth of january

Re: [S2] Problem with Date pattern

2007-06-14 Thread Musachy Barroso
Make sure the inputName matches the name of the setter method, I assume you have a getAnuncio() in your action whose result has a setDataInicial() method right? musachy On 6/13/07, Diego Yasuhiko Kurisaki <[EMAIL PROTECTED]> wrote: I'm using saveFormat=rfc and java.util.Date as my object My d

Re: [S2] Problem with Date pattern

2007-06-13 Thread Diego Yasuhiko Kurisaki
I'm using saveFormat=rfc and java.util.Date as my object My dojo is. "> and my setter public void setDataInicial(Date dataInicial) { this.dataInicial = dataInicial; } I've tried to change my setter method to public void setDataInicial(Date dataInicial) { SimpleDateFormat dateFo

Re: [S2] Problem with Date pattern

2007-06-13 Thread Musachy Barroso
Try using a Date object for your field, and set saveFormat="rfc" for the widget. musachy On 6/13/07, Diego Yasuhiko Kurisaki <[EMAIL PROTECTED]> wrote: I'm manually using the DojoTookit Date Picker withe the following pattern dd/MM/yyy in my action i have a setter method like this. setDate(

[S2] Problem with Date pattern

2007-06-13 Thread Diego Yasuhiko Kurisaki
I'm manually using the DojoTookit Date Picker withe the following pattern dd/MM/yyy in my action i have a setter method like this. setDate(Date date){ this.date = date } But it seens that the struts 2 when sets the method changes from dd/MM/ for MM/dd/ does anyone know any solution? I

Re: [S2] Strange problem with Date handling

2007-01-01 Thread Martin Gainty
privé ou confidentiel. Si vous n'êtes pas le destinataire de ce document, nous vous signalons qu'il est strictement interdit de le diffuser, de le distribuer ou de le reproduire. - Original Message - From: "Dariusz Wojtas" <[EMAIL PROTECTED]> To: "Struts Use

Re: [S2] Strange problem with Date handling

2007-01-01 Thread Musachy Barroso
I was having that problem because S2 creates a new action to handle each request, and I was using Spring as the object factory which reuses the instances unless specified otherwise (scope="prototype" in Spring 2) musachy Dariusz Wojtas wrote: I am using Spring 2 but I do not define actions in

Re: [S2] Strange problem with Date handling

2007-01-01 Thread Dariusz Wojtas
I am using Spring 2 but I do not define actions in Spring. I use Spring to manage my services and security (acegi). As I understand this way the actions are created the 'traditional' way, and only some setters are later autowired - in this case by name. My date property does not match any spring s

Re: [S2] Strange problem with Date handling

2007-01-01 Thread Musachy Barroso
I had a similar problem before, are you using Spring 2 with S2? If you are, remember to set scope="prototype" in applicationContext.xml for your action bean musachy Dariusz Wojtas wrote: Now I am stuck with some other issue, something so strange that seems to be irrational. I have an URL /

[S2] Strange problem with Date handling

2006-12-31 Thread Dariusz Wojtas
Now I am stuck with some other issue, something so strange that seems to be irrational. I have an URL /myAction.action?dataPierwszejRejestracji=2006-12-31 that leads to an action with a Date property - dataPierwszejRejestracji I submit this URL in IE and Firefox - works. I submit the same URL

Re: Problem with date

2005-07-25 Thread Michael Meadows
To be less terse: The Date object is kind of like my wife when I get all excited about technology... it only acts like it cares about time zone. If you're parsing from text, try feeding the DateFormat object a TimeZone before parsing: DateFormat formatter = DateFormat.getDateTimeInstance (Date

Re: Problem with date

2005-07-25 Thread Michael Meadows
Feed it to the Calendar (yum). On 25 Jul 2005 03:43:54 -, syed abrar <[EMAIL PROTECTED]> wrote: > > > Hello > This problem is more of a core java issue than a struts one. > I have a user interface to accept time and another field to enter the > difference of time with GMT (GMT+x or GMT-1)

Problem with date

2005-07-24 Thread syed abrar
Hello This problem is more of a core java issue than a struts one. I have a user interface to accept time and another field to enter the difference of time with GMT (GMT+x or GMT-1) . I have to accept this time and convert the time exactly into the timezone in which the ser