Package javax.faces.component

Examples of javax.faces.component.ActionSource.addActionListener()


        if (this.binding != null)
        {
            b = this.binding.getValueExpression(faceletContext, ActionListener.class);
        }
        ActionListener listener = new LazyActionListener(this.listenerType, b);
        as.addActionListener(listener);
    }

    /**
     * TODO: Document me!
     */
 
View Full Code Here


     
      if(contentDisposition != null)
        contentDispositionVE= contentDisposition.getValueExpression(faceletContext, String.class);
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new FileDownloadActionListener(valueVE, contentDispositionVE));
    }
  }
}
View Full Code Here

        uniqueVE = unique.getValueExpression(faceletContext, Object.class);
       
      ValueExpression valueVE = value.getValueExpression(faceletContext, Object.class);
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new Collector(addToVE, removeFromVE, valueVE, uniqueVE));
    }
  }
}
View Full Code Here

      if(postProcessor != null) {
        postProcessorME = postProcessor.getMethodExpression(faceletContext, null, new Class[]{Object.class});
      }
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new DataExporter(targetVE, typeVE, fileNameVE, pageOnlyVE, selectionOnlyVE, encodingVE, preProcessorME, postProcessorME));
    }
  }

}
View Full Code Here

       
        if(parent instanceof ActionSource) {
      ValueExpression targetVE = target.getValueExpression(faceletContext, Object.class);
     
      ActionSource actionSource = (ActionSource) parent;
      actionSource.addActionListener(new ResetInputActionListener(targetVE));
    }
        else {
            throw new TagException(this.tag, "ResetInput can only be attached to ActionSource components.");
        }
  }
View Full Code Here

    if (!(component instanceof ActionSource)) {
      // TODO Message resource i18n
      throw new JspException("Component "+ component.getClass().getName() + " is not instanceof ActionSource");
    }
    ActionSource actionSource = (ActionSource) component;
    actionSource.addActionListener(new PopupActionListener(forComponent));
    return (SKIP_BODY);
  }

  /**
   * <p>Release references to any acquired resources.
View Full Code Here

                                                            Object.class);
      ActionSource actionSource= (ActionSource) parent;
      SetActionListener listener = new SetActionListener();
      listener.setValueExpression("from", fromExpression);
      listener.setValueExpression("to", toExpression);
      actionSource.addActionListener(listener);
    }
  }

  private final TagAttribute _from;
  private final TagAttribute _to;
View Full Code Here

      {
        ValueExpression valueExp = _value.getValueExpression(faceletContext, Object.class);
        listener.setValueExpression(ReturnActionListener.VALUE_KEY,valueExp);
      }

      actionSource.addActionListener(listener);
    }
  }

  private final TagAttribute _value;
}
View Full Code Here

                                                        Object.class,
                                                        _METHOD_PARAMS);
      listener.setMethod(me);

      ActionSource actionSource = (ActionSource)parent;
      actionSource.addActionListener(listener);
    }
  }

  static private final Class[] _METHOD_PARAMS =
    new Class[]{FacesContext.class, OutputStream.class};
View Full Code Here

  {
    if(ComponentHandler.isNew(parent))
    {
      ActionSource actionSource = (ActionSource)parent;
      ResetActionListener listener = new ResetActionListener();
      actionSource.addActionListener(listener);
    }
  }
}
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.