Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Attribute NameRequired?ExprVal?Description
valueYYThe value of the argument to insert into the message. Can use the <%=...%> syntax to use Java method context variables.

Service Tags

...

ofbiz:service

The service tag invokes the named service using the given mode (sync or async). The results can be placed in the page, request, session or application scope as specified using the resultTo attribute. The default scope is page.

To specify information about parameters and return values use nested param tags. They are described below.

For more information on services see the Service Engine Guide and the Service Engine Configuration Guide.

Attribute NameRequired?ExprVal?Description
nameYYThe name of the service to call.
modeNYThe mode that will be used to call the service, either synchronous or asynchronous. Must be sync or async, Defaults to sync.
resultToNYSpecifies the scope that the results should be put into. The OUT attributes/parameters of the service will be put into attributes in this scope. Must be page, request, session or application. Defaults to page.

ofbiz:param

The param tag is used to specify information about parameters passed to the service and can also be used for spcifying certain information about return values.

Attribute NameRequired?ExprVal?Description
nameYYThe name of the service parameter.
valueNYThe value to assign to an IN parameter. Can use the <%=...%> syntax to use Java method context variables.
modeNYSpecifies the mode of the parameter. Must be IN, OUT or INOUT. Defaults to IN. If OUT or INOUT the alias attribute can be used to override the default key for the context attribute in the scope specified in the service tag.
mapNYSpecifies a name for a Map to find in a context attribute. If specified the attribute attribute will be used to find a value in this map. If not specified the attribute attribute will be used to lookup a value in a context attribute.
attributeNYSpecifies the name of the attribute value to lookup. This is used INSTEAD of the value attribute which is used to directly specify the value to be passed to the service for this parameter. The looked up attribute value will be passed to the service for this parameter.
aliasNYUsed to specify the key that will be used when putting OUT or INOUT parameters into a context attribute. Defaults to the value of the name attribute.