You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Martin Grigorov <mg...@apache.org> on 2016/10/31 13:48:21 UTC

Re: What else do we want to do before 8.0.0 final ?

Forwarding to users@wicket.apache.org

GMail autosuggest tricked me to send it to users@isis.apache.org.

On Mon, Oct 31, 2016 at 2:41 PM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi,
>
> What other improvements do we need in 8.x/master before promoting it to
> 8.0.0 final ?
>
> At https://cwiki.apache.org/confluence/display/WICKET/Ideas+for+Wicket+8.0
> we still have:
>
> - new DateTime APIs for wicket-datetime *WICKET-6105
> <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give this one
> more try but the problem is that I don't believe this is the proper way and
> this demotivates me.
> If someone else wants to give it a try - please assign it to yourself!
>
> - Better SEO for stateful pages - the only way I see this is by using
> ServiceWorker to add the pageId as a request header to all requests (normal
> & Ajax)
>
>
> Recently I wondered whether Redux.js could be in use for Wicket.
> I don't have much experience with it, but both React and AngularJs
> communities use it to manage the state for their components.
> There are some Java impls, even a standard is coming: https://github.com/
> jvm-redux/jvm-redux-api
>
> What else ?
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>

Re: What else do we want to do before 8.0.0 final ?

Posted by Martin Grigorov <mg...@apache.org>.
On Thu, Nov 10, 2016 at 2:47 PM, Marcel Barbosa Pinto <
marcel.power@gmail.com> wrote:

> Another idea.
>
> Reactive programing is trending now, frameworks like Spring (v5) are
> rewriting it's core using the project reactor and rxJava. Java 9 will also
> add support for it.
> I was just wondering if Wicket could use reactive patterns for things like
> behaviours, events, components, models, request cycle etc.
>
> I don't know how complex would be to implement it, what do you guys think
> (Maybe for Wicket 9)?
>

Yes, Wicket 9. Unless someone has pretty clear picture what should be done.

P.S. I still wonder why Play Framework, Akka HTTP, and some other reactive
web frameworks show pretty bad results at
https://www.techempower.com/benchmarks/previews/round13.
Only Vertx has good results!


>
>
>
>
>
> On Thu, Nov 10, 2016 at 10:52 AM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > Hi Peter,
> >
> >
> > On Thu, Nov 10, 2016 at 1:44 PM, Peter Henderson <
> > peter.henderson@starjar.com> wrote:
> >
> > > Hi
> > >
> > > > What other improvements do we need in 8.x/master before promoting it
> to
> > >
> > > > > 8.0.0 final ?
> > > >
> > >
> > > A bit late. But one idea I've had in the back of my mind for a long
> > while.
> > > (I may well be barking up the wrong tree here..)
> > >
> > >
> > > Break IPageStore.
> > > Replace the simple int pageId identifier with a bit more detail.
> > >
> > > When pages are mounted to a path the path should be considered when
> > getting
> > > pages from the page store.
> > > e.g
> > > User A is looking at page
> > > www.example.com/pageA?5
> > >
> > >
> > > User B is looking at page
> > > www.example.com/pageB?5
> > >
> > > User A emails their url to B. When B clicks on the link he incorrectly
> > sees
> > > pageB because that page has the same pageId
> > >
> >
> > This is not the current behavior.
> > Currently if User A sends www.example.com/pageA?5 to User B then Wicket
> > will detect that page with id=5 is not from type PageA and won't render
> it.
> > Instead Wicket will create a new instance ot PageA and show it.
> >
> >
> > >
> > >
> > >
> > >
> > >
> > > > >
> > > > > At https://cwiki.apache.org/confluence/display/WICKET/Ideas+for
> > > > +Wicket+8.0
> > > > > we still have:
> > > > >
> > > > > - new DateTime APIs for wicket-datetime *WICKET-6105
> > > > > <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give
> > this
> > > > one
> > > > > more try but the problem is that I don't believe this is the proper
> > way
> > > > and
> > > > > this demotivates me.
> > > > > If someone else wants to give it a try - please assign it to
> > yourself!
> > > > >
> > > > > - Better SEO for stateful pages - the only way I see this is by
> using
> > > > > ServiceWorker to add the pageId as a request header to all requests
> > > > (normal
> > > > > & Ajax)
> > > > >
> > > > >
> > > > > Recently I wondered whether Redux.js could be in use for Wicket.
> > > > > I don't have much experience with it, but both React and AngularJs
> > > > > communities use it to manage the state for their components.
> > > > > There are some Java impls, even a standard is coming:
> > > > https://github.com/
> > > > > jvm-redux/jvm-redux-api
> > > > >
> > > > > What else ?
> > > > >
> > > > > Martin Grigorov
> > > > > Wicket Training and Consulting
> > > > > https://twitter.com/mtgrigorov
> > > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Peter Henderson
> > >
> >
>
>
>
> --
>
> Marcel Barbosa Pinto
> 55 11 98255 8288
>

