ValueExpression toExpression= _to.getValueExpression(faceletContext,
Object.class);
ActionSource actionSource= (ActionSource) parent;
SetActionListener listener = new SetActionListener();
listener.setValueBinding(SetActionListener.FROM_KEY,
new LegacyValueBinding(fromExpression));
listener.setValueBinding(SetActionListener.TO_KEY,
new LegacyValueBinding(toExpression));
actionSource.addActionListener(listener);
}
}