Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jbpm.workflow.delegation
Interface HtmlFormatter  view HtmlFormatter download HtmlFormatter.java

All Superinterfaces:
Configurable, java.io.Serializable

public interface HtmlFormatter
extends Configurable, java.io.Serializable

is an interface used for the automatic generation of activity-forms in the web-interface. IMPORTANT NOTE : In the web-interface, the class-name is used as a key for finding the internationalized name of this HtmlFormatter. It is used when a ParseException is thrown in parseHttpParameter(java.lang.String, javax.servlet.http.HttpServletRequest) 55 to inform the user what kind of data whas excpected. The error-msg is constructed like this : "Wrong input for field [field-name]. [received-value] could not be parsed as [translated text for html-formatter]"


Method Summary
 java.lang.String objectToHtml(java.lang.Object value, java.lang.String parameterName, javax.servlet.http.HttpServletRequest request)
          generates a HTML-fragment that is used to produce the automatically generated web-form that allows a user to perform an activity.
 java.lang.Object parseHttpParameter(java.lang.String text, javax.servlet.http.HttpServletRequest request)
          parses the text that is returned by the web-client to an java-object before it is stored in an org.jbpm.workflow.execution.AttributeInstance.
 
Methods inherited from interface org.jbpm.workflow.delegation.Configurable
setConfiguration
 

Method Detail

objectToHtml

public java.lang.String objectToHtml(java.lang.Object value,
                                     java.lang.String parameterName,
                                     javax.servlet.http.HttpServletRequest request)
generates a HTML-fragment that is used to produce the automatically generated web-form that allows a user to perform an activity.


parseHttpParameter

public java.lang.Object parseHttpParameter(java.lang.String text,
                                           javax.servlet.http.HttpServletRequest request)
                                    throws java.text.ParseException
parses the text that is returned by the web-client to an java-object before it is stored in an org.jbpm.workflow.execution.AttributeInstance.