I'm pretty new to Wicket, so please excuse me if this is a simple task. I tried to look for examples but came up empty.
Here's the scenario. Lets say that I have a customer information panel with 25 data points (name, dob, address, phone, etc). I want to reuse this panel in many different pages on a site. Now lets say I have the following criteria on 3 different pages the panel appears on:
Is there a way to use the same panel (to reduce code duplication), but control its components based on the current page the panel is loaded into?
Thanks for any help!
I would suggest against changing the visibility and editability implicitly like this. Instead consider making it explicit based on constructor arguments for the component or additional methods on the custom component.