« Return to Thread: T5.0.11: onActivate() called twice, more questions

T5.0.11: onActivate() called twice, more questions

by Tomasz Dziurko :: Rate this Message:

Reply to Author | View in Thread

Hi.
I read previous posts about problem with onActivate called twice, but
none of answers seems to suit my situation.

Here's the problem:

Abstract base page

public abstract class AbstractTopPage {

    private String context[];

    public abstract Object performActivation(String[] context);

    Object onActivate(EventContext eventContext) {
        context = new String[eventContext.getCount()];
        for (int i = 0; i < context.length; i++) {
            context[i] = eventContext.get(String.class, i);
        }

        return performActivation(context);

    }

}

and real page:

public class Start {

    @Override
    public Object performActivation(String[] context) {
        getLogger().info("TEST LOG");

        return null;
    }

    String onPassivate() {
        return "testmessage";
    }

}

and when I enter page http://localhost:8607/myApp/start/testmessage on
console I get:

11:59:25,219 [ INFO] Start - TEST LOG
11:59:25,919 [ INFO] Start - TEST LOG

so onActivate() is called two times. Anyone maybe could help?


Regards
--
Tomasz Dziurko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...

 « Return to Thread: T5.0.11: onActivate() called twice, more questions