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