method binding on custom component

Can any one has an example of doing method binding on custom component.Basically I would like to access a backing bean method fromcustom component.If any of you have same code to explain the same that would be great.thanksKeth
[268 byte] By [ketha] at [2007-10-3 2:04:55]
# 1

You can create a method binding and set to the component as an Action, ActionListener or valueChangeListener depending on the component.

e.g of create a methodbinding in your component class. The following example creates a method binding and sets as an action for the button component:

String methodName = "#{manualAdjustmentAction.createManualAdj}";

MethodBinding methodBinding = this.getFacesContext().getApplication().createMethodBinding(methodName, null);

this.createManAdjButton.setAction(methodBinding);

kirangunduraoa at 2007-7-14 19:03:44 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...