Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void poiNameDialogListener(DialogEvent dialogEvent) {
- DCIteratorBinding poiCategoryIterator = ADFUtils.findIterator("PoiListAdGeView1Iterator");
- Row currentRow = poiCategoryIterator.getCurrentRow();
- if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok && currentRow != null) {
- String poiName = (String)currentRow.getAttribute("PoiName");
- Integer poiId = (Integer)currentRow.getAttribute("PoiId");
- if (null != poiName) {
- AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
- Row selectedReport = am.getModuleParamsView1().getCurrentRow();
- if (null != selectedReport) {
- selectedReport.setAttribute("PoiId", poiId);
- selectedReport.setAttribute("PoiName", poiName);
- }
- }
- RichInputListOfValues poiNameComboBox = (RichInputListOfValues)JSFUtils.findComponentInRoot("poiNameId");
- if (null != poiNameComboBox) {
- poiNameComboBox.resetValue();
- AdfFacesContext.getCurrentInstance().addPartialTarget(poiNameComboBox);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement