+1, though maybe with a different name?

-- Adam


On 9/22/06, Arjuna Wijeyekoon <[EMAIL PROTECTED]> wrote:

Does anyone mind if I make the following method in
UIXComponentBase protected?
It is a method that component extensions (and components in other
packages)
would find very useful.
It is used to deliver a faces event to a method binding listener, as in
the
following:

<tr:commandButton actionListener="#{mybean.myActionListener}"/>

  /**
   * Broadcast an event to a MethodBinding.
   */
  final void __broadcast(
    FacesEvent event,
    MethodBinding method) throws AbortProcessingException
  {
    if (method != null)
    {
      try
      {
        FacesContext context = getFacesContext();
        method.invoke(context, new Object[] { event });
      }
      catch (EvaluationException ee)
      {
        Throwable t = ee.getCause();
        // Unwrap AbortProcessingExceptions
        if (t instanceof AbortProcessingException)
          throw ((AbortProcessingException) t);
        throw ee;
      }
    }
  }


thanks
Arjuna


Reply via email to