How well does Wicket support multiple tabs for a single session?

2018-07-16 Thread Entropy
Our page designer wants our newest app to open new tabs for each detail
record opened off a list.  Within that tab would be potentially multiple
pages in varying orders related to that record, and then the user might
close it or leave it open, return to the list and move around a few times
(ajax and page loads) before opening other details records and so on...

We've always been a one tab operation with Wicket.  It's pretty stateful,
and I told our designer that I was worried give this statefulness how Wicket
would react to that design.  

Am I being overly cautious?  How will Wicket handle this possible random
moving about.  When one moves from one tab to another and therefore to pages
whose states are different, how does Wicket handle that?  Do I need to
design my pages differently or take any special action?

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



Re: Seeking help for a HotSwapAgent's Wicket plugin

2018-07-16 Thread Thomas Heigl
Hi Francesco,

Do you have the appropriate Wicket settings enabled?

I'm using this configuration in development mode:

private static void initResourceSettings(WebApplication app) {
> final ResourceSettings resourceSettings = app.getResourceSettings();
> if (!isDeployment(app)) {
> resourceSettings.setDefaultCacheDuration(Duration.seconds(0));
> resourceSettings.setResourcePollFrequency(Duration.seconds(5));
> }
> }


Best,

Thomas

On Mon, Jul 16, 2018 at 1:54 PM, Francesco Chicchiriccò  wrote:

> Hi Thomas,
> thanks for your reply.
>
> I have taken your WicketPlugin, reworked it a bit and generated
>
> https://gist.github.com/ilgrosso/c12fa371a5033de1e92b0a35115b6456
>
> Unfortunately, it does not seem to work: once started Tomcat with
> hotswap-agent enabled, I can successfully reload Java classes, but changes
> to properties files just have no effect.
>
> I have also been debugging the WicketPlugin class, and I can see that the
> Command is effectively invoked and completes with no exceptions.
>
> What could I be missing? Also, do you have any idea why I don't get any
> change in HTML files reloaded? I have added my src/main/resources folder to
> extraClassPath as you did.
>
> Maybe something missing in my WicketApplications' settings?
>
> Thanks for your support.
> Regards.
>
> On 2018/07/13 16:50:16, Thomas Heigl  wrote:
> > Hi Francesco,
> >
> > I faced the same situation last week.
> >
> > I wrote a Wicket plugin that clears the Localizer cache. It does not
> clear
> > the resource bundle cache because I use Spring's
> ReloadableResourceBundle,
> > but that should be very easy to add.
> >
> > Configuration is a little more difficult than with JRebel. I had to add
> > src/main/resources as extraClasspath for some reason, to get it to reload
> > HTML and property files.
> >
> > Here is a gist with my Wicket plugin and my working
> > hotswap-agent.properties:
> >
> > https://gist.github.com/theigl/6ff4a505eac8f166b9bd079017884474
> >
> > Best,
> >
> > Thomas
> >
> > On Fri, Jul 13, 2018 at 4:53 PM, Francesco Chicchiriccò <
> ilgro...@apache.org
> > > wrote:
> >
> > > Hi all,
> > > at Syncope we recently switched from JRebel to HotSwapAgent, mostly
> > > because the MyJRebel program has ended.
> > > All works quite well for Java classes, but we do have issues with HTML
> and
> > > properties files (for Resource Bundles) used by Wicket.
> > >
> > > Please consider that we do package our Wicket application as JAR with
> > > web-fragment [1], and HTML and properties files are kept under
> > > src/main/resources [2].
> > >
> > > I have started building a Wicket plugin for HotSwapAgent following the
> > > instructions at [3] and the samples at [4]: the MyFaces plugin [5]
> looks
> > > promising, at least because it says that it's clearing out the Resource
> > > Bundle cache.
> > >
> > > So my question is: assuming that HotSwapAgent correctly replaces the
> HTML
> > > and properties file in the classloader, how can I trigger Wicket to
> reload?
> > >
> > > TIA
> > > Regards.
> > >
> > > [1] https://github.com/apache/syncope/tree/master/client/console
> > > [2] https://github.com/apache/syncope/tree/master/client/
> > > console/src/main/resources/org/apache/syncope/client/console
> > > [3] http://hotswapagent.org/mydoc_custom_plugins.html
> > > [4] https://github.com/HotswapProjects/HotswapAgent/
> > > blob/master/README.md#java-frameworks-plugins
> > > [5] https://github.com/HotswapProjects/HotswapAgent/
> > > blob/master/plugin/hotswap-agent-myfaces-plugin/src/main/
> > > java/org/hotswap/agent/plugin/myfaces/MyFacesPlugin.java
>
> -
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


