You mean as javascript you wrote can prevent form submit?
I don't want to prevent refresh, but I just want refresh in request a
new page same as jsf page first requested, its lifecycle create a new
jsf view component tree and render response.


On 4/28/06, aliko <[EMAIL PROTECTED]> wrote:

You can trap F5 key and call form.submit with a little javascript. But that
does not help when user clicks the refresh button.

<script>

function ui_onkeydown_handler() {
       switch (event.keyCode)    {
               case 116 : // F5
                       event.keyCode = 0;
                       event.returnValue = false;
                       document.forms['form1'].submit();
       }
}

document.attachEvent("onkeydown", ui_onkeydown_handler);
</script>


--
View this message in context: 
http://www.nabble.com/Issues-with-refresh-page-in-JSF-t1523452.html#a4140628
Sent from the MyFaces - Users forum at Nabble.com.




--

Anthony Hong

Reply via email to