doug livesey | 2 Mar 2009 12:18
Picon
Gravatar

Basic layout help

Hi -- I have this code in a Laszlo app I'm trying to start prototyping:

<canvas>
  <simplelayout axis='x' spacing='5' />
  <view height='100%' id='sidebar' width='20%'>
    <simplelayout axis='y' spacing='3' />
    <window height='20%' id='filters' title='Filters' width='100%'></window>
    <window height='20%' id='customers' title='Customers' width='100%'></window>
    <window height='60%' id='jobs' title='Jobs' width='100%'></window>
  </view>
</canvas>

My problem is that this just stacks each of the windows one on top of another, whereas my intention is to have each window appear neatly under the last.
Could someone tell me what I've got wrong, here?
I've been trying all sorts of permutations, all to no avail.
Cheers,
   Doug.

doug livesey | 2 Mar 2009 12:40
Picon
Gravatar

Using the session-based authentication of existing app with Laszlo

Hi -- I'

Brendan Fagan | 2 Mar 2009 17:11
Picon

Re: Basic layout help

Windows are floating components.  They can be dragged around by a user.  They do not conform to layouts.

If you want to lay windows out in a specific arrangement, you can set 'x','y','width' and 'height' via static values or constraints.  You can set allowdrag="false" if you don't want the window position to be changed by the user.  Also notable is the ability to disable the closing of a window by the user via closeable="false".

You can use views and most components that extend views in a layout.  Components that ignore layout always have options="ignorelayout".


On Mon, Mar 2, 2009 at 6:18 AM, doug livesey <biot023-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
Hi -- I have this code in a Laszlo app I'm trying to start prototyping:

<canvas>
  <simplelayout axis='x' spacing='5' />
  <view height='100%' id='sidebar' width='20%'>
    <simplelayout axis='y' spacing='3' />
    <window height='20%' id='filters' title='Filters' width='100%'></window>
    <window height='20%' id='customers' title='Customers' width='100%'></window>
    <window height='60%' id='jobs' title='Jobs' width='100%'></window>
  </view>
</canvas>

My problem is that this just stacks each of the windows one on top of another, whereas my intention is to have each window appear neatly under the last.
Could someone tell me what I've got wrong, here?
I've been trying all sorts of permutations, all to no avail.
Cheers,
   Doug.

P T Withington | 2 Mar 2009 18:36
Picon
Favicon
Gravatar

Re: Basic layout help

Gee, I wonder if there should be an option like "take my initial  
position from the layout" or something?

Can you override the window default options to make it pay attention  
to the layout?

On 2009-03-02, at 11:11EST, Brendan Fagan wrote:

> Windows are floating components.  They can be dragged around by a  
> user.
> They do not conform to layouts.
>
> If you want to lay windows out in a specific arrangement, you can set
> 'x','y','width' and 'height' via static values or constraints.  You  
> can set
> allowdrag="false" if you don't want the window position to be  
> changed by the
> user.  Also notable is the ability to disable the closing of a  
> window by the
> user via closeable="false".
>
> You can use views and most components that extend views in a layout.
> Components that ignore layout always have options="ignorelayout".
>
>
> On Mon, Mar 2, 2009 at 6:18 AM, doug livesey <biot023@...>  
> wrote:
>
>> Hi -- I have this code in a Laszlo app I'm trying to start  
>> prototyping:
>>
>> <canvas>
>>  <simplelayout axis='x' spacing='5' />
>>  <view height='100%' id='sidebar' width='20%'>
>>    <simplelayout axis='y' spacing='3' />
>>    <window height='20%' id='filters' title='Filters'
>> width='100%'></window>
>>    <window height='20%' id='customers' title='Customers'
>> width='100%'></window>
>>    <window height='60%' id='jobs' title='Jobs' width='100%'></window>
>>  </view>
>> </canvas>
>>
>> My problem is that this just stacks each of the windows one on top of
>> another, whereas my intention is to have each window appear neatly  
>> under the
>> last.
>> Could someone tell me what I've got wrong, here?
>> I've been trying all sorts of permutations, all to no avail.
>> Cheers,
>>   Doug.
>>

André Bargull | 2 Mar 2009 22:05

Re: Basic layout help

You just need to add options='ignorelayout:false' to the window 
component, that way the default value will be overridden.

- André

