Hello All ,
you have heard about shuttle component in ADF, it works for multiple selection
to use it -refer my previous blog post
Shuttle Component in Oracle ADF (Allow Multiple Selection)
Sometimes we need to reset shuttle (clear selected values) through our code (managed bean)
so in this post I'm going to explain how to do this with simple piece of code
you have heard about shuttle component in ADF, it works for multiple selection
to use it -refer my previous blog post
Shuttle Component in Oracle ADF (Allow Multiple Selection)
Sometimes we need to reset shuttle (clear selected values) through our code (managed bean)
so in this post I'm going to explain how to do this with simple piece of code
- I have created a simple jspx page and placed Departments (HR Schema) view-object on this page as an af:selectManyShuttle
- Created managed bean for a link to clear selected indices of shuttle, see code
- Now see how it works- when user click on this link ,it will clear all selected indices of shuttle
public BindingContainer getBindings() { return BindingContext.getCurrent().getCurrentBindingsEntry(); } /**Method to Clear selected value of shuttle (Reset Shuttle) * @param actionEvent */ public void resetShuttleAction(ActionEvent actionEvent) { BindingContainer bc = this.getBindings(); JUCtrlListBinding listBindings = (JUCtrlListBinding)bc.get("DepartmentsView1"); listBindings.clearSelectedIndices(); }
No comments :
Post a Comment