voyent
F5-Refresh problem!!  XML
Forum Index -> General Help
Author Message
ozkar2c


Joined: 14/Jul/2008 00:00:00
Messages: 58
Offline


Hi!!

i have a problem when i type F5 key for refreshing my page, this event give me back to my login page, and i don´t want what do that, that is normal??

how can i fix it?


radu.jakab

Joined: 31/Oct/2007 00:00:00
Messages: 240
Offline


Hi,

I'm having the same problem. I'm guessing it is somehow related to the view-id no longer being passed in the request and I get sent to the welcome page (which is login).
The session I am in is still valid and so are the beans, I can see the userName and password being filled in.
This is only happening with 1.7.2.

concurrentDOMViews is set to false in my app, so I thought it was that... but I have tried building a sample-app to reproduce this and I have been unable to yet.

Radu
radu.jakab

Joined: 31/Oct/2007 00:00:00
Messages: 240
Offline


I've managed to 'make' a sample app to reproduce this. Actually what I did was to upgrade the ICEFaces version of the snappy calendar test, as found at http://github.com/robmayhew/snappy-components/tree/master .

The version at download is 1.7.1; I've tried the refresh and I stayed on the same page.
I upgraded the version to 1.7.2 and refreshing would bring me back to the welcome (home) page.

I'm referring to the app under /test/jspx in that project.
I hope this helps you figure out what's going on.

Thanks
justforin

Joined: 04/Sep/2008 00:00:00
Messages: 2
Offline


Well, i too had the same problem and it seems to be a bug in Icefaces 1.7.2, the previous version 1.7.1 is stable and works fine as far as this issue is concerned.




Arise & Shine
ozkar2c


Joined: 14/Jul/2008 00:00:00
Messages: 58
Offline



but i´m work with 7.1 in netbeans...
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


I believe http://jira.icefaces.org/browse/ICE-3424 fixes have changed the behavior. The fixes were introduced to better reflect the JSF standard.
So, any previous state held by the components (contained in the ViewRoot) is erased on page loads... potentially restored if they implement javax.faces.component.StateHolder.
[Email]
Anachialos

Joined: 27/Feb/2008 00:00:00
Messages: 16
Offline


Hi!
I run also in this issue. How can I implement a workaround with 1.7.2? Can you make an example?
radu.jakab

Joined: 31/Oct/2007 00:00:00
Messages: 240
Offline


Mircea, I think we are talking about different things. Either that or I'm missing some point.
In my case, the refresh doesn't cause a blank page to be loaded, but the login page. Besides, it looks more like the view I'm supposed to navigate to is mistaken, rather then the state of the components.

I have just tried 1.8.0 DR#1 and this behavior still exists. I have also tried both jsf 1.1 and jsf 1.2, and the behavior still exists.

In any case, can you provide an example of how we could try to fix this?
Thanks
mircea.toma

Joined: 10/Feb/2005 00:00:00
Messages: 323
Offline


Anachialos wrote:
Hi!
I run also in this issue. How can I implement a workaround with 1.7.2? Can you make an example? 


Do you your navigation rules use redirection or forwarding?
[Email]
Anachialos

Joined: 27/Feb/2008 00:00:00
Messages: 16
Offline


forwarding

It seems that always the view last redirected to is displayed with a Browser refresh.
nsanagari

Joined: 19/Oct/2008 00:00:00
Messages: 80
Offline


I also have the similar problem.when i refresh the page in browser all the page components are not displaying.just a white page is displaying.

if i reopen the browser then it is displaying properly.i am using IFaces 1.7.1 only with jboss 4.3.2 in myeclipse6.5

plz help
nsanagari

Joined: 19/Oct/2008 00:00:00
Messages: 80
Offline


hi

i am using 1.7.1 only but i am facing same problem.you told that refresh problem is not in 1.7.1.how can i fix it in 1.7.1


regards
nsanagari
atlantaguitarplayer

Joined: 20/Oct/2008 00:00:00
Messages: 32
Offline


I'm still a bit new to JSF, but I think this is just a general JSF thing. If you type in a URL and request a view and that view is displayed, but then you cause navigation to another view and are using forwards, the URL doesn't change even though you are now looking at a different view. (Essentially you are looking now looking at a view which doesn't match the original URL). When you do a refresh, it goes and gets that original view again...JSF doesn't automatically remember the new view you've navigated to..it's the same as if you've opened up a new window and typed in the original URL again so it's like you're requesting the original view. I dealt with this by using <redirect /> in my navigation rules...that way the URL reflects the view you are really looking at and if they refresh, they will get this view again and not the original view. This also makes it nicer when you use the back button since it won't cause your browser to ask you about resubmitting the last form, etc. It's sort of ugly but just the way JSF is implemented. That said, there are many methods for trying to keep track of the state when using forwards so that when a user does a refresh they will get the last view and not the original view. I'm not sure how well any of these work. Hope I understood your problem correctly and that this helps some.
radu.jakab

Joined: 31/Oct/2007 00:00:00
Messages: 240
Offline


JSF doesn't automatically remember the new view you've navigated to 

That's the point, ICEFaces can do this for you using it's view model. It can remember view ids and get you to the last page navigated to, even when you do a refresh.
There was something in the 1.7.2 build that broke this, I have since tested some repository 1.8.0 builds where it's fixed again.

Thanks for the reply nonetheless!
Radu
 
Forum Index -> General Help
Go to:   
Powered by JForum 2.1.7ice © JForum Team