Re: Local / lazy referencing

Adam Megacz <[email protected]> 08 Oct 2003 21:04:53 -0700
Newsgroups gmane.comp.java.xwt.widgets
Organization XWT
Message-ID <[email protected]>
Brian Alliet <[email protected]> writes:
> On Wednesday, October 8, 2003, at 07:49  PM, Adam Megacz wrote:

> > The problem with this is that some other box can set

> >   yourbox.org = blah;

> Thats why the resource root needs to be checked before the box.
        
Two problems:

  1. If the resource root is not a local resource (ie if you're using
     an HTTP-accessible directory as a resource), this will cause
     lots of unnecessary, time-consuming network operations.

  2. If you have a variable used in this manner called 'foo' and
     somebody decides to use your template inside an xwar that has a
     file called 'foo/bar/baz.xwt', your app will break in strange
     ways.

  - a

-- 
"Education is not filling a bucket but lighting a fire." -- WB Yeats