{
throw new JspException(
"setActionListener must be inside of a ActionSource component.");
}
ELContextTag parentELContext = (ELContextTag)
findAncestorWithClass(this, ELContextTag.class);
Application application =
FacesContext.getCurrentInstance().getApplication();
SetActionListener listener = new SetActionListener();
if (_from != null)
{
if (TagUtils.isValueReference(_from))
{
String from = _from;
if (parentELContext != null)
from = parentELContext.transformExpression(from);
listener.setValueBinding(SetActionListener.FROM_KEY,
application.createValueBinding(from));
}
else
{
listener.setFrom(_from);
}
if (TagUtils.isValueReference(_to))
{
String to = _to;
if (parentELContext != null)
to = parentELContext.transformExpression(to);
listener.setValueBinding(SetActionListener.TO_KEY,
application.createValueBinding(to));
}
else