[Helma-user] Static Skins in prototype
Robert Gaggl
robert at helma.org
Mon Jul 23 22:54:32 CEST 2007
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
More information about the Helma-user
mailing list