You can set the Panel non-editable, and all those Form components will
become non-editable.


On Wed, Nov 28, 2012 at 4:06 AM, Thomas Götz <t...@decoded.de> wrote:

> Hi there,
>
> I'm currently implementing a panel that is used for viewing and editing of
> some entity. I wonder if there is an elegant solution for this.
>
> The situation:
> all my view/edit panels have a common abstract parent class (Panel),
> providing some general markup, i.e. I'm using <wicket:extend> in my
> concrete Panel implementation. Not every component is editable, only some.
> Currently I have a solution where I'm using a flag (isEditMode) and some
> if/else constructs to create either a label or e.g. a TextField. I keep the
> markup for the FormComponents as Fragments or separate Panels. Any more
> sophisticated ideas on how to implement this? ;-)
>
> Cheers,
>    -Tom
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to