You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Jörg Schaible <jo...@swisspost.com> on 2015/08/21 12:13:16 UTC

Migration 1.4 -> 7.0: org.apache.wicket.markup.html.link.PageLink

Hi,

I have never worked with Wicket, but should migrating an application from 
1.4.x to 7.0. I am searching a replacement for 
org.apache.wicket.markup.html.link.PageLink. It no longer available and is 
not mentioned anywhere in the migration guides.

Following elements are added in the constructor of a derived WebPage:

================= %< ===============
 final DataDetachableModel DataDetachableModel = new 
DataDetachableModel(model);
 add(new FilterForm("filterForm", dataDetachableModel));
 add(new DataTable("data", dataDetachableModel));
 add(new PageLink("newData", DataCreatePage.class));
================= %< ===============

The PageLink class no longer exists ...

What can I use now?

Cheers,
Jörg


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


Re: Migration 1.4 -> 7.0: org.apache.wicket.markup.html.link.PageLink

Posted by Sébastien Gautrin <se...@gmail.com>.
You should most likely do incremental migration, e.g.:

  * 1.4.x -> 1.5.x
  * 1.5.x -> 6.0.x
  * 6.0.x -> 7.0.x

In between each migration, check what is now deprecated, which then will 
most likely have information about its replacements.

As for your specific issue, there's some information that seems somewhat 
relative to that in the Wicket 7 migration guide

>
>           InlineFrame uses IPageProvider WICKET-5347
>           <https://issues.apache.org/jira/browse/WICKET-5347>
>
> IPageLink has been removed because it was superseded by IPageProvider. 
> Its last usage has been removed from InlineFrame
>
Having still yet to migrate from 1.5.x I cannot help you more though.


On 21/08/15 12:13, Jörg Schaible wrote:
> Hi,
>
> I have never worked with Wicket, but should migrating an application from
> 1.4.x to 7.0. I am searching a replacement for
> org.apache.wicket.markup.html.link.PageLink. It no longer available and is
> not mentioned anywhere in the migration guides.
>
> Following elements are added in the constructor of a derived WebPage:
>
> ================= %< ===============
>   final DataDetachableModel DataDetachableModel = new
> DataDetachableModel(model);
>   add(new FilterForm("filterForm", dataDetachableModel));
>   add(new DataTable("data", dataDetachableModel));
>   add(new PageLink("newData", DataCreatePage.class));
> ================= %< ===============
>
> The PageLink class no longer exists ...
>
> What can I use now?
>
> Cheers,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


Re: Migration 1.4 -> 7.0: org.apache.wicket.markup.html.link.PageLink

Posted by Martin Grigorov <mg...@apache.org>.
Hi Sebastien,

Martijn contacted Apache Infra about that earlier today.

Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Aug 21, 2015 at 12:25 PM, Sébastien Gautrin <
sebastien.gautrin@gmail.com> wrote:

> Hi Martin,
>
> I just noted something while writing my answer to this thread: the link on
> http://wicket.apache.org/learn/#guide for Wicket 6 migration guide is
> broken, or rather the redirection of http://s.apache.org/wicket6migrate
> is broken: it leads to
> https://cwiki.apache.org/confluence/display/WICKET/Migrating+to+Wicket+6.0
> when the actual migration guide is at
> https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+6.0
>
>
>
> On 21/08/15 12:20, Martin Grigorov wrote:
>
>> Hi,
>>
>> The easy fix is: use BookmarkablePageLink.
>>
>> The class has been deprecated for 1.5 and removed for 6.x, I think.
>> I will be easier for you if you upgrade from 1.4 to 1.5, then to 6.x and
>> finally to 7.0.0.
>> This way you will see the deprecation warnings and the new suggestions.
>>
>>
>> Martin Grigorov
>> Wicket Training and Consulting
>> https://twitter.com/mtgrigorov
>>
>> On Fri, Aug 21, 2015 at 12:13 PM, Jörg Schaible <
>> joerg.schaible@swisspost.com> wrote:
>>
>> Hi,
>>>
>>> I have never worked with Wicket, but should migrating an application from
>>> 1.4.x to 7.0. I am searching a replacement for
>>> org.apache.wicket.markup.html.link.PageLink. It no longer available and
>>> is
>>> not mentioned anywhere in the migration guides.
>>>
>>> Following elements are added in the constructor of a derived WebPage:
>>>
>>> ================= %< ===============
>>>   final DataDetachableModel DataDetachableModel = new
>>> DataDetachableModel(model);
>>>   add(new FilterForm("filterForm", dataDetachableModel));
>>>   add(new DataTable("data", dataDetachableModel));
>>>   add(new PageLink("newData", DataCreatePage.class));
>>> ================= %< ===============
>>>
>>> The PageLink class no longer exists ...
>>>
>>> What can I use now?
>>>
>>> Cheers,
>>> Jörg
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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: Migration 1.4 -> 7.0: org.apache.wicket.markup.html.link.PageLink

