You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jens Zastrow <ma...@jens-zastrow.de> on 2010/05/10 18:17:15 UTC

[wiQuery] Custom Link to wiQuery Page doest not initialize target page

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: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [wiQuery] Custom Link to wiQuery Page doest not initialize target page

Posted by Ernesto Reinaldo Barreiro <re...@gmail.com>.
Can you create a quick-start and attach it to a new issue at

http://code.google.com/p/wiquery/issues/list

Regards,

Ernesto

On Mon, May 10, 2010 at 6:17 PM, Jens Zastrow <ma...@jens-zastrow.de> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: [wiQuery] Custom Link to wiQuery Page doest not initialize target page

Posted by Sam Zilverberg <sa...@gmail.com>.
Hi,

I have the same problem, but my page is a non-bookmarkable page which has
only one constructor : public MyPage(Page backpage, Model<T> model).

I don't see how setResponsePage can solve the problem for me unless I create
a default constructor.
I'm reluctant to do so because the page is some sort of a "edit" page in
which the user can edit the passed model object and I don't want this page
to be accessible in anyway but through a link that creates this specific
page for a specific model.

Any help will be greatly appreciated!

Re: [wiQuery] Custom Link to wiQuery Page doest not initialize target page

Posted by Zilvinas Vilutis <ci...@gmail.com>.
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:   cikasfm@gmail.com


On Mon, May 10, 2010 at 9:17 AM, Jens Zastrow <ma...@jens-zastrow.de> 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: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>