Package org.apache.myfaces.tobago.event

Examples of org.apache.myfaces.tobago.event.PageAction


      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageAction.parse(component.getId());
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent(component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + ComponentUtils.SUB_SEPARATOR + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (NumberFormatException e) {
            LOG.error("Can't parse integer value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here


      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageAction.parse(component.getId());
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent(component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + ComponentUtils.SUB_SEPARATOR + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (NumberFormatException e) {
            LOG.error("Can't parse integer value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageActionUtil.parse(component.getId());
        if (action == null) {
          LOG.error("Illegal value for PageAction :" + component.getId());
          return;
        }
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent((UIData) component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + SUBCOMPONENT_SEP + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (Exception e) {
            LOG.error("Can't parse value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageActionUtil.parse(component.getId());
        if (action == null) {
          LOG.error("Illegal value for PageAction :" + component.getId());
          return;
        }
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent((UIData) component.getParent(), action);

      switch(action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + SUBCOMPONENT_SEP + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (Exception e) {
            LOG.error("Can't parse value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageActionUtil.parse(component.getId());
        if (action == null) {
          LOG.error("Illegal value for PageAction :" + component.getId());
          return;
        }
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent((UIData) component.getParent(), action);

      switch(action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + SUBCOMPONENT_SEP + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (Exception e) {
            LOG.error("Can't parse value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      final PageAction action;
      try {
        action = PageAction.parse(component.getId());
      } catch (final Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      final PageActionEvent event = new PageActionEvent(component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          final Map map = facesContext.getExternalContext().getRequestParameterMap();
          final Object value = map.get(clientId + ComponentUtils.SUB_SEPARATOR + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (final NumberFormatException e) {
            LOG.error("Can't parse integer value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      final PageAction action;
      try {
        action = PageAction.parse(component.getId());
      } catch (final Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      final PageActionEvent event = new PageActionEvent(component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          final Map map = facesContext.getExternalContext().getRequestParameterMap();
          final Object value = map.get(clientId + ComponentUtils.SUB_SEPARATOR + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (final NumberFormatException e) {
            LOG.error("Can't parse integer value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageAction.parse(component.getId());
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent(component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + ComponentUtils.SUB_SEPARATOR + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (NumberFormatException e) {
            LOG.error("Can't parse integer value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageActionUtil.parse(component.getId());
        if (action == null) {
          LOG.error("Illegal value for PageAction :" + component.getId());
          return;
        }
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent((UIData) component.getParent(), action);

      switch(action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + SUBCOMPONENT_SEP + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (Exception e) {
            LOG.error("Can't parse value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

      LOG.debug("actionId = '" + actionId + "'");
      LOG.debug("clientId = '" + clientId + "'");
    }
    if (actionId != null && actionId.equals(clientId)) {

      PageAction action;
      try {
        action = PageActionUtil.parse(component.getId());
        if (action == null) {
          LOG.error("Illegal value for PageAction :" + component.getId());
          return;
        }
      } catch (Exception e) {
        LOG.error("Illegal value for PageAction :" + component.getId());
        return;
      }
      PageActionEvent event = new PageActionEvent((UIData) component.getParent(), action);

      switch (action) {
        case TO_PAGE:
        case TO_ROW:
          Map map = facesContext.getExternalContext().getRequestParameterMap();
          Object value = map.get(clientId + SUBCOMPONENT_SEP + "value");
          try {
            event.setValue(Integer.parseInt((String) value));
          } catch (Exception e) {
            LOG.error("Can't parse value for action " + action.name() + ": " + value);
          }
          break;
        default:
          // nothing more to do
      }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.tobago.event.PageAction

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.