RichFaces Photoalbum 4.3.5.Final

org.richfaces.photoalbum.ui
Class ErrorHandlerBean

java.lang.Object
  extended by org.richfaces.photoalbum.ui.ErrorHandlerBean

@Named
@RequestScoped
public class ErrorHandlerBean
extends Object

Convenience UI class for global eeror-checking mechanism

Author:
Andrey Markhel

Constructor Summary
ErrorHandlerBean()
           
 
Method Summary
 void addToErrors(ErrorEvent ee)
          Convenience method that observes Event of type Events.ADD_ERROR_EVENT.
 void setJSError(String message)
          Pseudo-setter that shows error that originated in JS code, using as a middle-man.
 void showError(String summary, String detail)
          Creates a on the site.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorHandlerBean

public ErrorHandlerBean()
Method Detail

showError

public void showError(String summary,
                      String detail)
Creates a on the site.

Parameters:
summary - - summary of the error
detail - - detailed description of the error

addToErrors

public void addToErrors(@Observes
                        ErrorEvent ee)
Convenience method that observes Event of type Events.ADD_ERROR_EVENT.

Parameters:
ee - - event fired upon error.

setJSError

public void setJSError(String message)
Pseudo-setter that shows error that originated in JS code, using as a middle-man.

Parameters:
message - - summary and detail separated by '$#$'

RichFaces Photoalbum 4.3.5.Final

Copyright © 2014 JBoss by Red Hat. All Rights Reserved.