Yesterday I ran into a wicket blog that does'nt recommend use of anonymous inner classes that refer to the contained page class?
I have my component PropertyModels pointing to the contained page properties.
In the form onSubmit, i access the Page properties
class LoginPage extends WebPage{
LoginPage( ){
add(new Form("form"){
onSubmit( ){
System.out.println(LoginPage.this.name);
}
}
So if my understand is correct, this programming pattern is not a wicket best practice?
thanks
karthik