Posted by Sébastien Gautrin <se...@gmail.com>.
Hi Martin,

I just noted something while writing my answer to this thread: the link 
on http://wicket.apache.org/learn/#guide for Wicket 6 migration guide is 
broken, or rather the redirection of http://s.apache.org/wicket6migrate 
is broken: it leads to 
https://cwiki.apache.org/confluence/display/WICKET/Migrating+to+Wicket+6.0 
when the actual migration guide is at 
https://cwiki.apache.org/confluence/display/WICKET/Migration+to+Wicket+6.0


On 21/08/15 12:20, Martin Grigorov wrote:
> Hi,
>
> The easy fix is: use BookmarkablePageLink.
>
> The class has been deprecated for 1.5 and removed for 6.x, I think.
> I will be easier for you if you upgrade from 1.4 to 1.5, then to 6.x and
> finally to 7.0.0.
> This way you will see the deprecation warnings and the new suggestions.
>
>
> Martin Grigorov
> Wicket Training and Consulting
> https://twitter.com/mtgrigorov
>
> On Fri, Aug 21, 2015 at 12:13 PM, Jörg Schaible <
> joerg.schaible@swisspost.com> wrote:
>
>> Hi,
>>
>> I have never worked with Wicket, but should migrating an application from
>> 1.4.x to 7.0. I am searching a replacement for
>> org.apache.wicket.markup.html.link.PageLink. It no longer available and is
>> not mentioned anywhere in the migration guides.
>>
>> Following elements are added in the constructor of a derived WebPage:
>>
>> ================= %< ===============
>>   final DataDetachableModel DataDetachableModel = new
>> DataDetachableModel(model);
>>   add(new FilterForm("filterForm", dataDetachableModel));
>>   add(new DataTable("data", dataDetachableModel));
>>   add(new PageLink("newData", DataCreatePage.class));
>> ================= %< ===============
>>
>> The PageLink class no longer exists ...
>>
>> What can I use now?
>>
>> Cheers,
>> Jörg
>>
>>
>> ---------------------------------------------------------------------
>> 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: Migration 1.4 -> 7.0: org.apache.wicket.markup.html.link.PageLink

Posted by Jörg Schaible <jo...@swisspost.com>.
Martin Grigorov wrote:

> Hi,
> 
> The easy fix is: use BookmarkablePageLink.
> 
> The class has been deprecated for 1.5 and removed for 6.x, I think.
> I will be easier for you if you upgrade from 1.4 to 1.5, then to 6.x and
> finally to 7.0.0.
> This way you will see the deprecation warnings and the new suggestions.

Thanks.

Cheers,
Jörg


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


Re: Migration 1.4 -> 7.0: org.apache.wicket.markup.html.link.PageLink

Posted by Martin Grigorov <mg...@apache.org>.
Hi,

The easy fix is: use BookmarkablePageLink.

The class has been deprecated for 1.5 and removed for 6.x, I think.
I will be easier for you if you upgrade from 1.4 to 1.5, then to 6.x and
finally to 7.0.0.
This way you will see the deprecation warnings and the new suggestions.


Martin Grigorov
Wicket Training and Consulting
https://twitter.com/mtgrigorov

On Fri, Aug 21, 2015 at 12:13 PM, Jörg Schaible <
joerg.schaible@swisspost.com> wrote:

> Hi,
>
> I have never worked with Wicket, but should migrating an application from
> 1.4.x to 7.0. I am searching a replacement for
> org.apache.wicket.markup.html.link.PageLink. It no longer available and is
> not mentioned anywhere in the migration guides.
>
> Following elements are added in the constructor of a derived WebPage:
>
> ================= %< ===============
>  final DataDetachableModel DataDetachableModel = new
> DataDetachableModel(model);
>  add(new FilterForm("filterForm", dataDetachableModel));
>  add(new DataTable("data", dataDetachableModel));
>  add(new PageLink("newData", DataCreatePage.class));
> ================= %< ===============
>
> The PageLink class no longer exists ...
>
> What can I use now?
>
> Cheers,
> Jörg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>