wt.change2.htmlclient
Class ChangeIntermediateActionProcessor
java.lang.Object
wt.enterprise.BasicTemplateProcessor
wt.templateutil.processor.DefaultTemplateProcessor
wt.change2.htmlclient.ChangeIntermediateActionProcessor
- All Implemented Interfaces:
- Externalizable, Serializable, TemplateProcessor, ContextHolder, ContextTranslator, Evolvable
Deprecated. This class is still valid for this release, however this
serves as advance notice that it will be removed in the future. All
user interfaces built using the Windchill HTML Template Processing client
architecture will be rewritten on a JSP framework in an
upcoming release.
This template processor supports the HTML template, codebase.templates.change2.IntermediateAction,
whose only purpose is to immediately replace it with another page. This
fixes a problem discovered in Windchill 4.0 in which pressing Reload/Refresh
resulted in unintentionally duplicating the last created object.
The IntermediateAction.html template contains only the invocation of
the JavaScript method location.replace. This method takes a single parameter,
a URL, which is supplied by a call to the Windchill script method getURLwithQueryData.
Most of the Windchill Change Management pages utilize HTTP POST to submit
information to the server. However, in order to avoid the duplication
problem, the IntermediateAction.html page uses HTTP GET. This makes
it necessary to pass any necessary information through the browser "location"
area (called QueryString) rather than through the form data.
public class ChangeIntermediateActionProcessor
- extends DefaultTemplateProcessor
- implements Externalizable
Supported API: true
Extendable: false
- See Also:
getURLwithQueryData,
Serialized Form
| Fields inherited from interface wt.templateutil.processor.ContextHolder |
CONTEXT_ACTION, CONTEXT_CLASS_NAME, CONTEXT_OBJ, CONTEXT_PROPERTIES, FORM_DATA, QUERY_DATA, RESPONSE_EXCEPTIONS, RESPONSE_FOOTERS, RESPONSE_HEADERS, RESPONSE_MESSAGES, RESPONSE_STRING, STATUS |
| Methods inherited from class wt.templateutil.processor.DefaultTemplateProcessor |
displayAttributeLabel, displayAttributeVal, getAttributes, getContextPropertyValue, getHtmlTemplateFactory, getPAGE_EXPIRATION, getPageExpirationResource, getTemplate, setContextPropertyValue, setNameProcessor, setPAGE_EXPIRATION, setPageExpirationResource |
| Methods inherited from class wt.enterprise.BasicTemplateProcessor |
addHTMLHelpLink, addToResponseExceptions, addToResponseFooters, addToResponseHeaders, addToResponseMessages, createActionsBar, createGlobalNavigationBar, createNavigationBar, currentTimestamp, getContextAction, getContextClassName, getContextListIn, getContextListOut, getContextObj, getContextProperties, getEncoding, getFormData, getHTMLHelpURL, getHTMLTableService, getLocalizedPrintWriter, getObjectIcon, getPrintWriter, getQueryData, getResourceString, getResponseExceptions, getResponseFooters, getResponseHeaders, getResponseMessages, getResponseString, getStatus, getURLProcessorLink, getWCColor, getWCColor, getWCColorDec, getWCFontFamily, getWCFontFamily, objectActionLink, objectBackground, objectIdentification, objectPropertyName, objectPropertyValue, processSubTemplate, setContextAction, setContextClassName, setContextListIn, setContextListOut, setContextObj, setContextProperties, setFormData, setQueryData, setResponseExceptions, setResponseFooters, setResponseHeaders, setResponseMessages, setResponseString, setStatus, showResponseExceptions, tableService |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getURLwithQueryData
public void getURLwithQueryData(Properties parameters,
Locale locale,
OutputStream os)
throws WTException
- Deprecated.
- (Windchill script method) Generate a URLTemplateAction URL using the
action stored in the form data value "refreshAction." Prior to returning
the URL, this method appends all form data information to the QueryString.
When the server begins generating the resulting page, the Windchill
script method
ChangeManagementFormProcessor.createFormConstruct takes the QueryString
information and returns it to the form data. For this reason it is
mandatory that the action stored in "refreshAction" point to a template
that calls the createFormConstruct method.
The Windchill out of the box value for "refreshAction" is "ObjProps"
which points to the template templates.change2.ChangeManagementForm.html
Supported API: true
- Parameters:
parameters - locale - os -
- Throws:
WTException- See Also:
ChangeManagementFormProcessor.createFormConstruct,
ChangeIntermediateActionProcessor