* The Sone web interface
*/
public CreateSonePage(Template template, WebInterface webInterface) {
- super("createSone.html", template, "Page.CreateSone.Title", webInterface);
+ super("createSone.html", template, "Page.CreateSone.Title", webInterface, false);
}
//
}
try {
/* create Sone. */
- Sone sone = webInterface.core().createSone(name, requestUri, insertUri);
+ Sone sone = webInterface.core().createSone(name, "Sone", requestUri, insertUri);
/* log in the new Sone. */
setCurrentSone(request.getToadletContext(), sone);
*/
@Override
public boolean isEnabled(ToadletContext toadletContext) {
- return true;
+ return getCurrentSone(toadletContext) == null;
}
}