http://issues.apache.org/jira/browse/ADFFACES-190
On 9/22/06, Arjuna Wijeyekoon <[EMAIL PROTECTED]> wrote:
fine with me. I'll file a jira
On 9/22/06, Adam Winer <[EMAIL PROTECTED]> wrote:
>
> Hrm, but it's event-specific (takes a FacesEvent, deals
> with AbortProcessingException) so something like
> "broadcastToMethodBinding()" works for me.
>
> -- Adam
>
>
> On 9/22/06, Arjuna Wijeyekoon < [EMAIL PROTECTED]> wrote:
> >
> > protected void callMethodBinding(FacesEvent, MethodBinding) throws
> > AbortProcessingException
> > ?
> >
> > other names: executeMethodBinding, invokeMethodBinding, invokeMethod
> >
> > I think I prefer "invokeMethodBinding".
> >
> > On 9/22/06, Adam Winer <[EMAIL PROTECTED]> wrote:
> > >
> > > +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
> > > >
> > > >
> > >
> > >
> >
> >
>
>