I have a problem with the ajaxStatus when it opens a modal dialog.
For larger request times its working great, but for small requests its kinda annoying.
But the biggest problem is the autoComplete component, since it looses focus and interupts the users typing.
This could of course be solved with the global="false" attribute, but this is currently not working for autoComplete.
Is there a way to make the dialog not appear before a given time? Example a second?
Somekind of javascript to trigger on "onstart"?
Using global=false works poorly since the requests varies in size.
Code: Select all
<p:ajaxStatus onstart="statusDialog.show();"
onsuccess="statusDialog.hide();" onerror="errorDialog.show();"/>
<p:dialog modal="true" widgetVar="statusDialog" header="Jobber"
draggable="false" closable="false">
<p:graphicImage value="/images/ajax-loading-bar.gif" />
</p:dialog>