4.10.5Object PostBinder

Binder retreiving values from the Request POST fields.

Object PostBinder

Note: Unless you know what you're doing, you should use the InputBinder object instead.

This binder initialize the variable with a part of the incoming POST query matching the variable name.

If the service has an instance value, then the variable serched among the input elements is prefixed with a "_" string, where is the name of the service instance.

For example, in the following service:


   class Test(i) from Service(i)
      var = ServiceVar( PostBinder )
   end

var will assume the value of the input variable named "var", if present. If the service is created with an instance name, for example "mytest", then the variable searched will be "mytest_var".

If the variable is not found in the input scope (in this case POST HTTP fields), the ServiceVar.value property will be nil, and the value of ServiceVar.isSet will be false.

See also: InputBinder.

Made with http://www.falconpl.org