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
}