myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Müllan" <>
Subject Re: Making sure no user input is allowed whilst server is processing...[ajax for jsf]
Date Fri, 30 Mar 2007 15:18:45 GMT

i take the following approach in order to get a freeze-screen during a
(native, non-ajax) request-response-cycle:

add the attribute onclick=";" to your
command component which raises the submit.

<s:modalDialog dialogId="waitDuringRequestDialog"
               dialogAttr="bgColor='white' bgOpacity='0.5'
toggle='fade' toggleDuration='250'"
               hiderIds="" styleClass="modalDialog">
    <h:panelGrid styleClass="modalDialogProgressBox centerAlign">
        <h:outputText value="#{text.modalDialogText_requestPending}"

which in turn makes the whole screen freezing as long as the new page
is rendered.

I didn`t try it out on my own, but in case of an ajax-request i think
you need to call the ";" just before
the xmlhttprequest-call.



On 3/30/07, Julien Martin <> wrote:
> Hello all,
> I am wondering if it is possible to make sure that no user input is
> possible/allowed whilst the server is processing in other words when the
> "startText" of the a4j:status is displayed. Do I need some sort of a modal
> component? Any best practice one of you could advise? How can I disable all
> of the screen whilst the ajax request is processing??
> Thanks in advance,
> Julien.


Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

View raw message