LeftFrame leftFrame = new LeftFrame(this);
// get the url to that page
CharSequence leftFrameSrc = RequestCycle.get().urlFor(leftFrame);
// 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((Serializable)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);
}