XPage: Nested Panel Custom Control

If I’ve created a custom control with a single panel and class applied, should I be able to add it to my xpage and nest other panels within it?

DDE won’t let me drop a panel in it. I can move the panel inside the custom control via the tree outline, but the content on the panel disappears and won’t render.

Thanks much.

Subject: Nested Panel

Are you looking to nest a panel onto your custom control after you’ve dropped that custom control onto your XPage? If so, open your custom control and add an Editable Area control wherever you will want to place your variable content. The editable area gives you somewhere you can nest panels (or any other kind of control including custom controls) onto your custom control AFTER you place it tin the XPage.

Subject: Thanks!

Paul, this was just what I needed.

Many thanks,

Rob

Subject: I’d use the Source tab…

  • Element positioning in the Design tab leaves a bit to be desired. It’s trivial to do in the Source tab, long as the editor doesn’t freak out when you paste. Fortunately editor spazz is relatively infrequent, as DDE errors go.

  • Simplest way to start on this path is to drag your panel in using the Design tab, drop it where you can find it (the bottom, for instance), then switch to the Source tab, cut, and paste the xp:panel where you want it. Later, as you learn what markup does what, it’s simpler to just type xp:panel where you want it. Or that’s been my experience.

Hope this helps…