Documentation

Trace: Push support

(applications)

Push support

There's already a push mechanism in JVx. Simply use this article and ignore the instructions for the listener registration because ProjX already is a listener. Simply extend ProjX:

public class CustomApplication extends ProjX 
{
    public CustomApplication(UILauncher pLauncher) throws Throwable 
    {
        super(pLauncher);
    }
 
    @Override
    public void callBackResult(CallBackResultEvent pEvent)
    {
        if ("RELOAD".equals(pEvent.getInstruction()))
        {
            try
            {
                reload();
            }
            catch (Throwable th)
            {
                error(th);
            }
        }
    }
}

Don't forget to configure your CustomApplication in web.xml and/or mobile.xml. Otherwise your application won't be used.

This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information