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 - Accesing Components from a ViewScope managed bean in a HA Environment.

jtyremanNov 27 2014 — edited Dec 1 2014

Hi All

I have a query, i am starting out with ADF and am learning alot through these forums and Google

Using Jdeveloper 11.1.1.7

the question i have is, i have a clustered/HA Environment (2 Nodes) and am moving my application to use HA.

i have changed the adf-config.xml file to add the following line:

  <adf-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">

    <adf-scope-ha-support>true</adf-scope-ha-support>

  </adf-controller-config>

i currently have one managed bean (ViewScope) and this has all my actionListeners/valueChange etc... etc... it also has my UIComponent bindings and i also have several methods that set particular attributes on these components and then do :

AdfFacesContext.getCurrentInstance().addPartialTarget("ComponentRefHere");

I am aware i need to set my managed beans to implement Serializable i also understand that UI Components are not Serializable...

i am using the ComponentReference method ie:

    private ComponentReference<RichPanelBox> iframePB;

    public void setIframePB(RichPanelBox component) {

        iframePB = ComponentReference.newUIComponentReference(component);

    }

 

    public RichPanelBox getIframePB() {

        return uiComponentBean.getIframePB();

    }

the question i have is, can i leave it like this? or shall i move them to another managed bean?

If so what scope should i set the bean, should this also implement serializable, and how can i access them from my viewScope managed bean.


Thanks

This post has been answered by Timo Hahn on Nov 27 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 29 2014
Added on Nov 27 2014
4 comments
1,354 views