From 619dafac6d6551abf23adafa5c6180a473f1ab59 Mon Sep 17 00:00:00 2001 From: hns Date: Mon, 10 Sep 2001 14:05:18 +0000 Subject: [PATCH] Fixed global skin rendering in res.skin. --- src/helma/framework/core/RequestEvaluator.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/helma/framework/core/RequestEvaluator.java b/src/helma/framework/core/RequestEvaluator.java index 92360193..306c4bf6 100644 --- a/src/helma/framework/core/RequestEvaluator.java +++ b/src/helma/framework/core/RequestEvaluator.java @@ -346,9 +346,11 @@ public class RequestEvaluator implements Runnable { throw new RuntimeException ("Skin "+res.skin+" not found in path."); sname = res.skin.substring (dot+1); } - Skin skin = getSkin ((ESNode) sobj, sname); + Skin skin = getSkin ((ESObject) sobj, sname); + // get the java object wrapped by the script object, if not global + Object obj = sobj == null ? null : sobj.toJavaObject (); if (skin != null) - skin.render (this, (ESNode) sobj, null); + skin.render (this, obj, null); else throw new RuntimeException ("Skin "+res.skin+" not found in path."); }