Re: What else do we want to do before 8.0.0 final ?

Posted by Marcel Barbosa Pinto <ma...@gmail.com>.
Another idea.

Reactive programing is trending now, frameworks like Spring (v5) are
rewriting it's core using the project reactor and rxJava. Java 9 will also
add support for it.
I was just wondering if Wicket could use reactive patterns for things like
behaviours, events, components, models, request cycle etc.

I don't know how complex would be to implement it, what do you guys think
(Maybe for Wicket 9)?





On Thu, Nov 10, 2016 at 10:52 AM, Martin Grigorov <mg...@apache.org>
wrote:

> Hi Peter,
>
>
> On Thu, Nov 10, 2016 at 1:44 PM, Peter Henderson <
> peter.henderson@starjar.com> wrote:
>
> > Hi
> >
> > > What other improvements do we need in 8.x/master before promoting it to
> >
> > > > 8.0.0 final ?
> > >
> >
> > A bit late. But one idea I've had in the back of my mind for a long
> while.
> > (I may well be barking up the wrong tree here..)
> >
> >
> > Break IPageStore.
> > Replace the simple int pageId identifier with a bit more detail.
> >
> > When pages are mounted to a path the path should be considered when
> getting
> > pages from the page store.
> > e.g
> > User A is looking at page
> > www.example.com/pageA?5
> >
> >
> > User B is looking at page
> > www.example.com/pageB?5
> >
> > User A emails their url to B. When B clicks on the link he incorrectly
> sees
> > pageB because that page has the same pageId
> >
>
> This is not the current behavior.
> Currently if User A sends www.example.com/pageA?5 to User B then Wicket
> will detect that page with id=5 is not from type PageA and won't render it.
> Instead Wicket will create a new instance ot PageA and show it.
>
>
> >
> >
> >
> >
> >
> > > >
> > > > At https://cwiki.apache.org/confluence/display/WICKET/Ideas+for
> > > +Wicket+8.0
> > > > we still have:
> > > >
> > > > - new DateTime APIs for wicket-datetime *WICKET-6105
> > > > <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give
> this
> > > one
> > > > more try but the problem is that I don't believe this is the proper
> way
> > > and
> > > > this demotivates me.
> > > > If someone else wants to give it a try - please assign it to
> yourself!
> > > >
> > > > - Better SEO for stateful pages - the only way I see this is by using
> > > > ServiceWorker to add the pageId as a request header to all requests
> > > (normal
> > > > & Ajax)
> > > >
> > > >
> > > > Recently I wondered whether Redux.js could be in use for Wicket.
> > > > I don't have much experience with it, but both React and AngularJs
> > > > communities use it to manage the state for their components.
> > > > There are some Java impls, even a standard is coming:
> > > https://github.com/
> > > > jvm-redux/jvm-redux-api
> > > >
> > > > What else ?
> > > >
> > > > Martin Grigorov
> > > > Wicket Training and Consulting
> > > > https://twitter.com/mtgrigorov
> > > >
> > >
> >
> >
> >
> > --
> > Peter Henderson
> >
>



-- 

Marcel Barbosa Pinto
55 11 98255 8288

Re: What else do we want to do before 8.0.0 final ?

Posted by Martin Grigorov <mg...@apache.org>.
Hi Peter,


On Thu, Nov 10, 2016 at 1:44 PM, Peter Henderson <
peter.henderson@starjar.com> wrote:

