Advertisement
psi_mmobile

Untitled

Feb 4th, 2020
284
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. catch (RowInconsistentException rie) {
  2. RichPopup errMsgPop = (RichPopup)JSFUtils.findComponentInRoot("errMsgPop");
  3. if (null != errMsgPop) {
  4. RichPopup.PopupHints hints = new RichPopup.PopupHints();
  5. errMsgPop.show(hints);
  6. }
  7. }
  8.  
  9.  
  10. <af:popup id="errMsgPop">
  11. <af:dialog id="errMsgDlg" title="" type="ok"
  12. dialogListener="#{editWorkTimeBean.errMsgDialogListener}">
  13. <af:outputText value="#{res.ewt_msg_err}" id="aot1"/>
  14. </af:dialog>
  15. </af:popup>
  16.  
  17. public void errMsgDialogListener(DialogEvent dialogEvent) {
  18. if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok) {
  19. ViewObject vo = null;
  20. if (null != ADFUtils.getDCBindingContainer().findIteratorBinding(MAIN_TABLE_ITERATOR)) {
  21. vo = ADFUtils.findIterator(MAIN_TABLE_ITERATOR).getViewObject();
  22. } else {
  23. vo = (ViewObjectImpl)getMainViewObject();
  24. }
  25. vo.executeQuery();
  26. refreshTheMainTable();
  27. }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement