Re: Double slash break everything

2017-09-18 Thread Maxim Solodovnik
Here is the example of handling multiple slashes:
https://stackoverflow.com/questions/11214542/is-there-a-way-to-handle-extra-slashes-at-beginning-of-url-using-jersey-and-guic

On Tue, Sep 19, 2017 at 11:47 AM, Илья Нарыжный  wrote:
> Actually, it can be easily reproduced on wicket quick-start.
> Please check this one:
> https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash
>
> Thanks,
> Ilia
>
> -
> Orienteer(http://orienteer.org) - open source Business Application Platform
>
> On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik 
> wrote:
>
>> I would say it is not wicket issue, but the behavior of your application
>> server
>>
>> WBR, Maxim
>> (from mobile, sorry for the typos)
>>
>> On Sep 19, 2017 07:53, "Илья Нарыжный"  wrote:
>>
>> > Hello,
>> >
>> > Any ideas? Is this known Wicket bug?
>> >
>> > Thanks,
>> > Ilia
>> >
>> > -
>> > Orienteer(http://orienteer.org) - open source Business Application
>> > Platform
>> >
>> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный  wrote:
>> >
>> > > Hello,
>> > >
>> > > We have in Orienteer customized NotFoundPage https://github.
>> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
>> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
>> > > perfectly except one case: if somebody by mistake put double slash in
>> > URL.
>> > > For example https://demo.orienteer.org// Application is trying to
>> render
>> > > 404 page, but all resources are not found and user see just plan page
>> > > without styles and scripts. Taking into account that resources are
>> > included
>> > > commonly through XXXPackageResource and WebJarsResourc - it looks like
>> > > Wicket issue.
>> > >
>> > > Is there any quick way to fix it?
>> > >
>> > > Thanks,
>> > > Ilia
>> > >
>> > > -
>> > > Orienteer(http://orienteer.org) - open source Business Application
>> > > Platform
>> > >
>> >
>>



-- 
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

2017-09-18 Thread Martin Makundi
2017-09-19 7:16 GMT+03:00 Martin Grigorov :

> On Sep 19, 2017 6:22 AM, "Martin Makundi" <
> martin.maku...@koodaripalvelut.com> wrote:
>
> IMO it's better to big mang whole wicket to drop joda date. All wicket 8
> without joda.
>
>
> Said the person who still uses Wicket 1.4 for his apps...
>

Yes, incremental change is a pain so we big bang 1.4 ->8.


> Everyone wants to see the Big Bang and this might be the reason to see
> Wicket 8.0.0 in 2020.


Dropping joda should not significantly slow down development.

>


>
> **
> Martin
>
> 2017-09-18 22:43 GMT+03:00 Martin Grigorov :
>
> > On Mon, Sep 18, 2017 at 6:50 AM, Martin Makundi <
> > martin.maku...@koodaripalvelut.com> wrote:
> >
> > > Is it possible to also drop joda from wicketstuff for consistency?
> > >
> >
> > IMO, the WicketStuff module must be exactly the same as the one in Wicket
> > 7.x.
> > Any changes in the API should be done in Wicket 8.x.
> > This way when users migrate their apps to 8.x they can decide to take the
> > short route and use the WicketStuff module.
> > Later they can invest in reworking their code to the new API and use
> again
> > org.apache.wicket:wicket-datetime
> > The WicketStuff module README should say that it will be available only
> for
> > Wicket 8.x lifecycle, to prevent double maintenance.
> >
> >
> > > 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.n
> 4.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: Double slash break everything

2017-09-18 Thread Илья Нарыжный
Actually, it can be easily reproduced on wicket quick-start.
Please check this one:
https://github.com/PhantomYdn/wicket-bugs/tree/master/doubleslash

Thanks,
Ilia

-
Orienteer(http://orienteer.org) - open source Business Application Platform

On Mon, Sep 18, 2017 at 6:04 PM, Maxim Solodovnik 
wrote:

> I would say it is not wicket issue, but the behavior of your application
> server
>
> WBR, Maxim
> (from mobile, sorry for the typos)
>
> On Sep 19, 2017 07:53, "Илья Нарыжный"  wrote:
>
> > Hello,
> >
> > Any ideas? Is this known Wicket bug?
> >
> > Thanks,
> > Ilia
> >
> > -
> > Orienteer(http://orienteer.org) - open source Business Application
> > Platform
> >
> > On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный  wrote:
> >
> > > Hello,
> > >
> > > We have in Orienteer customized NotFoundPage https://github.
> > > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> > > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
> > > perfectly except one case: if somebody by mistake put double slash in
> > URL.
> > > For example https://demo.orienteer.org// Application is trying to
> render
> > > 404 page, but all resources are not found and user see just plan page
> > > without styles and scripts. Taking into account that resources are
> > included
> > > commonly through XXXPackageResource and WebJarsResourc - it looks like
> > > Wicket issue.
> > >
> > > Is there any quick way to fix it?
> > >
> > > Thanks,
> > > Ilia
> > >
> > > -
> > > Orienteer(http://orienteer.org) - open source Business Application
> > > Platform
> > >
> >
>


Re: Joda-time dependency

2017-09-18 Thread Martin Grigorov
On Sep 19, 2017 6:22 AM, "Martin Makundi" <
martin.maku...@koodaripalvelut.com> wrote:

IMO it's better to big mang whole wicket to drop joda date. All wicket 8
without joda.


Said the person who still uses Wicket 1.4 for his apps...

Everyone wants to see the Big Bang and this might be the reason to see
Wicket 8.0.0 in 2020.


**
Martin

2017-09-18 22:43 GMT+03:00 Martin Grigorov :

> On Mon, Sep 18, 2017 at 6:50 AM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
> > Is it possible to also drop joda from wicketstuff for consistency?
> >
>
> IMO, the WicketStuff module must be exactly the same as the one in Wicket
> 7.x.
> Any changes in the API should be done in Wicket 8.x.
> This way when users migrate their apps to 8.x they can decide to take the
> short route and use the WicketStuff module.
> Later they can invest in reworking their code to the new API and use again
> org.apache.wicket:wicket-datetime
> The WicketStuff module README should say that it will be available only
for
> Wicket 8.x lifecycle, to prevent double maintenance.
>
>
> > 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
> > >
> > >
> >
>


Re: Joda-time dependency

2017-09-18 Thread Martin Makundi
IMO it's better to big mang whole wicket to drop joda date. All wicket 8
without joda.

**
Martin

2017-09-18 22:43 GMT+03:00 Martin Grigorov :

> On Mon, Sep 18, 2017 at 6:50 AM, Martin Makundi <
> martin.maku...@koodaripalvelut.com> wrote:
>
> > Is it possible to also drop joda from wicketstuff for consistency?
> >
>
> IMO, the WicketStuff module must be exactly the same as the one in Wicket
> 7.x.
> Any changes in the API should be done in Wicket 8.x.
> This way when users migrate their apps to 8.x they can decide to take the
> short route and use the WicketStuff module.
> Later they can invest in reworking their code to the new API and use again
> org.apache.wicket:wicket-datetime
> The WicketStuff module README should say that it will be available only for
> Wicket 8.x lifecycle, to prevent double maintenance.
>
>
> > 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
> > >
> > >
> >
>


Re: Double slash break everything

2017-09-18 Thread Maxim Solodovnik
I would say it is not wicket issue, but the behavior of your application
server

WBR, Maxim
(from mobile, sorry for the typos)

On Sep 19, 2017 07:53, "Илья Нарыжный"  wrote:

> Hello,
>
> Any ideas? Is this known Wicket bug?
>
> Thanks,
> Ilia
>
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>
> On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный  wrote:
>
> > Hello,
> >
> > We have in Orienteer customized NotFoundPage https://github.
> > com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> > src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
> > perfectly except one case: if somebody by mistake put double slash in
> URL.
> > For example https://demo.orienteer.org// Application is trying to render
> > 404 page, but all resources are not found and user see just plan page
> > without styles and scripts. Taking into account that resources are
> included
> > commonly through XXXPackageResource and WebJarsResourc - it looks like
> > Wicket issue.
> >
> > Is there any quick way to fix it?
> >
> > Thanks,
> > Ilia
> >
> > -
> > Orienteer(http://orienteer.org) - open source Business Application
> > Platform
> >
>


Re: WebSocket and timeout

2017-09-18 Thread Maxim Solodovnik
Sorry,
Misread it :(
I actually using both.
Ajax request refreshing HTTP session and binary ping refreshing websocket
connection and being ignored

WBR, Maxim
(from mobile, sorry for the typos)

On Sep 19, 2017 02:49, "Martin Grigorov"  wrote:

> Hi,
>
> @Maxim: the problem Manfred faces is not that the Http Session expires but
> that the WebSocket connection is closed by the web container due to
> inactivity.
>
> @Manfred: I'd use server-side timer that uses the
> IWebSocketConnectionRegistry to send the heartbeat message to all connected
> clients. The clients should ignore this message.
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Mon, Sep 18, 2017 at 8:55 AM, Maxim Solodovnik 
> wrote:
>
> > 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 mb@
> > > 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: Double slash break everything

2017-09-18 Thread Илья Нарыжный
Hello,

Any ideas? Is this known Wicket bug?

Thanks,
Ilia

-
Orienteer(http://orienteer.org) - open source Business Application Platform

On Sat, Sep 9, 2017 at 10:37 PM, Илья Нарыжный  wrote:

> Hello,
>
> We have in Orienteer customized NotFoundPage https://github.
> com/OrienteerBAP/Orienteer/blob/master/orienteer-core/
> src/main/java/org/orienteer/core/web/NotFoundPage.java . And it works
> perfectly except one case: if somebody by mistake put double slash in URL.
> For example https://demo.orienteer.org// Application is trying to render
> 404 page, but all resources are not found and user see just plan page
> without styles and scripts. Taking into account that resources are included
> commonly through XXXPackageResource and WebJarsResourc - it looks like
> Wicket issue.
>
> Is there any quick way to fix it?
>
> Thanks,
> Ilia
>
> -
> Orienteer(http://orienteer.org) - open source Business Application
> Platform
>


Re: WebSocket and timeout

2017-09-18 Thread Martin Grigorov
Hi,

@Maxim: the problem Manfred faces is not that the Http Session expires but
that the WebSocket connection is closed by the web container due to
inactivity.

@Manfred: I'd use server-side timer that uses the
IWebSocketConnectionRegistry to send the heartbeat message to all connected
clients. The clients should ignore this message.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Mon, Sep 18, 2017 at 8:55 AM, Maxim Solodovnik 
wrote:

> 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 mb@
> > 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

2017-09-18 Thread Martin Grigorov
On Mon, Sep 18, 2017 at 6:50 AM, Martin Makundi <
martin.maku...@koodaripalvelut.com> wrote:

> Is it possible to also drop joda from wicketstuff for consistency?
>

IMO, the WicketStuff module must be exactly the same as the one in Wicket
7.x.
Any changes in the API should be done in Wicket 8.x.
This way when users migrate their apps to 8.x they can decide to take the
short route and use the WicketStuff module.
Later they can invest in reworking their code to the new API and use again
org.apache.wicket:wicket-datetime
The WicketStuff module README should say that it will be available only for
Wicket 8.x lifecycle, to prevent double maintenance.


> 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
> >
> >
>


Of IColumns, Builders and Lambdas

2017-09-18 Thread ChambreNoire
Hi,

Just wondering if anyone had already thought of instantiating IColumns using
the builder pattern in conjunction with Lambdas for things like cell/header
styling and column visibility (and more depending on the type of column) ?
My extended columns usually involve a fair bit of method overriding or large
ungainly constructors so I was thinking this might make things a tad more
succinct (LambaColumn pushed further).

Any thoughts?

Cheers

CN

--
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