How to reference properties indirectly in JSP tags |
Bill VANDJ 6/19/02 In the reference, when, withReference, and forEach tags, you can reference properties indirectly rather than by name in JavaServer Page tags.
When you reference a property indirectly, you're referring to the current active property. Use any of these to set up a property as the active property.
After your HTML code has established the active property, use symbolic values (keywords) to reference the property indirectly. Use these symbolic values in the reference, when, forEach, and with JSP tags.
Symbolic value |
Description |
|
Use |
$this -value |
Use |
|
Use this keyword to refer to the current value of a parameter on the current parameter page of the activity. Example: GENTJ 6/15/06 <input type=hidden name=<pega:reference name="param.UserID"/> value="VANDJ" > |
|
Use For example, if you have a selection box that lets a user choose an account type, and Account_Type is the active property, use the active property as the name of the selection box. That way, the user's choice becomes the value for the property named Account_Type: <SELECT NAME="<p:r
n="$this-name" />" > This keyword can't be used within JSP tags other than pega:reference or p:r. B-19065 not when |
|
Use |
|
Use For example, to display the value of the pyLabel (Short Description) for the active property, use: <pega:reference name="$this-definition(.pyLabel)" /> This symbolic value is frequently used to specify the maximum length or expected size. |
|
Use |
|
R-6233 Use |
|
Use The base page is the same as the primary page, if it has not been changed by the with tag. If the with tag has changed the primary page, the base page is the page established by the with tag. |
|
Use The base page is the same as the primary page if it has not been changed by the with tag. If the with tag has changed the primary page, the base page is the page established by the with tag. |
|
Use |
Use |
|
|
Use this keyword to supply the named property from the Rule-Obj-Class instance that corresponds to the class of the current page. Huh? |
|
Use |
|
Identifies the named property of the current stream definition. GENTJ 3/23/07 |
|
Identifies the handle of the stream definition.GENTJ 3/23/07 |
Use this syntax to qualify the value of the $THIS
symbol
when the current property is an aggregate:
Symbolic Value |
Description |
|
If the mode of the property is <pega: reference name= "$THIS.myProperty" /> identifies the value of myProperty within that page. |