br.net.woodstock.rockframework.web.faces.utils
Class FacesUtils
java.lang.Object
br.net.woodstock.rockframework.web.faces.utils.FacesUtils
public abstract class FacesUtils
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
addMessage
public static void addMessage(String message)
addError
public static void addError(Exception exception)
getFacesContext
public static javax.faces.context.FacesContext getFacesContext()
getResourceBundle
public static ResourceBundle getResourceBundle(String name)
getBean
public static <T> T getBean(String name,
Class<T> clazz)
getMessage
public static String getMessage(String name,
String key)
getRequest
public static javax.servlet.http.HttpServletRequest getRequest()
getResponse
public static javax.servlet.http.HttpServletResponse getResponse()
getSession
public static javax.servlet.http.HttpSession getSession()
getServletContext
public static javax.servlet.ServletContext getServletContext()
download
public static void download(byte[] bytes,
String fileName)
throws IOException
- Throws:
IOException
Copyright © 2012 Woodstock Tecnologia. All Rights Reserved.