This content has been marked as final. Show 3 replies
BindingContext ctx = BindingContext.getCurrent(); DCBindingContainer bc = (DCBindingContainer)ctx.getCurrentBindingsEntry(); DCIteratorBinding iter = bc.findIteratorBinding("DeviceView1Iterator"); // check in pageDef if the name of iterator is correct DeviceViewImpl dvi = (DeviceViewImpl)iter.getViewObject();
Edited by: Alejandro Profet on Nov 14, 2012 5:26 PM
Exactly same ClassCastException. Could I generate DeviceViewImpl badly? Or could I not registered it somewhere so framework did not noticed that my DeviceViewImpl exists?
Exactly same ClassCastExceptionOf course. You just used a different method to get to the same VO instance that cannot be casted.
You could check the XML of your VO and see if there is an entry like:
There is probably none and you should recreate the component class using the editor overview.