Re: [S2] Problem with Date pattern
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). If i change my method to setDataInicial(String data) {} The method is not called, that doesn't make any sense to me. On 6/14/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: 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 dojo is. > > displayFormat="dd/MM/" saveFormat="rfc" value=""> > > 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 dateFormat = new SimpleDateFormat("dd/MM/"); > try { > this.dataInicial = dateFormat.parse(dataInicial); > } catch (ParseException e) { > // TODO Auto-generated catch block > e.printStackTrace(); > } > } > > But then my method was not even called... > > > On 6/13/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: > > > > 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(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've tried to make a set method that receives String and then parse > the > > > date > > > by myself. But the new setMethod was not called when the form is > > > submitted > > > . > > > > > > > > > On 6/13/07, Torsten Römer <[EMAIL PROTECTED]> wrote: > > > > > > > > Everytime my app starts, I see this in the log: > > > > > > > > 13.06.2007 23:50:27 org.apache.struts2.config.Settings getLocale > > > > WARNUNG: Settings: Could not parse struts.locale setting, > substituting > > > > default VM locale > > > > > > > > I put > > > > > > > > > > > > > > > > in my struts.xml, but I still get the error (and the default VM > locale > > > > is used, which I don't want) > > > > > > > > Torsten > > > > > > > > > - > > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > -- > > > []'s Diego Yasuhiko Kurisaki > > > > > > > > > > > -- > > "Hey you! Would you help me to carry the stone?" Pink Floyd > > > > > > -- > []'s Diego Yasuhiko Kurisaki > -- "Hey you! Would you help me to carry the stone?" Pink Floyd -- []'s Diego Yasuhiko Kurisaki
Re: [S2] Problem with Date pattern
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 dateFormat = new SimpleDateFormat("dd/MM/"); try { this.dataInicial = dateFormat.parse(dataInicial); } catch (ParseException e) { // TODO Auto-generated catch block e.printStackTrace(); } } But then my method was not even called... On 6/13/07, Musachy Barroso <[EMAIL PROTECTED]> wrote: 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(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've tried to make a set method that receives String and then parse the > date > by myself. But the new setMethod was not called when the form is > submitted > . > > > On 6/13/07, Torsten Römer <[EMAIL PROTECTED]> wrote: > > > > Everytime my app starts, I see this in the log: > > > > 13.06.2007 23:50:27 org.apache.struts2.config.Settings getLocale > > WARNUNG: Settings: Could not parse struts.locale setting, substituting > > default VM locale > > > > I put > > > > > > > > in my struts.xml, but I still get the error (and the default VM locale > > is used, which I don't want) > > > > Torsten > > > > ----- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > []'s Diego Yasuhiko Kurisaki > -- "Hey you! Would you help me to carry the stone?" Pink Floyd -- []'s Diego Yasuhiko Kurisaki
[S2] Problem with Date pattern
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've tried to make a set method that receives String and then parse the date by myself. But the new setMethod was not called when the form is submitted . On 6/13/07, Torsten Römer <[EMAIL PROTECTED]> wrote: Everytime my app starts, I see this in the log: 13.06.2007 23:50:27 org.apache.struts2.config.Settings getLocale WARNUNG: Settings: Could not parse struts.locale setting, substituting default VM locale I put in my struts.xml, but I still get the error (and the default VM locale is used, which I don't want) Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- []'s Diego Yasuhiko Kurisaki
Re: [S2] needs refresh to work properly
Well i spent a hour to realize that when i used the property tag and go no output, i was mistyping the name :/ it worked using just the name of the method that i want. Thanks On 5/7/07, Diego Yasuhiko Kurisaki <[EMAIL PROTECTED]> wrote: Well, using the property tag i got no output at all. I'll try to use the webwork stuff. Is this really how it works? On 5/7/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: > > have you tried using the property tag instead? value="ca.name" /> > > Diego Yasuhiko Kurisaki wrote: > > Hi i've written the following in a JSP. > > > > > > > >${ca.name} > >${ca.description } > >remove > >edit > > > > > > > > I have a method in my action called getClients. > > > > When i first load the page, the iterator tag generates the exact > > number of > > rows of the list that is returned by the getClients method. > > But the EL ${ca.name } and ${ca.description} doesn't return any value > > until a > > refresh. > > > > I've tried then putting a breakpoint inside the getName and > > getDescription > > methods, it seens that the methods are being called just after the > first > > refresh. > > > > Looks like i'm doing something very wrong, am i not supposed to use EL > > inside ? What should i use then? > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- []'s Diego Yasuhiko Kurisaki -- []'s Diego Yasuhiko Kurisaki
Re: [S2] needs refresh to work properly
Well, using the property tag i got no output at all. I'll try to use the webwork stuff. Is this really how it works? On 5/7/07, Adam Ruggles <[EMAIL PROTECTED]> wrote: have you tried using the property tag instead? Diego Yasuhiko Kurisaki wrote: > Hi i've written the following in a JSP. > > > >${ca.name} >${ca.description} >remove >edit > > > > I have a method in my action called getClients. > > When i first load the page, the iterator tag generates the exact > number of > rows of the list that is returned by the getClients method. > But the EL ${ca.name} and ${ca.description} doesn't return any value > until a > refresh. > > I've tried then putting a breakpoint inside the getName and > getDescription > methods, it seens that the methods are being called just after the first > refresh. > > Looks like i'm doing something very wrong, am i not supposed to use EL > inside ? What should i use then? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- []'s Diego Yasuhiko Kurisaki
[S2] needs refresh to work properly
Hi i've written the following in a JSP. ${ca.name} ${ca.description} remove edit I have a method in my action called getClients. When i first load the page, the iterator tag generates the exact number of rows of the list that is returned by the getClients method. But the EL ${ca.name} and ${ca.description} doesn't return any value until a refresh. I've tried then putting a breakpoint inside the getName and getDescription methods, it seens that the methods are being called just after the first refresh. Looks like i'm doing something very wrong, am i not supposed to use EL inside ? What should i use then? -- []'s Diego Yasuhiko Kurisaki