myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Hong" <anthony.bin.h...@gmail.com>
Subject Re: Issues with refresh page in JSF
Date Fri, 28 Apr 2006 15:11:52 GMT
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 <akoksal@oytek.com.tr> 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

Mime
View raw message