[Laszlo-dev] Re: proposed modification to the serverless deployment
proposal
Henry Minsky
henry.minsky at gmail.com
Mon Jan 31 06:08:36 PST 2005
I thought it might be possible to in general leave a library
"agnostic" as to whether it gets compiled serverless or serverful.
Maybe we could make the use of the "proxied" flag on <library>
optional, so that the compiler will check it's value if it is
supplied, and warn or error if it disagrees with the main app's canvas
setting.
The way the current implementation I've got is working with respect to
the "proxied" flag is that so far all the behavior is only
conditionalized at runtime. The compiler doesn't do anything except
set the values of the "proxied" attributes which are specified in the
code.
I think this works for data and library loading operations, the only
question is whether we are going to need to do anything at
compile-time for media requests. I *think* all the conditionalization
for media requests can also be done at runtime.
On Mon, 31 Jan 2005 08:09:27 -0500, Oliver Steele
<osteele at laszlosystems.com> wrote:
> The reason to put the proxy mode on <library> was so that a developer
> could document that a library required proxied deployment, in a
> standard way that doc tools could display and the compiler could
> detect. So putting it on <import> instead doesn't do this. (An added
> benefit is that it keeps <canvas> and <library> similar. There's a
> feature request to let you compile a <library>, to make it easier to
> test individual components.)
>
> The proposal on the wiki also calls for the switch to be global: it's
> illegal to include some direct libraries and some proxied libraries;
> the library proxy declarations are simply used as error checking to see
> whether they match the canvas proxy declaration. Are you suggesting
> that we allow proxied and unproxied libraries within the same
> application?
>
> On Jan 29, 2005, at 6:49 PM, Henry Minsky wrote:
>
> > http://openlaszlo.org/wiki/Serverless_Deployment
> >
> > I want to propose that we put the proxied="true|false|inherit"
> > attribute on the <import> tag, not on the <library> tag.
> >
> > So in your app you can say:
> >
> > <import proxied="false"
> > name="lib" href="class-and-view-library.lzx"
> > oninit="lib.load()"
> > onload="canvas.doLoaded()"/>
> >
> > And the library will be loaded directly without trying to load via the
> > LPS server.
> >
More information about the Laszlo-dev
mailing list