com.sdm.quasar.client.jsf.dialog
Interface BrowserWindowCallBack


public interface BrowserWindowCallBack

Callback for the BrowserWindow if the VisualRepresentation requested by the actual request could not or shall not be shown. The callback provides some exit methods to determine what to do next.

Author:
Martin Haft

Method Summary
 boolean handleInvalidSequenceNumber(DialogInstanceId dialogInstanceId, java.lang.String url)
          A double submit is dedected by an invalid sequence number.
 boolean handleNoVisualRepresentationAssigned()
          No VisualRepresentation could be assigned with this request.
 boolean performRedirectToCurrent()
          An other than the requested VisualRepresentation is the currently shown VisualRepresentation and shall stay.
 boolean performRedirectToDialog(java.lang.String dialogId, java.lang.Object context)
          Instead of the requested VisualRepresentation the VisualRepresentation of another dialog shall be shown.
 boolean performRedirectToUrl(java.lang.String url)
          Instead of the requested VisualRepresentation an other page shall be shown.
 

Method Detail

performRedirectToCurrent

public boolean performRedirectToCurrent()
An other than the requested VisualRepresentation is the currently shown VisualRepresentation and shall stay. Thus perform a redirect to the current shown VisualRepresentation.

Returns:
true if the response is completed e.g. due to a redirect to a determined dialog. The servlet filter chain will not be processed further, but the redirect will be performed immediately.

performRedirectToUrl

public boolean performRedirectToUrl(java.lang.String url)
Instead of the requested VisualRepresentation an other page shall be shown. Thus perform a redirect to this page.

Returns:
true if the response is completed e.g. due to a redirect to a determined dialog. The servlet filter chain will not be processed further, but the redirect will be performed immediately.

performRedirectToDialog

public boolean performRedirectToDialog(java.lang.String dialogId,
                                       java.lang.Object context)
Instead of the requested VisualRepresentation the VisualRepresentation of another dialog shall be shown. Thus create the dialog and perform a redirect to the VisualRepresentation of this dialog.

Returns:
true if the response is completed e.g. due to a redirect to a determined dialog. The servlet filter chain will not be processed further, but the redirect will be performed immediately.

handleNoVisualRepresentationAssigned

public boolean handleNoVisualRepresentationAssigned()
No VisualRepresentation could be assigned with this request. The request is probably a new entry at the application, a bookmark or some other reason an existing VisualRepresentation could not be determined. The application has to determine what to do next.

Returns:
true if the response is completed e.g. due to a redirect to a determined dialog. The servlet filter chain will not be processed further, but the redirect will be performed immediately.

handleInvalidSequenceNumber

public boolean handleInvalidSequenceNumber(DialogInstanceId dialogInstanceId,
                                           java.lang.String url)
A double submit is dedected by an invalid sequence number. The application has to determine what to do next.

Parameters:
dialogInstanceId - DialogInstanceId of the dialog that is out of sequence
url - an URL for the corresponding dialog in its actual state
Returns:
true if the response is completed e.g. due to a redirect to a determined dialog. The servlet filter chain will not be processed further, but the redirect will be performed immediately.