Why don't you try: setResponsePage( MyPage.class );

In your case - the constructor is invoked earlier, that may cause problems.

Žilvinas Vilutis

Mobile:   (+370) 652 38353
E-mail:   [email protected]


On Mon, May 10, 2010 at 9:17 AM, Jens Zastrow <[email protected]> wrote:

> Hi experts,
>
> The following code (Link-example-code) breaks all of my wiQuery-enabled
> Pages.
>
> add(new Link<MyObject>("link", listItem.getModel()) {
>    public void onClick() {
>         setResponsePage(new MyPage());
>   }
> }
>
> The specified MyPage() ist entered, but without initializing the
> "wiQuery-Subsystem".
> Only after page 'reload' with browser-button everything (js etc.) is loaded
> and initialized.
>
> This only happens with Links, not with BookmarkablePagelinks.
> I'm using wicket 1.4.8 und wiquery 1.0.1.
>
> Anybody facing the same problem?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to