jakartaee / faces

Jakarta Faces
Other
102 stars 55 forks source link

Ajax Back Button Support #638

Open eclipse-faces-bot opened 15 years ago

eclipse-faces-bot commented 15 years ago

Many modern Ajax frameworks support back button actions.

JSF should as well.

This probably means both browser history manipulation and state restoration. Could be pretty hard to do, but really important for being seen as a real Ajax solution.

Environment

Operating System: All Platform: All

Affected Versions

[2.0]

eclipse-faces-bot commented 5 years ago
eclipse-faces-bot commented 15 years ago

@glassfishrobot Commented Reported by driscoll

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented driscoll said: Also, see here for a newly proposed standard by Google:

http://googlewebmastercentral.blogspot.com/2009/10/proposal-for-making-ajax-crawlable.html

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented @edburns said: Prepare to delete api subcomponent

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented @edburns said: unscheduled

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented @edburns said: frame

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented @edburns said: These are targeted at 2.1.

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented rogerk said: triage

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented @edburns said: On 5 May 2010, at the JAX conference, this feature was requested, but in a slightly different guise. The requestor wanted something like

<h:backButton ...> with an optional "number of views to go back" attribute.

eclipse-faces-bot commented 14 years ago

@glassfishrobot Commented @edburns said: rogerk

eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented rogerk said: triage

eclipse-faces-bot commented 13 years ago

@glassfishrobot Commented rogerk said: triage

eclipse-faces-bot commented 12 years ago

@glassfishrobot Commented werpu12 said: Ok Ajax back button support is tricky at best. I will investigate the following days into this issue. I know html5 will provide an official api and there are hacks which enable it via hashtags on the url. (the hashtag hacks also enable bookmarking for ajax)

I personally think in step 1 we should aim for the standardized html5 way of doing things and then aim lower with the hasthags which open another can of worms.

eclipse-faces-bot commented 12 years ago

@glassfishrobot Commented werpu12 said: https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history

is interesting information regarding this.

eclipse-faces-bot commented 12 years ago

@glassfishrobot Commented werpu12 said: Ok I was able to enable back button support with some html 5 see following link https://gist.github.com/1993051

A detailed blog will follow. The problem i see is, that there are several approaches. a) The simplest is to go for the pure html5 way. Then you have to snapshot the page and restore it upon a proper back button event.

b) The probably easiest one is, to enable the same by adding a html5 storage simulation and back button simulation to the page (and use hashtash for the back button simulation). This should be doable, or by simply storing the page shots in a javascript map.

c) The third one would be to enable something else via hashes in the url, that would need some server side patching additionally.

I will try to prototype approach b) tomorrow.

eclipse-faces-bot commented 12 years ago

@glassfishrobot Commented werpu12 said: https://gist.github.com/2000091 here is the same prototype for html4 browsers.

The problem i see here with both methods is, they are purely clientside, and rely on the state history to recover the correct state. So they

a) need some kind of notification how deep the state history is to prevent states which result in an error.

b) it is still unclear on how to deal with embedded scripts in the page and onload handlers which rely on component initialisation.

We probably have to add a callback event which the component systems can hook in to reintialize their stuff, or we simply execute all embedded scripts even with the danger of getting sideffects.

eclipse-faces-bot commented 10 years ago

@glassfishrobot Commented @edburns said: Set priority to baseline ahead of JSF 2.3 triage. Priorities will be assigned accurately after this exercise.

eclipse-faces-bot commented 15 years ago

@glassfishrobot Commented Issue-Links: blocks JAVASERVERFACES_SPEC_PUBLIC-718 JAVASERVERFACES_SPEC_PUBLIC-542

eclipse-faces-bot commented 7 years ago

@glassfishrobot Commented This issue was imported from java.net JIRA JAVASERVERFACES_SPEC_PUBLIC-638