Re: Seeking help for a HotSwapAgent's Wicket plugin

2018-07-16 Thread Francesco Chicchiriccò
Hi Thomas,
thanks for your reply.

I have taken your WicketPlugin, reworked it a bit and generated

https://gist.github.com/ilgrosso/c12fa371a5033de1e92b0a35115b6456

Unfortunately, it does not seem to work: once started Tomcat with hotswap-agent 
enabled, I can successfully reload Java classes, but changes to properties 
files just have no effect.

I have also been debugging the WicketPlugin class, and I can see that the 
Command is effectively invoked and completes with no exceptions.

What could I be missing? Also, do you have any idea why I don't get any change 
in HTML files reloaded? I have added my src/main/resources folder to 
extraClassPath as you did.

Maybe something missing in my WicketApplications' settings?

Thanks for your support.
Regards.

On 2018/07/13 16:50:16, Thomas Heigl  wrote: 
> Hi Francesco,
> 
> I faced the same situation last week.
> 
> I wrote a Wicket plugin that clears the Localizer cache. It does not clear
> the resource bundle cache because I use Spring's ReloadableResourceBundle,
> but that should be very easy to add.
> 
> Configuration is a little more difficult than with JRebel. I had to add
> src/main/resources as extraClasspath for some reason, to get it to reload
> HTML and property files.
> 
> Here is a gist with my Wicket plugin and my working
> hotswap-agent.properties:
> 
> https://gist.github.com/theigl/6ff4a505eac8f166b9bd079017884474
> 
> Best,
> 
> Thomas
> 
> On Fri, Jul 13, 2018 at 4:53 PM, Francesco Chicchiriccò  > wrote:
> 
> > Hi all,
> > at Syncope we recently switched from JRebel to HotSwapAgent, mostly
> > because the MyJRebel program has ended.
> > All works quite well for Java classes, but we do have issues with HTML and
> > properties files (for Resource Bundles) used by Wicket.
> >
> > Please consider that we do package our Wicket application as JAR with
> > web-fragment [1], and HTML and properties files are kept under
> > src/main/resources [2].
> >
> > I have started building a Wicket plugin for HotSwapAgent following the
> > instructions at [3] and the samples at [4]: the MyFaces plugin [5] looks
> > promising, at least because it says that it's clearing out the Resource
> > Bundle cache.
> >
> > So my question is: assuming that HotSwapAgent correctly replaces the HTML
> > and properties file in the classloader, how can I trigger Wicket to reload?
> >
> > TIA
> > Regards.
> >
> > [1] https://github.com/apache/syncope/tree/master/client/console
> > [2] https://github.com/apache/syncope/tree/master/client/
> > console/src/main/resources/org/apache/syncope/client/console
> > [3] http://hotswapagent.org/mydoc_custom_plugins.html
> > [4] https://github.com/HotswapProjects/HotswapAgent/
> > blob/master/README.md#java-frameworks-plugins
> > [5] https://github.com/HotswapProjects/HotswapAgent/
> > blob/master/plugin/hotswap-agent-myfaces-plugin/src/main/
> > java/org/hotswap/agent/plugin/myfaces/MyFacesPlugin.java

-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org