> Hi
>
> > What other improvements do we need in 8.x/master before promoting it to
>
> > > 8.0.0 final ?
> >
>
> A bit late. But one idea I've had in the back of my mind for a long while.
> (I may well be barking up the wrong tree here..)
>
>
> Break IPageStore.
> Replace the simple int pageId identifier with a bit more detail.
>
> When pages are mounted to a path the path should be considered when getting
> pages from the page store.
> e.g
> User A is looking at page
> www.example.com/pageA?5
>
>
> User B is looking at page
> www.example.com/pageB?5
>
> User A emails their url to B. When B clicks on the link he incorrectly sees
> pageB because that page has the same pageId
>

This is not the current behavior.
Currently if User A sends www.example.com/pageA?5 to User B then Wicket
will detect that page with id=5 is not from type PageA and won't render it.
Instead Wicket will create a new instance ot PageA and show it.


>
>
>
>
>
> > >
> > > At https://cwiki.apache.org/confluence/display/WICKET/Ideas+for
> > +Wicket+8.0
> > > we still have:
> > >
> > > - new DateTime APIs for wicket-datetime *WICKET-6105
> > > <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give this
> > one
> > > more try but the problem is that I don't believe this is the proper way
> > and
> > > this demotivates me.
> > > If someone else wants to give it a try - please assign it to yourself!
> > >
> > > - Better SEO for stateful pages - the only way I see this is by using
> > > ServiceWorker to add the pageId as a request header to all requests
> > (normal
> > > & Ajax)
> > >
> > >
> > > Recently I wondered whether Redux.js could be in use for Wicket.
> > > I don't have much experience with it, but both React and AngularJs
> > > communities use it to manage the state for their components.
> > > There are some Java impls, even a standard is coming:
> > https://github.com/
> > > jvm-redux/jvm-redux-api
> > >
> > > What else ?
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> >
>
>
>
> --
> Peter Henderson
>

Re: What else do we want to do before 8.0.0 final ?

Posted by Peter Henderson <pe...@starjar.com>.
Hi

> What other improvements do we need in 8.x/master before promoting it to

> > 8.0.0 final ?
>

A bit late. But one idea I've had in the back of my mind for a long while.
(I may well be barking up the wrong tree here..)


Break IPageStore.
Replace the simple int pageId identifier with a bit more detail.

When pages are mounted to a path the path should be considered when getting
pages from the page store.
e.g
User A is looking at page
www.example.com/pageA?5


User B is looking at page
www.example.com/pageB?5

User A emails their url to B. When B clicks on the link he incorrectly sees
pageB because that page has the same pageId





> >
> > At https://cwiki.apache.org/confluence/display/WICKET/Ideas+for
> +Wicket+8.0
> > we still have:
> >
> > - new DateTime APIs for wicket-datetime *WICKET-6105
> > <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give this
> one
> > more try but the problem is that I don't believe this is the proper way
> and
> > this demotivates me.
> > If someone else wants to give it a try - please assign it to yourself!
> >
> > - Better SEO for stateful pages - the only way I see this is by using
> > ServiceWorker to add the pageId as a request header to all requests
> (normal
> > & Ajax)
> >
> >
> > Recently I wondered whether Redux.js could be in use for Wicket.
> > I don't have much experience with it, but both React and AngularJs
> > communities use it to manage the state for their components.
> > There are some Java impls, even a standard is coming:
> https://github.com/
> > jvm-redux/jvm-redux-api
> >
> > What else ?
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
>



-- 
Peter Henderson

Re: What else do we want to do before 8.0.0 final ?

Posted by Martin Grigorov <mg...@apache.org>.
On Mon, Oct 31, 2016 at 3:19 PM, Marcel Barbosa Pinto <
marcel.power@gmail.com> wrote:

> For adding components we usually write some thing like this:
>
> Form f = new Form();
> add(f);
> RepeatingView imageList;
> f.add(imageList = new RepeatingView("imageList"));
>
> or
>
> Form f = new Form();
> add(f);
> RepeatingView imageList = new RepeatingView("imageList");
> f.add(imageList);
>
> You think this could be useful?
>
> Form f = new Form().addTo(this);
> new RepeatingView("imageList").addTo(f);
>
> Adding:
>
> Component.addTo(targetComponent);
>

This is not an API break so it could be added at any branch at any time.


> Component.replaceFrom(targetComponent);
>

There is #replaceWith() for this.


