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!

Set Panel Splitter Position at runtime

Ankit BhardwajApr 25 2013
Hi All,

Jdev version is 11.1.1.6.0

My use case is that I have a panel splitter in which the first facet has a table and the second facet has some fields. By default, I've set the collapsed property of the panel splitter to be true.

What I want to achieve is the moment the user clicks on a row in the table, the splitter should come to its position (the position set in the property of panel splitter) and the second facet should be visible.

Here's a code from my backing bean which gets executed when I select a row :
    public void woFinishedTableSelectionListener(SelectionEvent selectionEvent) {
        ADFUtil.invokeEL("#{bindings.jobWorkFinishedView1.collectionModel.makeCurrent}",
                         new Class[] { SelectionEvent.class },
                         new Object[] { selectionEvent });
        System.out.println("Selection Listener Executed : Check 1");
        tablePanelSplitter.setCollapsed(false);
        tablePanelSplitter.setSplitterPosition(520);
       // tablePanelSplitter.setSe
        System.out.println("Selection Listener Executed : Check 2");
        AdfFacesContext.getCurrentInstance().addPartialTarget(tablePanelSplitter);
        System.out.println("Selection Listener Executed : Check 3");
    }
But the above code doesn't seems to be working, the splitter remains in collapsed position.

Would like to know if I am missing out something or if there is any other way of doing it.

Thanks,
Ankit
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2013
Added on Apr 25 2013
0 comments
174 views