requestParameter

Description: Defines a parameter that will be included in a request. Several type of requests are admitted, for example Ajax Requests.

JavaDoc: Click here

Remarks: The default stages in case of login/logout are the ones defined in DiF's configuration. See more about this here.

Body content: Empty. All enclosed content will be ignored.

Attributes:

Name Description Data type Required Default value
name The name (identifier) of the parameter String Yes No
value The value for the parameter. String Yes No
type The interpretation mechanism to apply to the parameter value. See bellow a list of supported types. RequestParameterType No True

Examples:

#1: request Parameter for a literal value.

<dif:document>
    ...
    <dif:ajaxRequest ajaxEvent="ajaxEventName" bindTo="triggerelementID:click" showCallMask="true">
        ...
        <dif:requestParam name="paramName" value="paramValue" />
        <dif:requestParam name="paramName2" value="paramValue2" type="<%=RequestParameterType.LITERAL%>" />
        ...
    </dif:ajaxRequest>
    ...
</dif:document>

#2: request Parameter for a evalution value. Essencialy is a javascript expression that calculates the parameter value.

<dif:document>
    ...
    <dif:ajaxRequest ajaxEvent="ajaxEventName" bindTo="triggerelementID:click" showCallMask="true">
        ...
        <dif:requestParam name="paramName" value="document.getElementById('inputId').value" type="<%=RequestParameterType.EVALUATION%>" />
        ...
    </dif:ajaxRequest>
    ...
</dif:document>

Back to tag reference