Thursday, March 3, 2011

How to Make Row Current From Managed Bean

If you have scenario when user click the row and you want to get current row value and performt some customized operation then this is best way to do it.

1. go to af:Table component and overide
selectionListener="#{pageFlowScope.ManagedBeanName.methodName}"

2.
public void methodName(){
String MakeCrt= "#{bindings.TableVO1.collectionModel.makeCurrent}";
JSFUtils.invokeMethodExpression(MakeCrt, Object.class, SelectionEvent.class, selectionEvent);
}

No comments:

Post a Comment