Craig R. McClanahan wrote:
>     // Return an Action for processing a logon
>     public Action getLogon() {
>       return new Action() {
>         public String invoke() {
>           return logon();
>         }
>       }
>     }
>

Very cool technique =:)

But this has to be the coolest trick yet:

>         // Add an error message
>         FacesContext.getCurrentInstance().addMessage(...);

Hey, why bother passing around a context when you can get the thread to do it? Quite fancy =:)

http://java.sun.com/webservices/docs/1.2/api/javax/faces/context/FacesContext.html

-Ted.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to