if (_property == null) throw new JspException("property attribute not set");
if (_value == null) throw new JspException("value attribute not set");
if (!UIComponentTag.isValueReference(_property)) throw new JspException("property attribute is no valid value reference: " + _property);
//Find parent UIComponentTag
UIComponentTag componentTag = UIComponentTag.getParentUIComponentTag(pageContext);
if (componentTag == null)
{
throw new JspException("UpdateActionListenerTag has no UIComponentTag ancestor");
}
if (componentTag.getCreated())
{
//Component was just created, so we add the Listener
UIComponent component = componentTag.getComponentInstance();
if (component instanceof ActionSource)
{
FacesContext facesContext = FacesContext.getCurrentInstance();
Application application = facesContext.getApplication();
UpdateActionListener al = new UpdateActionListener();