Advertisement
psi_mmobile

Untitled

Dec 18th, 2018
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.91 KB | None | 0 0
  1.             String firstDocumentFilePath = (String)selectedRow.getAttribute("FirstDocumentFilePath");
  2.             String firstDocumentContentType = (String)selectedRow.getAttribute("FirstDocumentContentType");
  3.  
  4.             System.out.println("FILE PATH : " + firstDocumentFilePath + " FILE CONTENT TYPE : " +
  5.                                firstDocumentContentType);
  6.  
  7.             RichRegion attachDocRegion = (RichRegion)JSFUtils.findComponentInRoot("r2");
  8.             if (null == firstDocumentFilePath || firstDocumentContentType.equals("1") ||
  9.                 firstDocumentContentType.equals("2") || firstDocumentContentType.equals("13")) {
  10.                 if (null != attachDocRegion) {
  11.                     attachDocRegion.setVisible(false);
  12.                 }
  13.             } else {
  14.                 if (null != attachDocRegion) {
  15.                     attachDocRegion.setVisible(true);
  16.                 }
  17.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement