How to call a method defined in ViewObjectImpl using groovy expression?

Usecase Description:

We can define a transient attribute that calls  ViewObjectImpl.java method using Groovy expression.

Consider a simple method in EmpViewImpl java class that returns the currentRowIndex:

 

  public Number returnCurrentRowIndex()
   {
    return this.getCurrentRowIndex();
   }


Create an Updatable Transient attribute in EmpView Object.Edit its value
& provide a groovy expression "adf.object.viewObject.returnCurrentRowIndex()
" to call the above method

Run the AppModule & note that the transient attribute returns the currentRowIndex of the selected row of Emp table.

Comments:

Post a Comment:
  • HTML Syntax: NOT allowed
About

Tips and Tricks from Oracle's JDeveloper & ADF QA

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today