Yes, the parameter is present. The URL looks like

http://localhost:9080/myapp/app/?wicket:bookmarkablePage=%3Axxx.xxx.xxx.wick
et.MyPage&id=135

-----Ursprüngliche Nachricht-----
Von: Martijn Dashorst [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 22. Januar 2008 12:13
An: users@wicket.apache.org
Betreff: Re: getPageParameters() NullPointer

Stating the obvious, but did you check if the parameter was actually present
in the URL?
Martijn

On 1/22/08, Stephan Koch <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm experiencing a problem using getPageParameters().
>
> The parameter id is passed to MyPage:
> setResponsePage(MyPage.class, new PageParameters("id="+evalId));
>
> In the constructor of MyPage I try to access the parameter id:
> Integer evalId = Integer.parseInt(getPageParameters().getKey("id"));
>
> This fails with a NullPointerException. I thought the usage of
> PageParameters was pretty straightforward- did I miss something here?
>
> I'm using Wicket 1.3.
>
> Regards,
> Stephan
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to