public class MessagesComponentFormatter extends Formatter
Modifier and Type | Field and Description |
---|---|
protected LocaleManager |
localeManager
The locale manager.
|
Constructor and Description |
---|
MessagesComponentFormatter() |
Modifier and Type | Method and Description |
---|---|
String |
getClassForErrors() |
String |
getClassForMessages() |
String |
getClassForWarnings() |
String |
getErrorsImg() |
int |
getMaxVisibleErrors() |
String |
getMessagesImg() |
String |
getWarningsImg() |
protected String |
localizeMessage(String message) |
protected void |
renderMessages(List<String> messages,
List<String[]> params,
String img,
String className) |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Perform the required logic for this Formatter.
|
void |
setClassForErrors(String classForErrors) |
void |
setClassForMessages(String classForMessages) |
void |
setClassForWarnings(String classForWarnings) |
void |
setErrorsImg(String errorsImg) |
void |
setMaxVisibleErrors(int maxVisibleErrors) |
void |
setMessagesImg(String messagesImg) |
void |
setWarningsImg(String warningsImg) |
afterRendering, formatObject, getDefaultLang, getDriver, getEncoding, getLang, getLocale, getLocaleManager, getLocalizedValue, getPanel, getParameter, getProvider, getSection, getWorkspace, includePage, renderFragment, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeInterpreter, setTag, writeToOut
protected LocaleManager localeManager
public int getMaxVisibleErrors()
public void setMaxVisibleErrors(int maxVisibleErrors)
public String getClassForMessages()
public void setClassForMessages(String classForMessages)
public String getClassForWarnings()
public void setClassForWarnings(String classForWarnings)
public String getClassForErrors()
public void setClassForErrors(String classForErrors)
public String getMessagesImg()
public void setMessagesImg(String messagesImg)
public String getWarningsImg()
public void setWarningsImg(String warningsImg)
public String getErrorsImg()
public void setErrorsImg(String errorsImg)
public void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws FormatterException
Formatter
service
in class Formatter
request
- user requestresponse
- response to the userFormatterException
- in case of an unexpected exception.protected void renderMessages(List<String> messages, List<String[]> params, String img, String className)
Copyright © 2012–2016 JBoss by Red Hat. All rights reserved.