Re: Static Skins in prototype
Robert Gaggl <[email protected]> Mon, 23 Jul 2007 22:54:32 +0200
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
hi anton,
Anton Pirker wrote:
> Is it possible to have static skins of prototypes?
> I have the name of a Prototype and want to render an add-Form. So i
> tought it would be nice if i could do something like this:
>
> var protoName = "myProto";
> global[protoName].renderSkin("add");
>
> Is there a way to achieve this?
afaik there's no way to do that. i'm not sure what exactly you want to
do, but
renderSkin(app.getSkin(protoName, skinName, []));
should work (the third argument is a skinpath array, as used in
res.skinpath). the above statement would render the skin in global
context, but it seems that you can render the skin in the context of
another HopObject too, by using
myHopObject.renderSkin(app.getSkin(protoName, skinName, []));
(didn't test that, though)
hth
robert