// get the url to that page
IRequestHandler handler = new RenderPageRequestHandler(new PageProvider(leftFrame));
String leftFrameSrc = RequestCycle.get().renderUrlFor(handler).toString();
// and create a simple component that modifies it's src attribute to
// hold the url to that frame
WebComponent leftFrameTag = new WebComponent("leftFrame");
leftFrameTag.add(new AttributeModifier("src", new Model<String>(leftFrameSrc)));
add(leftFrameTag);
// make a simple component for the right frame tag
WebComponent rightFrameTag = new WebComponent("rightFrame");
// and this time, set a model which retrieves the url to the currently
// set frame class in the frame target
rightFrameTag.add(new AttributeModifier("src", new FrameModel()));
add(rightFrameTag);
}