Simplica

ProductsLearnPurchaseSupportDemoDownload
  [Search] Search   [Recent Topics] Recent Topics  
Setting a value change listener in backing bean
Forum Index -> DataTable
Author Message
cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

How do I set a value change listener in a backing bean? The FacecesContext.getCurrentInstance().getApplication().createMethodBinding("#{routeCap.capacitySelected}", new Class[] {}); is deprecated and throws:

WARNING: javax.el.MethodNotFoundException: Method not found: com.vzb.fresco.web.routeGen.RouteCapacity@15ca455.capacitySelected()
javax.faces.el.MethodNotFoundException: javax.el.MethodNotFoundException: Method not found: com.vzb.fresco.web.routeGen.RouteCapacity@15ca45
5.capacitySelected()
at com.sun.faces.application.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:81)
at ecruiser.component.EditableFieldDelegate.broadcast(Unknown Source)
at ecruiser.advanced.datatable.SelectTable.broadcast(Unknown Source)
at ecruiser.advanced.datatable.DataTable.broadcast(Unknown Source)
at ecruiser.advanced.datatable.SelectTable.broadcast(Unknown Source)
at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)
adina_mihai
Simplica Team

Joined: 04/01/2007 00:00:00
Messages: 189
Offline

You have to use something like this:

cobar


Joined: 08/01/2007 17:02:58
Messages: 98
Offline

THANKS! Is their an ETA on using MethodExpression to get around the deprecated javax.faces.el.MethodBinding
 
Forum Index -> DataTable
Go to:   
Powered by JForum 2.1.7 © JForum Team
Home   |  News   |  Contact   |  About   |  License   |  Privacy   |  Documentation
Copyright © 2009 Simplica Corporation. All rights reserved.