Re: WebSocket and timeout
Hello Manfred, AFAIK websocket ping messages will not update HTTP session. You can set up AbstractAjaxTimerBehavior or send pure JS HTTP request to refresh the session On Sat, Sep 16, 2017 at 7:34 PM, Manfred Bergmann wrote: > > Hi, > > On Sat, Sep 16, 2017 at 1:32 PM, Manfred Bergmann> wrote: > >> Found a different solution. >> >> Followed the advice here: >> https://issues.apache.org/jira/browse/WICKET-5453 >> >> Where you can set the default idle timeout on the >> WebSocketServerContainerInitializer. >> > > This is a good start! > But if there is a proxy involved then you will need to do the same there > too. > Better send heartbeat messages once in a while, e.g. every minute. > > > > OK. I'm not exactly certain how I would do that. > Do you mean a timer on the server side which sends some message over the > websocket, > or some behavior, as suggested by Maxim? > > How do I handle that when the panel got disposed? > > > Manfred > > -- > Sent from: > http://apache-wicket.1842946.n4.nabble.com/Users-forum-f1842947.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Joda-time dependency
So far I did no changes I'll start the movement this week, hopefully today of tomorrow On Mon, Sep 18, 2017 at 11:19 AM, Martin Makundi wrote: > Did you drop it from the pom already so that joda is not visible in the > scope? > > 2017-09-18 6:57 GMT+03:00 Maxim Solodovnik : > >> date-time module will not have joda-time dependency after moving >> Other modules might have this dependency ... >> >> On Mon, Sep 18, 2017 at 10:50 AM, Martin Makundi >> wrote: >> > Is it possible to also drop joda from wicketstuff for consistency? >> > >> > 2017-09-17 22:09 GMT+03:00 Andrea Del Bene : >> > >> >> +1 to move legacy code to WicketStuff. For 'legacy code' I mean all the >> >> code based on yui library and class StyleDateConverter which is >> tailored on >> >> Joda time. >> >> >> >> >> >> >> >> On 16/09/2017 14:13, Martin Grigorov wrote: >> >> >> >>> Hi Maxim, >> >>> >> >>> Since I do not use wicket-datetime in my apps I also wanted to break it >> >>> hard by replacing Joda-Time with Java 8 classes. >> >>> But people who use it expressed concerns that it will be hard to >> migrate >> >>> this way. Everyone will have to do the same for his/her application. >> >>> I remember Igor even suggested to have univeral API that will work with >> >>> java.util.Date, Joda-Time and Java 8! >> >>> >> >>> IMO the easiest thing that could be done is to copy the current code to >> >>> WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and >> rework >> >>> wicket-datetime to use Java 8 APIs. >> >>> >> >>> Martin Grigorov >> >>> Wicket Training and Consulting >> >>> https://twitter.com/mtgrigorov >> >>> >> >>> On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik < >> solomax...@gmail.com> >> >>> wrote: >> >>> >> >>> Hello Martin, >> >> I tried to continue this work, but it seems I need some information >> before I can proceed >> Could you please tell me What was the goal of these changes? >> >> I would remove joda-time, and use LocalDate, LocalTime instead of Date >> As I can see you are using ZonedDateTime ... >> >> >> On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov < >> mgrigo...@apache.org> >> wrote: >> >> > Yes, if finished on time! >> > Wicket 7 requires Java 7 >> > >> > Martin Grigorov >> > Wicket Training and Consulting >> > https://twitter.com/mtgrigorov >> > >> > On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A < >> iamrakes...@rediffmail.com> >> > wrote: >> > >> > Hi, >> >> >> >> Is it going to be for Wicket 8 only ? >> >> >> >> Regards, >> >> Rakesh.A >> >> >> >> -- >> >> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- >> >> f1842947.html >> >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> >> >> -- >> WBR >> Maxim aka solomax >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> >> >> -- >> WBR >> Maxim aka solomax >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Joda-time dependency
Did you drop it from the pom already so that joda is not visible in the scope? 2017-09-18 6:57 GMT+03:00 Maxim Solodovnik : > date-time module will not have joda-time dependency after moving > Other modules might have this dependency ... > > On Mon, Sep 18, 2017 at 10:50 AM, Martin Makundi > wrote: > > Is it possible to also drop joda from wicketstuff for consistency? > > > > 2017-09-17 22:09 GMT+03:00 Andrea Del Bene : > > > >> +1 to move legacy code to WicketStuff. For 'legacy code' I mean all the > >> code based on yui library and class StyleDateConverter which is > tailored on > >> Joda time. > >> > >> > >> > >> On 16/09/2017 14:13, Martin Grigorov wrote: > >> > >>> Hi Maxim, > >>> > >>> Since I do not use wicket-datetime in my apps I also wanted to break it > >>> hard by replacing Joda-Time with Java 8 classes. > >>> But people who use it expressed concerns that it will be hard to > migrate > >>> this way. Everyone will have to do the same for his/her application. > >>> I remember Igor even suggested to have univeral API that will work with > >>> java.util.Date, Joda-Time and Java 8! > >>> > >>> IMO the easiest thing that could be done is to copy the current code to > >>> WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and > rework > >>> wicket-datetime to use Java 8 APIs. > >>> > >>> Martin Grigorov > >>> Wicket Training and Consulting > >>> https://twitter.com/mtgrigorov > >>> > >>> On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik < > solomax...@gmail.com> > >>> wrote: > >>> > >>> Hello Martin, > > I tried to continue this work, but it seems I need some information > before I can proceed > Could you please tell me What was the goal of these changes? > > I would remove joda-time, and use LocalDate, LocalTime instead of Date > As I can see you are using ZonedDateTime ... > > > On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov < > mgrigo...@apache.org> > wrote: > > > Yes, if finished on time! > > Wicket 7 requires Java 7 > > > > Martin Grigorov > > Wicket Training and Consulting > > https://twitter.com/mtgrigorov > > > > On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A < > iamrakes...@rediffmail.com> > > wrote: > > > > Hi, > >> > >> Is it going to be for Wicket 8 only ? > >> > >> Regards, > >> Rakesh.A > >> > >> -- > >> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > >> f1842947.html > >> > >> > - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > >> > > -- > WBR > Maxim aka solomax > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >> > >> - > >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > >> For additional commands, e-mail: users-h...@wicket.apache.org > >> > >> > > > > -- > WBR > Maxim aka solomax > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Joda-time dependency
date-time module will not have joda-time dependency after moving Other modules might have this dependency ... On Mon, Sep 18, 2017 at 10:50 AM, Martin Makundi wrote: > Is it possible to also drop joda from wicketstuff for consistency? > > 2017-09-17 22:09 GMT+03:00 Andrea Del Bene : > >> +1 to move legacy code to WicketStuff. For 'legacy code' I mean all the >> code based on yui library and class StyleDateConverter which is tailored on >> Joda time. >> >> >> >> On 16/09/2017 14:13, Martin Grigorov wrote: >> >>> Hi Maxim, >>> >>> Since I do not use wicket-datetime in my apps I also wanted to break it >>> hard by replacing Joda-Time with Java 8 classes. >>> But people who use it expressed concerns that it will be hard to migrate >>> this way. Everyone will have to do the same for his/her application. >>> I remember Igor even suggested to have univeral API that will work with >>> java.util.Date, Joda-Time and Java 8! >>> >>> IMO the easiest thing that could be done is to copy the current code to >>> WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and rework >>> wicket-datetime to use Java 8 APIs. >>> >>> Martin Grigorov >>> Wicket Training and Consulting >>> https://twitter.com/mtgrigorov >>> >>> On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik >>> wrote: >>> >>> Hello Martin, I tried to continue this work, but it seems I need some information before I can proceed Could you please tell me What was the goal of these changes? I would remove joda-time, and use LocalDate, LocalTime instead of Date As I can see you are using ZonedDateTime ... On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov wrote: > Yes, if finished on time! > Wicket 7 requires Java 7 > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A > wrote: > > Hi, >> >> Is it going to be for Wicket 8 only ? >> >> Regards, >> Rakesh.A >> >> -- >> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- >> f1842947.html >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Joda-time dependency
Is it possible to also drop joda from wicketstuff for consistency? 2017-09-17 22:09 GMT+03:00 Andrea Del Bene : > +1 to move legacy code to WicketStuff. For 'legacy code' I mean all the > code based on yui library and class StyleDateConverter which is tailored on > Joda time. > > > > On 16/09/2017 14:13, Martin Grigorov wrote: > >> Hi Maxim, >> >> Since I do not use wicket-datetime in my apps I also wanted to break it >> hard by replacing Joda-Time with Java 8 classes. >> But people who use it expressed concerns that it will be hard to migrate >> this way. Everyone will have to do the same for his/her application. >> I remember Igor even suggested to have univeral API that will work with >> java.util.Date, Joda-Time and Java 8! >> >> IMO the easiest thing that could be done is to copy the current code to >> WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and rework >> wicket-datetime to use Java 8 APIs. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik >> wrote: >> >> Hello Martin, >>> >>> I tried to continue this work, but it seems I need some information >>> before I can proceed >>> Could you please tell me What was the goal of these changes? >>> >>> I would remove joda-time, and use LocalDate, LocalTime instead of Date >>> As I can see you are using ZonedDateTime ... >>> >>> >>> On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov >>> wrote: >>> Yes, if finished on time! Wicket 7 requires Java 7 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A wrote: Hi, > > Is it going to be for Wicket 8 only ? > > Regards, > Rakesh.A > > -- > Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > f1842947.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > > >>> >>> -- >>> WBR >>> Maxim aka solomax >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> >>> > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Joda-time dependency
Ok, will start this week On Mon, Sep 18, 2017 at 2:09 AM, Andrea Del Bene wrote: > +1 to move legacy code to WicketStuff. For 'legacy code' I mean all the code > based on yui library and class StyleDateConverter which is tailored on Joda > time. > > > > On 16/09/2017 14:13, Martin Grigorov wrote: >> >> Hi Maxim, >> >> Since I do not use wicket-datetime in my apps I also wanted to break it >> hard by replacing Joda-Time with Java 8 classes. >> But people who use it expressed concerns that it will be hard to migrate >> this way. Everyone will have to do the same for his/her application. >> I remember Igor even suggested to have univeral API that will work with >> java.util.Date, Joda-Time and Java 8! >> >> IMO the easiest thing that could be done is to copy the current code to >> WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and rework >> wicket-datetime to use Java 8 APIs. >> >> Martin Grigorov >> Wicket Training and Consulting >> https://twitter.com/mtgrigorov >> >> On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik >> wrote: >> >>> Hello Martin, >>> >>> I tried to continue this work, but it seems I need some information >>> before I can proceed >>> Could you please tell me What was the goal of these changes? >>> >>> I would remove joda-time, and use LocalDate, LocalTime instead of Date >>> As I can see you are using ZonedDateTime ... >>> >>> >>> On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov >>> wrote: Yes, if finished on time! Wicket 7 requires Java 7 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A wrote: > Hi, > > Is it going to be for Wicket 8 only ? > > Regards, > Rakesh.A > > -- > Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- > f1842947.html > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > >>> >>> >>> -- >>> WBR >>> Maxim aka solomax >>> >>> - >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >>> For additional commands, e-mail: users-h...@wicket.apache.org >>> >>> > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Joda-time dependency
+1 to move legacy code to WicketStuff. For 'legacy code' I mean all the code based on yui library and class StyleDateConverter which is tailored on Joda time. On 16/09/2017 14:13, Martin Grigorov wrote: Hi Maxim, Since I do not use wicket-datetime in my apps I also wanted to break it hard by replacing Joda-Time with Java 8 classes. But people who use it expressed concerns that it will be hard to migrate this way. Everyone will have to do the same for his/her application. I remember Igor even suggested to have univeral API that will work with java.util.Date, Joda-Time and Java 8! IMO the easiest thing that could be done is to copy the current code to WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and rework wicket-datetime to use Java 8 APIs. Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik wrote: Hello Martin, I tried to continue this work, but it seems I need some information before I can proceed Could you please tell me What was the goal of these changes? I would remove joda-time, and use LocalDate, LocalTime instead of Date As I can see you are using ZonedDateTime ... On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov wrote: Yes, if finished on time! Wicket 7 requires Java 7 Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A wrote: Hi, Is it going to be for Wicket 8 only ? Regards, Rakesh.A -- Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- f1842947.html - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Joda-time dependency
Hi Maxim, Good catch! But this is the DateTextField part of wicket-extensions, not the one in wicket-datetime... https://github.com/apache/wicket/blob/master/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/form/DateTextField.java Best regards, Sebastien On Sun, Sep 17, 2017 at 5:38 PM, Maxim Solodovnik wrote: > I'm referring to this [1] dependency > `DatePicker extends DateTextField` > > > [1] https://github.com/sebfz1/wicket-jquery-ui/blob/master/ > wicket-jquery-ui/src/main/java/com/googlecode/wicket/ > jquery/ui/form/datepicker/DatePicker.java#L37 >
Re: Joda-time dependency
I'm referring to this [1] dependency `DatePicker extends DateTextField` [1] https://github.com/sebfz1/wicket-jquery-ui/blob/master/wicket-jquery-ui/src/main/java/com/googlecode/wicket/jquery/ui/form/datepicker/DatePicker.java#L37 On Sat, Sep 16, 2017 at 11:22 PM, Sebastien wrote: > Hi Maxim, > > wicket-jquery-ui do not relied on wicket-datetime. > On wicket-jquery-ui < 8.x, java datetime are handled by org.threeten api > (which is ISO to java8 datetime) > > Best regards, > Sebastien > > On Sat, Sep 16, 2017 at 2:26 PM, Maxim Solodovnik > wrote: > >> I'm using kendo date-time picker from wicket-jquery-ui >> And I believe it depends on wicket-datetime >> > >> Will try to do my best on migration then you will review :) >> >> On Sat, Sep 16, 2017 at 7:13 PM, Martin Grigorov >> wrote: >> > Hi Maxim, >> > >> > Since I do not use wicket-datetime in my apps I also wanted to break it >> > hard by replacing Joda-Time with Java 8 classes. >> > But people who use it expressed concerns that it will be hard to migrate >> > this way. Everyone will have to do the same for his/her application. >> > I remember Igor even suggested to have univeral API that will work with >> > java.util.Date, Joda-Time and Java 8! >> > >> > IMO the easiest thing that could be done is to copy the current code to >> > WicketStuff, as https://github.com/wicketstuff/wicket1.5-tree, and >> rework >> > wicket-datetime to use Java 8 APIs. >> > >> > Martin Grigorov >> > Wicket Training and Consulting >> > https://twitter.com/mtgrigorov >> > >> > On Thu, Sep 14, 2017 at 7:11 AM, Maxim Solodovnik >> > wrote: >> > >> >> Hello Martin, >> >> >> >> I tried to continue this work, but it seems I need some information >> >> before I can proceed >> >> Could you please tell me What was the goal of these changes? >> >> >> >> I would remove joda-time, and use LocalDate, LocalTime instead of Date >> >> As I can see you are using ZonedDateTime ... >> >> >> >> >> >> On Mon, Sep 11, 2017 at 9:01 PM, Martin Grigorov >> >> wrote: >> >> > Yes, if finished on time! >> >> > Wicket 7 requires Java 7 >> >> > >> >> > Martin Grigorov >> >> > Wicket Training and Consulting >> >> > https://twitter.com/mtgrigorov >> >> > >> >> > On Mon, Sep 11, 2017 at 3:34 PM, Rakesh A > > >> >> > wrote: >> >> > >> >> >> Hi, >> >> >> >> >> >> Is it going to be for Wicket 8 only ? >> >> >> >> >> >> Regards, >> >> >> Rakesh.A >> >> >> >> >> >> -- >> >> >> Sent from: http://apache-wicket.1842946.n4.nabble.com/Users-forum- >> >> >> f1842947.html >> >> >> >> >> >> >> - >> >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> >> >> >> >> >> >> >> >> -- >> >> WBR >> >> Maxim aka solomax >> >> >> >> - >> >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >> >> >> >> >> >> -- >> WBR >> Maxim aka solomax >> >> - >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> -- WBR Maxim aka solomax - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org