Its pretty basic... and I havent put in String[] performPassivate method
yet.

just a word of warning... it _is_ useful for some pages, and not for
others... too many if (context.length > 0) var0 = context[0];

Better would be having a conversion to String[] then I could move it out of
the back class and use 'normal' onActivate methods... Please, *anyone*, how
would I do this?

in the mean time, here is the bulk of it (enough to work)
//in base page class...

private String context[];

public abstract void 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);
        }
        Object page = componentResources.getPage();

        //handle admin pages - TODO

        //handle login required pages
        if (page instanceof AuthenticatedPage
                && !(page instanceof Login || isLoggedIn())) {
            loginPage.setNextPage(page.getClass(), context);
            return loginPage;
        }

        performActivation(context);
        return null; //return page?
    }


On Sat, May 10, 2008 at 12:30 PM, Mark W. Shead <[EMAIL PROTECTED]> wrote:

> Nicholas,
>
> Would you mind sharing code snippets of what you are doing?
>
> Mark
>
> On May 9, 2008, at 11:20 AM, nicholas Krul wrote:
>
>  Thanks, works just fine... so now everything is bundled into a String[]
>> anyway...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

Reply via email to