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
}