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!

ADF Faces/BC, how to set the default value of a transient attribute?

Brenden AnsteySep 21 2006 — edited Sep 21 2006
Hi,
I have a read-only view object which is based on an SQL query. I have a transient attribute defined called 'Action'. I want to default it's value to the value 'Add' and then be able to manipulate it as required.

I have tried setting the default value in the VO definition and also added a view row implementation class and overidden the create method to set the default value.

None of the above have worked. The attribute is always null in the ADF read-only table and also null if I use row.getAttribute("Action");

Is there something else I need to set?

this is from the XML defintion of the VO:
  <ViewAttribute
      Name="Action"
      IsSelected="false"
      IsPersistent="false"
      DefaultValue="Add"
      Type="java.lang.String"
      ColumnType="VARCHAR2"
      AliasName="VIEW_ATTR"
      SQLType="VARCHAR" >
   </ViewAttribute>
regards,
Brenden
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2006
Added on Sep 21 2006
4 comments
1,799 views