Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

hook aspect with echo2 not working

Developers
2012-05-11
2013-04-29
  • Fabiana Bugli
    Fabiana Bugli
    2012-05-11

    Hi,
    in Roma 3 with Echo2 I'm trying to use the hook aspect but it doesn't work (no errors and nothing happens…)
    I'm trying like in the example:
    @HookAction(hookAroundAction="it.maggioli.testautomatici.domain.MaggioliLogin.login",
    scope=HookScope.APPLICATION)
    public void hook() {
    // DISABLE THE LOGIN
    System.out.println("Application in mantainance: login disabled");
    RomaFrontend.flow().forward(
    new MessageOk("login", "Login temporary disabled").
    setMessage("Login is temporary disabled, please try in few minutes"),
    "screen:popup:alert");
    }

    is it possible to catch the focus out from a textfield of a form in a pojo? I wood like
    to call a function when the username is inserted….
    thank you!!

     
  • Fabiana Bugli
    Fabiana Bugli
    2012-05-11

    Sorry….I meant: in Roma 2….instead of Roma 3….