> Component.removeFrom(targetComponent);
>

Here there is only one option: #removeFromParent() because a component
cannot be a child of several parents (like in real life). It is valid for
Behaviors though!

I'd suggest you to play a bit with your idea to clear it out and start a
new thread and suggest it.


>
> Cheers.
>
>
> On Mon, Oct 31, 2016 at 11:48 AM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > Forwarding to users@wicket.apache.org
> >
> > GMail autosuggest tricked me to send it to users@isis.apache.org.
> >
> > On Mon, Oct 31, 2016 at 2:41 PM, Martin Grigorov <mg...@apache.org>
> > wrote:
> >
> > > Hi,
> > >
> > > What other improvements do we need in 8.x/master before promoting it to
> > > 8.0.0 final ?
> > >
> > > At https://cwiki.apache.org/confluence/display/WICKET/
> > Ideas+for+Wicket+8.0
> > > we still have:
> > >
> > > - new DateTime APIs for wicket-datetime *WICKET-6105
> > > <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give this
> > one
> > > more try but the problem is that I don't believe this is the proper way
> > and
> > > this demotivates me.
> > > If someone else wants to give it a try - please assign it to yourself!
> > >
> > > - Better SEO for stateful pages - the only way I see this is by using
> > > ServiceWorker to add the pageId as a request header to all requests
> > (normal
> > > & Ajax)
> > >
> > >
> > > Recently I wondered whether Redux.js could be in use for Wicket.
> > > I don't have much experience with it, but both React and AngularJs
> > > communities use it to manage the state for their components.
> > > There are some Java impls, even a standard is coming:
> > https://github.com/
> > > jvm-redux/jvm-redux-api
> > >
> > > What else ?
> > >
> > > Martin Grigorov
> > > Wicket Training and Consulting
> > > https://twitter.com/mtgrigorov
> > >
> >
>
>
>
> --
>
> Marcel Barbosa Pinto
> 55 11 98255 8288
>

Re: What else do we want to do before 8.0.0 final ?

Posted by Marcel Barbosa Pinto <ma...@gmail.com>.
For adding components we usually write some thing like this:

Form f = new Form();
add(f);
RepeatingView imageList;
f.add(imageList = new RepeatingView("imageList"));

or

Form f = new Form();
add(f);
RepeatingView imageList = new RepeatingView("imageList");
f.add(imageList);

You think this could be useful?

Form f = new Form().addTo(this);
new RepeatingView("imageList").addTo(f);

Adding:

Component.addTo(targetComponent);
Component.replaceFrom(targetComponent);
Component.removeFrom(targetComponent);

Cheers.


On Mon, Oct 31, 2016 at 11:48 AM, Martin Grigorov <mg...@apache.org>
wrote:

> Forwarding to users@wicket.apache.org
>
> GMail autosuggest tricked me to send it to users@isis.apache.org.
>
> On Mon, Oct 31, 2016 at 2:41 PM, Martin Grigorov <mg...@apache.org>
> wrote:
>
> > Hi,
> >
> > What other improvements do we need in 8.x/master before promoting it to
> > 8.0.0 final ?
> >
> > At https://cwiki.apache.org/confluence/display/WICKET/
> Ideas+for+Wicket+8.0
> > we still have:
> >
> > - new DateTime APIs for wicket-datetime *WICKET-6105
> > <https://issues.apache.org/jira/browse/WICKET-6105>* - I'll give this
> one
> > more try but the problem is that I don't believe this is the proper way
> and
> > this demotivates me.
> > If someone else wants to give it a try - please assign it to yourself!
> >
> > - Better SEO for stateful pages - the only way I see this is by using
> > ServiceWorker to add the pageId as a request header to all requests
> (normal
> > & Ajax)
> >
> >
> > Recently I wondered whether Redux.js could be in use for Wicket.
> > I don't have much experience with it, but both React and AngularJs
> > communities use it to manage the state for their components.
> > There are some Java impls, even a standard is coming:
> https://github.com/
> > jvm-redux/jvm-redux-api
> >
> > What else ?
> >
> > Martin Grigorov
> > Wicket Training and Consulting
> > https://twitter.com/mtgrigorov
> >
>



-- 

Marcel Barbosa Pinto
55 11 98255 8288