> Gee, I wonder if there should be an option like "take my initial  
> position from the layout" or something?
>
> Can you override the window default options to make it pay attention  
> to the layout?
>
> On 2009-03-02, at 11:11EST, Brendan Fagan wrote:
>
>   
>> > Windows are floating components.  They can be dragged around by a  
>> > user.
>> > They do not conform to layouts.
>> >
>> > If you want to lay windows out in a specific arrangement, you can set
>> > 'x','y','width' and 'height' via static values or constraints.  You  
>> > can set
>> > allowdrag="false" if you don't want the window position to be  
>> > changed by the
>> > user.  Also notable is the ability to disable the closing of a  
>> > window by the
>> > user via closeable="false".
>> >
>> > You can use views and most components that extend views in a layout.
>> > Components that ignore layout always have options="ignorelayout".
>> >
>> >
>> > On Mon, Mar 2, 2009 at 6:18 AM, doug livesey <biot023@...>  
>> > wrote:
>> >
>>     
>>> >> Hi -- I have this code in a Laszlo app I'm trying to start  
>>> >> prototyping:
>>> >>
>>> >> <canvas>
>>> >>  <simplelayout axis='x' spacing='5' />
>>> >>  <view height='100%' id='sidebar' width='20%'>
>>> >>    <simplelayout axis='y' spacing='3' />
>>> >>    <window height='20%' id='filters' title='Filters'
>>> >> width='100%'></window>
>>> >>    <window height='20%' id='customers' title='Customers'
>>> >> width='100%'></window>
>>> >>    <window height='60%' id='jobs' title='Jobs' width='100%'></window>
>>> >>  </view>
>>> >> </canvas>
>>> >>
>>> >> My problem is that this just stacks each of the windows one on top of
>>> >> another, whereas my intention is to have each window appear neatly  
>>> >> under the
>>> >> last.
>>> >> Could someone tell me what I've got wrong, here?
>>> >> I've been trying all sorts of permutations, all to no avail.
>>> >> Cheers,
>>> >>   Doug.
>>> >>
>>>       

P T Withington | 2 Mar 2009 22:14
Picon
Favicon
Gravatar

Re: Basic layout help

I _knew_ someone would have the answer!  Cool!

On 2009-03-02, at 16:05EST, André Bargull wrote:

> You just need to add options='ignorelayout:false' to the window  
> component, that way the default value will be overridden.
>
> - André
>
>> Gee, I wonder if there should be an option like "take my initial   
>> position from the layout" or something?
>>
>> Can you override the window default options to make it pay  
>> attention  to the layout?
>>
>> On 2009-03-02, at 11:11EST, Brendan Fagan wrote:
>>
>>
>>> > Windows are floating components.  They can be dragged around by  
>>> a  > user.
>>> > They do not conform to layouts.
>>> >
>>> > If you want to lay windows out in a specific arrangement, you  
>>> can set
>>> > 'x','y','width' and 'height' via static values or constraints.   
>>> You  > can set
>>> > allowdrag="false" if you don't want the window position to be  >  
>>> changed by the
>>> > user.  Also notable is the ability to disable the closing of a   
>>> > window by the
>>> > user via closeable="false".
>>> >
>>> > You can use views and most components that extend views in a  
>>> layout.
>>> > Components that ignore layout always have options="ignorelayout".
>>> >
>>> >
>>> > On Mon, Mar 2, 2009 at 6:18 AM, doug livesey  
>>> <biot023@...>  > wrote:
>>> >
>>>
>>>> >> Hi -- I have this code in a Laszlo app I'm trying to start  >>  
>>>> prototyping:
>>>> >>
>>>> >> <canvas>
>>>> >>  <simplelayout axis='x' spacing='5' />
>>>> >>  <view height='100%' id='sidebar' width='20%'>
>>>> >>    <simplelayout axis='y' spacing='3' />
>>>> >>    <window height='20%' id='filters' title='Filters'
>>>> >> width='100%'></window>
>>>> >>    <window height='20%' id='customers' title='Customers'
>>>> >> width='100%'></window>
>>>> >>    <window height='60%' id='jobs' title='Jobs' width='100%'></ 
>>>> window>
>>>> >>  </view>
>>>> >> </canvas>
>>>> >>
>>>> >> My problem is that this just stacks each of the windows one on  
>>>> top of
>>>> >> another, whereas my intention is to have each window appear  
>>>> neatly  >> under the
>>>> >> last.
>>>> >> Could someone tell me what I've got wrong, here?
>>>> >> I've been trying all sorts of permutations, all to no avail.
>>>> >> Cheers,
>>>> >>   Doug.
>>>> >>
>>>>

doug livesey | 2 Mar 2009 23:19
Picon
Gravatar

