SudeepShakya (1) [Avatar] Offline
#1
I am new to Wicket and i am using wicket 1.5.3 within Netbeans 7.1.1 and i am trying to learn by this book and I have configured all the required necessities . And have reached to Section 4.1.2. And i am having a problem with the source code.
The code for CheesrPage.java and CheesrSession.java does not work.
The problem arises in the following line for CheesrSession.java :

- > super(application,request);

And problem for CheesrPage.java :

-> return CheesrApplication.get().getCheeses();


These line show error messages.

Or do these code don't work on Wicket 1.5.3 ????

Please help me.

Thanks in Advance.
dashorst (107) [Avatar] Offline
#2
Re: Source code error in Wicket 1.5.3
> I am new to Wicket and i am using wicket 1.5.3 within
> Netbeans 7.1.1 and i am trying to learn by this book
> and I have configured all the required necessities .
> And have reached to Section 4.1.2. And i am having a
> problem with the source code.

Wicket in Action was written when Wicket 1.3 was being
developed. Several APIs have been rewritten and modified
in subsequent releases.

> The code for CheesrPage.java and CheesrSession.java
> does not work.
> he problem arises in the following line for
> CheesrSession.java :
>
> - > super(application,request);

Ditch the application parameter. Also consult the migration
guide for 1.4 and 1.5 to see the differences in APIs between
Wicket versions.

> And problem for CheesrPage.java :
>
> -> return CheesrApplication.get().getCheeses();
>
> These line show error messages.

This only gives errors if you haven't created a custom
public static CheesrApplication get() method in your
CheesrApplication class.

Martijn