A doubt regarding best-practices

2009-02-05 Thread Daniel Ferreira Castro
In lots of books about wicket I can see a Page implementation declaring a Form as an inner class of the Page. Of course that this is, in part, a personal preference. I think, in my opinion, that the approach of declaring the Form as an inner class makes the code more dirty. I mean, the Page class

Re: A doubt regarding best-practices

2009-02-05 Thread Leszek Gawron
Daniel Ferreira Castro wrote: In lots of books about wicket I can see a Page implementation declaring a Form as an inner class of the Page. Of course that this is, in part, a personal preference. I think, in my opinion, that the approach of declaring the Form as an inner class makes the code

Re: A doubt regarding best-practices

2009-02-05 Thread Martin Makundi
I prefer to declare the Form as a top class instead inner class. That is ok. This way you can also re-use the same form from different pages/panels. If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? Depends on your

Re: A doubt regarding best-practices

2009-02-05 Thread Martin Makundi
If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? Wicket works both ways. No, Form doesn't extend WebMarkupContainerWithAssociatedMarkup. Ah.. might be true, if you want it to have its own markup, you will embed it into