This content has been marked as final. Show 1 reply
Ok, so I'm still pretty new to this technology...
I've revised my approach from that posted above. Now I've created additional List-of-Values bindings on the Page Def from the same Iterator. Now I refresh the LOV View Objects from these bindings with a little more control...
Does this now constitute better practice? Or is there still a better way to go about it? Thanks.
BindingContext bctx = BindingContext.getCurrent(); BindingContainer bindings = bctx.getCurrentBindingsEntry(); FacesCtrlLOVBinding lov = (FacesCtrlLOVBinding)bindings.get("Value2"); ViewObject listVO = lov.getListIterBinding().getViewObject(); lov.getListIterBinding().getRowSetIterator().getRowSet().setNamedWhereClauseParam("bindApplicationView",toDoApplicationView); lov.getListIterBinding().getRowSetIterator().getRowSet().executeQuery();// .getViewObject().getRowSet().executeQuery();
Also, as my Lovs are displayed as Combo boxes, the user could type values into them before the Popup is launched - resulting in invalid value exceptions. Where could I perform the refresh prior to the popup launch event?