Ok - dawn breaks over marble head - sorry :)
 

-----Original Message-----
From: P T Withington [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, July 25, 2006 4:33 PM
To: Andrew Chandler
Cc: 'William Krick'; 'Henry Minsky'; [email protected]
Subject: Re: [Laszlo-user] DataSet - type = http

On 2006-07-25, at 16:54 EDT, Andrew Chandler wrote:

> To be clear though this isn't really the same thing I was trying to do 
> when
> I started the thread.   I basically have a xml residing on my  
> laszlo server
> that I want to retrieve automatically using http or https depending on 
> how
> the web app is being served.   I didn't want it compiled in since  
> the file
> being retrieved might not yet be there and I just want to handle it 
> with an
> onerror constrruct empty dataset or something of that nature.      
> The main
> problem is I didn't want to have to do configuration editng etc - it 
> seems like given the request object during dataset initialization time 
> we could set the protocol and url appropriately and just tack on the 
> relative path.
> currently though a relative path means compile it in during page 
> compilation.
>

What William and I are getting at is that you _should_ be able to specify
your src using

   src="${...}"

If you can do that, then you have a (nother) way of telling the compiler
that it cannot compile in the data (since ${} is by definition a runtime
constraint.

So when this bug is fixed, you should also be able to say:

   <dataset foo src="$once{'my/rel/path.xml'}" />

and the compiler should not try to compile in the source, and the rel path
will be merged against the app path and hence get the app scheme at runtime.

---

If you have a small test case, add it to the bug: http:// 
www.openlaszlo.org/jira/browse/LPP-2408





_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to