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: Insert Region Programatically

987779Jan 29 2013 — edited Jan 29 2013
Hello:

I'm using jdeveloper ver. 11.1.2.3.0 . I'm trying to add new RichPanelBox components, with a region inside to a page programatically. I create the RichPanelBox and place inside a RichRegion but when i use the .setValue method of the RichRegion to set the RegionModel I receive an error:
 <PropertyKey> <saveValue> Valor no serializable: oracle.adf.controller.internal.binding.DCTaskFlowBinding$InnerTaskFlowRegionModel@16f8890 para la clave: UINodePropertyKey[value,15]
I tried also with the .setValueExpression method and i'm receiving the same error.

Here is the chunk of code where i am having this problem:
        private void maximize(ActionEvent actionEvent) { 
        String id = actionEvent.getComponent().getId().replace("maximize_",""); 
        RichRegion region = new RichRegion(); 
        RegionModel regionModel = this.getRegionModelTaskFlow(id); 
        region.setId("region_"+id); 
        region.setValue(regionModel); 
         
        RichPanelBox panelBox=(RichPanelBox)JSFUtils.findComponentInRoot("maximized"); 
        panelBox.getChildren().add(region); 
         .
         .
         .
    }
What I'm trying to achieve is to add dynamically new PanelBoxes and assing to them a taskflow, all in runtime.

I saw a previous thread with likely the same problem is this (851878 in this case (2009) it was pointed that it was an ER.

Thanks
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 26 2013
Added on Jan 29 2013
2 comments
199 views