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!

What is the way to handle ADF Application to support in Cluster environment

vijay dasariJan 18 2023

Hi Team,

Jdev : 12.2.1.2.0

Till now, We have used our application in non cluster environment. now we decided to move our application into cluster.
As i seen some blogs they mentioned as below.

RichInputText nameField;
public void setNameField(RichInputText nameField)
{
this.nameField = nameField;
}
public RichInputText getNameField()
{
return nameField;
}

Should be replaced with code like this:

private ComponentReference nameField;
public RichInputText getNameField()
{
if (nameField!=null)
{
return (RichInputText) nameField.getComponent();
}
return null;
}

public void setNameField(RichInputText nameField)
{
this.nameField = ComponentReference.newUIComponentReference(nameField);
}

Can anyone suggest me why we need to do above change ( any doc/references)

Please share

any suggestion from Oracle A team
Thank u

This post has been answered by Timo Hahn on Jan 18 2023
Jump to Answer
Comments
Post Details
Added on Jan 18 2023
3 comments
344 views