dev@javaserverfaces.java.net

Re: [240-Megalisteners] Naming

From: Gurkan Erdogdu <gurkanerdogdu_at_yahoo.com>
Date: Mon, 14 Apr 2008 10:02:33 -0700 (PDT)

Yeap. If not getting exception than able to get this from event.

public void beforeConverterInvoked(ConverterInvokedEvent event){
    public Object getLocalValue(); // Gets the local, unconverted value
}

public void afterConverterInvoked(ConverterInvokedEvent event){
    public Object getConvertedValue(); //Gets the converted value after conversion
}

Thanks;

Gurkan



----- Original Message ----
From: Mark Collette <mark.collette_at_icesoft.com>
To: dev_at_javaserverfaces.dev.java.net
Sent: Monday, April 14, 2008 7:44:39 PM
Subject: Re: [240-Megalisteners] Naming

Wouldn't you want a means of getting the converted value, in a
ConverterInvokedEvent?

- Mark Collette


Gurkan Erdogdu wrote:

> I did not able to send this email to JSR-314 EG because not member of
> it. But I think maybe useful to add two other listener
> and event to the Kito D. listener list; these are
>
> - ConverterInvokedEvent/ConverterInvokedListener
>
> public ConverterInvokedListener extends EventListener{
>
> public void
> beforeConverterInvoked(ConverterInvokedEvent event) ;
> public void
> afterConverterInvoked(ConverterInvokedEvent event);
> }
>
> public ConverterInvokedEvent extends EventObject{
> public FacesContext getContext();
> public String getEventType(); //Before or After
> public boolean isExceptionThrown(); //If converter
> exception throws
> public ConverterException getException();
> public UIComponent getComponent();
> }
>
> - ValidatorInvokedEvent/ValidatorInvokedListener
>
> public ValidatorInvokedListener extends EventListener{
>
> public void
> beforeValidatorInvoked(ValidatorInvokedEvent event) ;
> public void
> afterValidatorInvoked(ValidatorInvokedEvent event);
> }
>
> public ConverterInvokedEvent extends EventObject{
> public FacesContext getContext();
> public String getEventType(); //Before or After
> public boolean isExceptionThrown(); //If converter
> exception throws
> public ValidatorException getException();
> public UIComponent getComponent();
> }
>
> What do you think about?
>
> Thanks;
>
> Gurkan Erdogdu
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com




---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_javaserverfaces.dev.java.net
For additional commands, e-mail: dev-help_at_javaserverfaces.dev.java.net


      ____________________________________________________________________________________
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