{
throw new JspException("fileName attribute not set");
}
// find the parent UIComponentTag which should be an ActionSource.
UIComponentTag componentTag = UIComponentTag
.getParentUIComponentTag(pageContext);
if (componentTag == null)
{
throw new JspException("ExporterActionListenerTag has no UIComponentTag ancestor");
}
if (componentTag.getCreated())
{
// if the component was just created, so we add the Listener.
UIComponent component = componentTag.getComponentInstance();
if (component instanceof ActionSource)
{
ExporterActionListener exporterActionListener = new ExporterActionListener();