A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
@author alex
LeftFrame leftFrame = new LeftFrame(this);
// get the url to that page
String leftFrameSrc = RequestCycle.get().urlFor(leftFrame).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);
}
/**
* Gets frameTarget.
create = false;
conf.setLogDirectory(new File(dir,"logs"));
conf.load(serverConfFile.toURI());
initStorageClass();
try {
web = new WebComponent(dir,dbList,getStorageFactory(),conf);
} catch (Exception ex) {
throw new ConfigurationException("Cannot load storage "+storageClassName,ex);
}
} else {
create = true;
public void startServer()
throws Exception
{
dbList.get("data").connect();
StorageFactory storageFactory = new XMLDBStorageFactory();
www = new WebComponent(getDatabaseDirectory(),dbList,storageFactory,conf);
www.start();
}
public void stopServer()
throws Exception