On Thu, Apr 16, 2009 at 1:31 AM, daniel joyce <[email protected]> wrote:
> This doesn't seem to work in a page model file
>
>   �...@inject
>   �...@symbol(value=SymbolConstants.PRODUCTION_MODE)
>    private Boolean productionMode;
> I get a nullpointerexception when I try and use it.

Try boolean instead of Boolean.

> Also, is the magic method name onPageLoad() for setting up vars at
> page instance load time?

It's onPageLoaded(). Or you can use any method name, but annotate it
with @PageLoaded. The documentation of page events is here:
http://tapestry.apache.org/tapestry5/guide/lifecycle.html.

-- 
Thiago

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to