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!

Accessing view object class (impl) method from bean (or vice versa)

957393Oct 19 2012 — edited Oct 23 2012
Halo everyone, I am using JDeveloper 11.1.2.1.0

I have a UsersViewImpl class with a method which refresh the user table like below.

public void resetEmployeeSearch() {
removeApplyViewCriteriaName("viewCriteria");
executeQuery();
}

and I have a UserBean class with a method which reset the search fields values like below.

public void resetInput(ActionEvent actionEvent) {
........RichInputText = input ...
input.setValue("");
AdfFacesContext.getCurrentInstance().addPartialTarget(searchForm);
........
}


I would like to implement it in such a way that, once I press a button, both methods will be called.

I have tried to call from bean method using UsersViewImpl vs = new UsersViewImpl ..... which is wrong and wont work.
I have read about doing something like ViewObject vo = am.findViewObject("DeptView1") but I duno how to use it because I cant have a proper example.

Any suggestion on accessing view object class (impl) method from bean (or vice versa)?
Or is there any way to combine both method in the same class ?


Thank you :(
This post has been answered by Sudipto Desmukh on Oct 19 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 20 2012
Added on Oct 19 2012
10 comments
1,554 views