jbpm-form-modeler-request-dispatcher 6.2.0.CR4

org.jbpm.formModeler.service.bb.mvc.taglib.formatter
Class ForFormatter

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

@Named(value="org.jbpm.formModeler.service.mvc.formatters.ForFormatter")
public class ForFormatter
extends Formatter

This class extends Formatter to provide support for iteration through a list.

It expects the following input parameters:

It serves the following output fragments, with given output parameters:


Constructor Summary
ForFormatter()
           
 
Method Summary
protected  Iterator getSortedIterator(Iterator iterator, String sortProperties)
           
 void init()
           
 void service(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          Perform the required logic for this Formatter.
 void shutdown()
           
 
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
 

Constructor Detail

ForFormatter

public ForFormatter()
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.

getSortedIterator

protected Iterator getSortedIterator(Iterator iterator,
                                     String sortProperties)

shutdown

public void shutdown()

init

public void init()

jbpm-form-modeler-request-dispatcher 6.2.0.CR4

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