laszlo not supporting REST?

Hi -- from scouting around the net, it looks like maybe Laszlo won't support proper REST, as it doesn't support any verbs apart from GET and POST.
Is that correct?
How are people getting around it?
I'm a Rails developer, and for me to be able to embrace Laszlo, I'll really *need* REST.
Cheers,
   Doug.

Henry Minsky | 2 Mar 2009 23:51

Re: laszlo not supporting REST?

In the DHTML runtime, you may use any REST request method.

The Flash 8 player  just does not natively  support anything besides
GET and POST,and it appears that flash 9/10 won't do PUT or DELETE
either, unless you are running in the AIR player environment.  For the
 Flash 9 player in a regular browser, it appears to be limited to GET
and POST, at least according to how I read the AS3 documentation.

Note however, , if your application is making proxied request rather
than a SOLO request, the proxy server (LPS) can perform the REST PUT
or DELETE methods. So if you are willing to deploy your application
with proxied
data requests, then you could use these methods in a Flash application.

[regarding the Flash 9 player, here's what the AS3 docs say for
flash.net.URLRequest]

method	property	
method:String  [read-write]
Language Version : 	ActionScript 3.0
Runtime Versions : 	AIR 1.0, Flash Player 9
Controls the HTTP form submission method.

For SWF content running in Flash Player (in the browser), this
property is limited to GET or POST operation, and valid values are
URLRequestMethod.GET or URLRequestMethod.POST. For content running in
Adobe AIR, if the content is in the application security domain, you
can use any string value; otherwise (if the content is not in the AIR
application security domain) you are still restricted to using GET or
POST.

Note: If running in Flash Player and the referenced form has no body,
Flash Player automatically uses a GET operation even if the method is
set to URLRequestMethod.POST.

The default value is URLRequestMethod.GET.
On Mon, Mar 2, 2009 at 5:19 PM, doug livesey <biot023@...> wrote:
> Hi -- from scouting around the net, it looks like maybe Laszlo won't support
> proper REST, as it doesn't support any verbs apart from GET and POST.
> Is that correct?
> How are people getting around it?
> I'm a Rails developer, and for me to be able to embrace Laszlo, I'll really
> *need* REST.
> Cheers,
>    Doug.
>

--

-- 
Henry Minsky
Software Architect
hminsky@...

tim | 3 Mar 2009 04:59

Re: Laszlo-user Digest, Vol 53, Issue 1

hi all, i try to unzip the OL 4.2.1 but it sends me straight to Sun Java 
site and the dialog says OL can't find java on this PC.
 There is already the latest java jdk on the PC in the env.variables path 
but OL can't find it, this PC is win Vista 64bit sp1 with flash 10 
installed.
I have just installed a new SUN netbeans with glassfish installation 
included with the jdk, however the dialog at Sun, states that it uses port 
8080, the same as Tomcat would require to use.
Is that a problem ? Why OL won't install ?
Any ideas would be appreciated.
Thanks for your interest in my situation, I am hoping to start learning OL 
if I can open the download.
----- Original Message ----- 
From: <laszlo-user-request@...>
To: <laszlo-user@...>
Sent: Tuesday, March 03, 2009 7:00 AM
Subject: Laszlo-user Digest, Vol 53, Issue 1

> Send Laszlo-user mailing list submissions to
> laszlo-user@...
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> or, via email, send a message with subject or body 'help' to
> laszlo-user-request@...
>
> You can reach the person managing the list at
> laszlo-user-owner@...
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of Laszlo-user digest..."
>

--------------------------------------------------------------------------------

> Today's Topics:
>
>   1. Basic layout help (doug livesey)
>   2. Using the session-based authentication of existing app with
>      Laszlo (doug livesey)
>   3. Re: Basic layout help (Brendan Fagan)
>   4. Re: Basic layout help (P T Withington)
>

--------------------------------------------------------------------------------

> _______________________________________________
> Laszlo-user mailing list
> Laszlo-user@...
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
>

--------------------------------------------------------------------------------

No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.0.237 / Virus Database: 270.11.5/1979 - Release Date: 03/01/09 
17:46:00

doug livesey | 3 Mar 2009 13:45
Picon
Gravatar

Authentication sanity check

Hi -- if I deploy a laszlo SOLO app in a Rails (or any other session authenticated) app, then calls made from that laszlo app will have access to the same session, and will therefore be run as if 'logged-in', right?
Sorry if this is a really dumb question, but I figured it was worth clearing up.
Cheers,
   Doug.


Gmane