throws IOException, FacesException, ELException {
if (parent instanceof ActionSource) {
if (ComponentHandler.isNew(parent)) {
ActionSource actionSource = (ActionSource) parent;
if (forComponent.isLiteral()) {
actionSource.addActionListener(new PopupActionListener(forComponent.getValue()));
} else {
ValueExpression forValueExpression = forComponent.getValueExpression(faceletContext, String.class);
actionSource.addActionListener(new ValueExpressionPopupActionListener(forValueExpression));
}
}