Re: Subclassing FormComponentPanel / propagating setRequired() to child components ?

2012-10-01 Thread Tobias Gierke
Hi, I decided to just override isRequired() on the child components and let it delegate to FormComponentPanel.this#isRequired() ... didn't test it yet but I suppose it should work. Thanks for your reply! Tobias Hi, Don't think you have to propagate #setRequired() to child components becau

Re: Subclassing FormComponentPanel / propagating setRequired() to child components ?

2012-10-01 Thread Sebastien
Hi, Don't think you have to propagate #setRequired() to child components because the whole formcomponent is required. But I think you could overrive #checkRequired() - which is not final - to fit best your use case (which is called underneath by #validate()) Hope this helps, Sebastien. On Mon, O

Subclassing FormComponentPanel / propagating setRequired() to child components ?

2012-10-01 Thread Tobias Gierke
Hi, With setRequired() being final, I'm not sure how to propagate a setRequired() call to my child components ... I found some discussion about the pro's and con's of having a final setRequired() method () ( http://apache-wicket.1842946.n4.nabble.com/VOTE-setRequired-final-or-not-td1903843.htm