May be I misunderstood your requirements, but did you have a look at all the examples? They work like it: a common part of the page (head of page) including a link (I admit with the example very simple navigation) and a "main" section.
The "trick" is the Border component. In case you're working on head, you might try markup inheritance, which is similar to Border but more easy to use. Juergen On 7/1/05, Christopher L Merrill <[EMAIL PROTECTED]> wrote: > Eelco Hillenius wrote: > > Haven't done it, but doesn't seem like it would be a problem. I've been > > working a bit on a site navigation bar component; far from done, but you > > can take a look at it in HEAD (wicket-extensions and wicket-examples). > > > > Maybe you could give further details of exactly how this would look like? > > All the pages on my site look essentially the same, except for the > title, navigation and a central "content" area. > Ideally, I would have a single page class, a navigation component class > and an application class. > > Somewhere (the application?) there would be a list of all the pages in the > site (provided in code or XML, maybe?). There would be a corresponding > list of files containing the content for each page. > > The page class would pull content for the main body from the corresponding > content file (stripping everything outside the body tags) and insert it > into the central content area. > > I suppose each page would need to have some sort of identifier to allow > links from one page to another. > > > > The biggest obstacle I see to this is the external linking issue. If > each BookmarkableLink has to be a separate class, then I'm doomed, because > I want all my pages bookmarkable -- which would mean I would have to write > a new class for every page in the system. That would defeat part of my > purpose. > > Sounds like maybe Wicket isn't the right tool, after all :( > > C > > > -- > ------------------------------------------------------------------------- > Chris Merrill | http://www.webperformanceinc.com > Web Performance Inc. > > Website Load Testing and Stress Testing Software > ------------------------------------------------------------------------- > > > ------------------------------------------------------- > SF.Net email is sponsored by: Discover Easy Linux Migration Strategies > from IBM. Find simple to follow Roadmaps, straightforward articles, > informative Webcasts and more! Get everything you need to get up to > speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click > _______________________________________________ > Wicket-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wicket-user > ------------------------------------------------------- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
