Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Groovy Expressions in Custom Properties of view object

TheNewBeeApr 2 2015 — edited Apr 2 2015

Hi All,

i need to have view objects custom property be dynamic.

after little search i found we can set groovy expression for attributes custom property; blog

so i follwed the blog to achive same for VOs cutom property like below

public class VFlightBookingDefImpl extends ViewDefImpl {

  @Override

  public void resolveDefObject() {

    super.resolveDefObject();

   this.setPropertyExpression("test1", "'1'=='1'");     // here test1 is custom property defined at VO level

  }

....

}

and access it as below :

#{bindings.VFlightBookingIterator.viewObject.properties.test1}

but it returnes string '1'=='1'

i dont know if its correct steps to do so and i am unable to find any documentation about it.

please help me out to find a solution for it.

thanks

-somesh

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 30 2015
Added on Apr 2 2015
5 comments
307 views