JSF tips

MethodBinding
      MethodBinding mb = new MethodBinding() {
        public Object invoke(FacesContext facesContext, Object[] objects) 
          throws EvaluationException, MethodNotFoundException {
          test();
        return null;
      }
      public Class getType(FacesContext facesContext) 
        throws MethodNotFoundException {
        return String.class;
      }
      };