Return-Path: X-Original-To: apmail-wicket-users-archive@minotaur.apache.org Delivered-To: apmail-wicket-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3A54DC189 for ; Sat, 18 Aug 2012 11:13:30 +0000 (UTC) Received: (qmail 18839 invoked by uid 500); 18 Aug 2012 11:13:28 -0000 Delivered-To: apmail-wicket-users-archive@wicket.apache.org Received: (qmail 18670 invoked by uid 500); 18 Aug 2012 11:13:28 -0000 Mailing-List: contact users-help@wicket.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@wicket.apache.org Delivered-To: mailing list users@wicket.apache.org Received: (qmail 18616 invoked by uid 99); 18 Aug 2012 11:13:26 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2012 11:13:26 +0000 Received: from localhost (HELO mail-yx0-f173.google.com) (127.0.0.1) (smtp-auth username mgrigorov, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sat, 18 Aug 2012 11:13:25 +0000 Received: by yenm4 with SMTP id m4so5086774yen.32 for ; Sat, 18 Aug 2012 04:13:24 -0700 (PDT) Received: by 10.236.170.106 with SMTP id o70mr13201330yhl.10.1345288404092; Sat, 18 Aug 2012 04:13:24 -0700 (PDT) MIME-Version: 1.0 Received: by 10.100.109.4 with HTTP; Sat, 18 Aug 2012 04:12:53 -0700 (PDT) In-Reply-To: <10B15B72-B0B5-46CB-8CB1-3961FDCDE968@thehungersite.com> References: <10B15B72-B0B5-46CB-8CB1-3961FDCDE968@thehungersite.com> From: Martin Grigorov Date: Sat, 18 Aug 2012 14:12:53 +0300 Message-ID: Subject: Re: Panel Inheritance with TransparentWebMarkupContainer To: users@wicket.apache.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi, TransparentWebMarkupContainer is a container which can be used when you don't want its children to know about it. For example you can use it to manipulate the attributes of or elements in a base page. This way the children pages can just do "add(someOtherComponent)" instead of "bodyComponent.add(someOtherComponent)". On Thu, Aug 16, 2012 at 8:52 PM, brad steiner wrote: > Can you please elaborate on the use of TransparentWebMarkupContainer in 1= .5 for use with Panel inheritance? I have a page with tabbed panels, each o= f which has its own left nav. Each panel subclass thus inherits from the ba= se class / markup where the corresponding left nav is defined. When I attem= pt this using panels I receive an error indicating the tag i= s not present, presumably because it's not expected within the tag(?). I've switched my base class to inherit from TransparentWebMarku= pContainer instead of Panel but now "[Panel]" is displayed on the page with= no indication my content panel markup is being read. Obviously I would pre= fer not to duplicate the left nav code across all components in a given pan= el. Below is my markup using the TransparentWMC approach. > > Thanks in advance for your help. > Brad > > > > > . > . > . >
>
> >
> > > > > > >

Welcome to the Main Content Panel!

> . > . > . >
> > > final AbstractTab inboundShipmentTab =3D new AbstractTab(new Model<>("Inb= ound Shipments")) { > @Override > public TransparentWebMarkupContainer getPanel(final String panelId) { > return new SubclassPanel(panelId); > } > }; > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org > For additional commands, e-mail: users-help@wicket.apache.org > --=20 Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org For additional commands, e-mail: users-help@wicket.apache.org