deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Markus Lachat" <markuslac...@gmx.de>
Subject AW: 2 issues with CIENTWINDOW mode
Date Tue, 17 Nov 2015 20:38:30 GMT
Hi,

here is a link to a very quick and basic example I did (with an ugly background color to better
spot the loading)
http://dsplayground-mlachat.rhcloud.com/views/windowhandling/clientwindow/test.xhtml

I must admit I have copied that from DS repo and published the demo to the cloud. I added
a primefaces menu like this:
<p:menu>
               		<p:menuitem value="Navigate to test1"  action="#{myNavigationController.redirect('org.apache.deltaspike.playground.windowhandling.Pages$Test')}"/>
               		<p:menuitem value="Navigate to test2"  action="#{myNavigationController.redirect('org.apache.deltaspike.playground.windowhandling.Pages$Test2')}"/>
 </p:menu>

Best regards,
Markus

-----Urspr√ľngliche Nachricht-----
Von: Thomas Andraschko [mailto:andraschko.thomas@gmail.com] 
Gesendet: Dienstag, 17. November 2015 17:57
An: users@deltaspike.apache.org
Betreff: Re: 2 issues with CIENTWINDOW mode

Hi,

1) please provide a example.
    If there isn't something wrong with your example, we probably can't remove the flickering
completely. It would depend on the browser than.
    Also, when you activated isClientWindowTokenizedRedirectEnabled, we should not even stream
the html when you click on a simple GET link.

Regards,
THomas


2015-11-17 17:51 GMT+01:00 Markus Lachat <markuslachat@gmx.de>:

> Hi Thomas,
>
> 1) It would occur also on a link defined like this. <h:link value="GET 
> Link" outcome="test.xhtml" /> where test is the current site. I 
> changed the background of this test site to better spot this behavior. 
> Empty sites are quite fast, esp. on localhost. Once you do it remote 
> with some DB load and a possibly slow server, it also becomes very flashy.
>
> 2) I just created 
> https://issues.apache.org/jira/browse/DELTASPIKE-1023
> Thanks for considering it.
>
> Let me know if you need the demo for 1)
>
> Best regards,
> Markus
>
> -----Urspr√ľngliche Nachricht-----
> Von: Thomas Andraschko [mailto:andraschko.thomas@gmail.com]
> Gesendet: Dienstag, 17. November 2015 17:34
> An: users@deltaspike.apache.org
> Betreff: Re: 2 issues with CIENTWINDOW mode
>
> Hi Markus,
>
> 1) does it still flicker for you when you use a button or normal link?
>     Is it just related to the PF menu? Or PrimeFaces ajax request?
>
> 2) Could be possible - not sure.
>     please create a feature request.
>
> Regards,
> Thomas
>
> 2015-11-17 17:26 GMT+01:00 Markus Lachat <markuslachat@gmx.de>:
>
> > Hi,
> >
> > The first issue is about the flickering of the screen:
> > I am wondering if I configured anything wrong. I implemented the 
> > specialized ClientWindowConfig and override these 4 methods and each 
> > returns true
> >
> > isClientWindowStoreWindowTreeEnabledOnLinkClick
> > isClientWindowStoreWindowTreeEnabledOnAjaxRequest
> > isClientWindowStoreWindowTreeEnabledOnButtonClick
> > isClientWindowTokenizedRedirectEnabled
> >
> > All working, no destroyed viewAccessScope and so on, however I still 
> > see a lot of flickering when navigating over a primefaces menu 
> > backed by a navigation bean (responsible for the typesafe outcome). 
> > These are mainly links that cause a POST with an outcome or just 
> > simple GET links. I could provide a demo for this issue.
> >
> >
> > The second issue is a nice to have for better user experience:
> > It works for buttons (thank you Thomas for fixing this
> > https://issues.apache.org/jira/browse/DELTASPIKE-968)
> > But when the user scrolled down, somewhere at the bottom of a long 
> > page to click the buttons the page seems to scroll up again, because 
> > it shows the state of the html when the page was initially loaded.
> >
> > Can you somehow improve that behavior to show the state of the 
> > browser just the moment before a link or button is clicked?
> >
> > Best regards,
> > Markus
> >
> >
>
>


Mime
View raw message