Tuesday, October 20, 2009

Textbox onchange functionality in ADF

onchange functionality can be acheived in ADF by the use of texbox valueChangeListener property in Behavior.

Steps:
Step1: Select textbox go to properties menu. Under Behavior select valueChangeListener and enter a method name. This method will be availble in backing bean.

public void methodName(ValueChangeEvent valueChangeEvent) {
ot1.setValue("hello world");
}
Note: ot1 - OutputText

Step 2: set autosubmit ="true" on the textbox.

Step 3: To display the result of valueChangeEvent on the outputText field. Set partialTriggers property on the outputText with id of the textbox.

No comments:

Post a Comment