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!

Which one is the best scope for fragments managed bean? According to the best practices

DanielD7777Feb 24 2017 — edited Feb 24 2017

Hi experts, I hope you are having a good day.

Maybe this question can seem to you as one question of a newbie.

I have 8 months of experience with ADF and I already had the responsability of make an architecture, my past technical liders told me to put all managed bean in pageFlow Scope and at this project I am alone so I want to make things the best way as possible.

I realize that put all manage bean on pageFlowScope of course is a bad  practice, right now I am study the ADF pages LifeCycle and I found out the theme both really complex and interesting.

My question is about the managed bean of the fragments because I use to do it before as my previous leaders told me with pageFlowScope  with entries parameters from the parent managed bean , but right now following the best practices I want to make all managedBeanScope as little as possible according with the case, so I will waste the less amount of memory.

It is manadatory to have a pageFlowScope managed bean with the fragments?

If I set a smaller scope  as viewScope or backingBeanScope to the fragments I will have a problem with the flow instances or entry parameters?.

Please if anyone can explain this pointing out simple examples I would be grateful,

I am doing a project by myself and I want to do things as best as possible.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2017
Added on Feb 24 2017
6 comments
192 views