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!

How to override the create method invoked by a create form?

452948Aug 25 2006 — edited Nov 11 2006
Hello everyone, I'm using ADF Faces and have the next question:

How can I override the create method which is invoked by a create form to preset an attribute in the new row (the preset value is not fixed, I have to send it to the method as a parameter as it is obtained using an EL expression)?

In the ADF guide I read how to override a declarative method (Section 17.5.1 How to override a declarative method), but this explains how to do it with a method that is called by a button. I don't know how to do the same with a method which is called automatically when the page is loaded.

I also tried overriding the view object's createRow() method to receive a parameter with the preset values but it didn't work, I believe that was because the declarative create method is not the same as the view object's createRow. This caused the form to display another row from the viewobject and not the newly created one (I also set the new row into STATUS_INITIALIZED after setting the attribute).

Well, I hope my problem is clear enough for somebody to help me.
Thank you!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 9 2006
Added on Aug 25 2006
2 comments
781 views