jbpm-form-modeler-request-dispatcher 6.0.0-SNAPSHOT

org.jbpm.formModeler.service.error
Class ErrorReportFormatter

java.lang.Object
  extended by org.jbpm.formModeler.service.bb.mvc.taglib.formatter.Formatter
      extended by org.jbpm.formModeler.service.error.ErrorReportFormatter

@Named(value="ErrorReportFormatter")
public class ErrorReportFormatter
extends Formatter


Field Summary
protected  String errorsImg
           
protected  String messagesImg
           
protected  String warningsImg
           
 
Constructor Summary
ErrorReportFormatter()
           
 
Method Summary
protected  String getErrorIcon(ErrorReport errorReport)
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Perform the required logic for this Formatter.
 
Methods inherited from class org.jbpm.formModeler.service.bb.mvc.taglib.formatter.Formatter
afterRendering, getLang, getLocale, getLocaleManager, getParameter, includePage, renderFragment, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeInterpreter, setTag, writeToOut
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

messagesImg

@Inject
protected String messagesImg

warningsImg

@Inject
protected String warningsImg

errorsImg

@Inject
protected String errorsImg
Constructor Detail

ErrorReportFormatter

public ErrorReportFormatter()
Method Detail

service

public void service(javax.servlet.http.HttpServletRequest request,
                    javax.servlet.http.HttpServletResponse response)
             throws FormatterException
Description copied from class: Formatter
Perform the required logic for this Formatter. Inside, the methods setAttribute and renderFragment are intended to be used to generate the output and set parameters for this output. Method getParameter is intended to retrieve input parameters by name.

Exceptions are to be catched inside the method, and not to be thrown, normally, formatters could use a error fragment to be displayed when an error happens in displaying. But if the error is unexpected, it can be wrapped inside a FormatterException.

Specified by:
service in class Formatter
Parameters:
request - user request
response - response to the user
Throws:
FormatterException - in case of an unexpected exception.

getErrorIcon

protected String getErrorIcon(ErrorReport errorReport)

jbpm-form-modeler-request-dispatcher 6.0.0-SNAPSHOT

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