Eelco,

Thank you, but I don't think this is what I need. Those examples use 
static content panels, in a sense that IDs of the components are known, 
while I am looking for dymanic content. I will give an example Using 
pseudocode:

Container c = super.getMainContentPane();

if (groupIsPresent) {
  c.add(new MyLabel("Section Header));
  c.add(getGroupList());
else {
  c.add(new MyCreateGroupLink());
}


Regards,

Slava Imeshev







"Eelco Hillenius" <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
06/25/2007 02:45 PM
Please respond to
wicket-user@lists.sourceforge.net


To
wicket-user@lists.sourceforge.net
cc

Subject
Re: [Wicket-user] Re-using page's look and feel






> May be I didn't explain it right. I am not looking for "markup 
inheritance". I am looking to create a reusable component, let say, 
BasePage, expose accessors to containers, define markup for it as 
described, and then let all other pages extend the class, w/o ever 
touching page markup/layout. Example:
>
> class MtPage extends BasePage {
>
>  MyPage() {
>      getHeaderComponent().doSomehting();
>      getLeftNavigationPane().add(new MyPageNavigationBar());
>      getMainContentPane().add(new MyPageMainContent());
>   }
> }

You would indeed use panels for that. See for instance the template
example in wicket-examples.

Eelco

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to