Package com.liferay.faces.util.model

Examples of com.liferay.faces.util.model.RowMarker


    if (dataModel != null) {

      if (dataModel instanceof RowMarker) {

        RowMarker rowMarker = (RowMarker) dataModel;

        RowMarks rowMarks = rowMarker.getRowMarks();

        if (rowMarks != null) {

          if (componentId.equals(COMP_ID_MARK_ALL) || componentId.equals(COMP_ID_UNMARK_ALL)) {
            boolean checked = componentId.equals(COMP_ID_MARK_ALL);

            if (checked) {
              rowMarks.markAll();
            }
            else {
              rowMarks.unmarkAll();
            }
          }
          else if (componentId.equals(COMP_ID_DELETE)) {

            try {
              int totalDeletedRows = rowMarker.deleteMarkedRows();
              logger.debug("Deleted {0} rows.", totalDeletedRows);
              addGlobalSuccessInfoMessage();
            }
            catch (Exception e) {
              logger.error(e.getMessage(), e);
View Full Code Here

TOP

Related Classes of com.liferay.faces.util.model.RowMarker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.