removed obsolete functions: calling href() on Java objects does indeed work. The problem

was that getParentElement() method in Application always returned
null (due to a very hard to find bug in helma.main.Server).
This commit is contained in:
stefanp 2002-03-25 18:36:56 +00:00
parent 891b5056c8
commit bf86d54c67
3 changed files with 0 additions and 41 deletions

View file

@ -1,14 +0,0 @@
/**
* overrides the internal href-function, as
* helma.framework.core.Application.getNodeHref(Object,String)
* isn't able to compute correct urls for non-node objects.
* @arg action of application
*/
function href(action) {
var url = getProperty("baseURI");
url = (url==null || url=="null") ? "" : url;
url += this.name + "/api/" + ( (action!=null && action!="") ? action : "main" );
return url;
}

View file

@ -1,17 +1,4 @@
/**
* overrides the internal href-function, as
* helma.framework.core.Application.getNodeHref(Object,String)
* isn't able to compute correct urls for non-node objects.
* @arg action of prototype
*/
function href(action) {
var url = getProperty("baseURI");
url = (url==null || url=="null") ? "" : url;
url += this.getParentElement().getParentElement().getName() + "/api/" + this.getParentElement().getName() + "/" + this.getTypeName().toLowerCase()+"_"+this.name + "/" + ( (action!=null && action!="") ? action : "main" );
return url;
}
function getApplication() {
return this.getParentElement().getParentElement();

View file

@ -1,14 +0,0 @@
/**
* overrides the internal href-function, as
* helma.framework.core.Application.getNodeHref(Object,String)
* isn't able to compute correct urls for non-node objects.
* @arg action of prototype
*/
function href(action) {
var url = getProperty("baseURI");
url = (url==null || url=="null") ? "" : url;
url += this.getParentElement().getName() + "/api/" + this.name + "/" + ( (action!=null && action!="") ? action : "main" );
return url;
}