RichFaces Photoalbum 4.3.3.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(SimpleEvent se)
          Convenience method that observes Constants.ADD_ERROR_EVENT.
 List<String> getErrors()
           
 boolean isErrorExist()
           
 
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

getErrors

public List<String> getErrors()

isErrorExist

public boolean isErrorExist()

addToErrors

public void addToErrors(@Observes
                        SimpleEvent se)
Convenience method that observes Constants.ADD_ERROR_EVENT. After error occured add error to the list of erors andon rerendering modal panel with all errors will be showed.

Parameters:
e - - string representation of error.

RichFaces Photoalbum 4.3.3.Final

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