Robin | 2 Apr 08:59 2006
Picon

Recursive classes

Hi, I'm trying to do something like:
  <class name="headerview">
   <simplelayout axis="y" />
   <view>
     <resizelayout axis="x" />
     <header datapath="title" options='releasetolayout' />
   </view>
   <headerview datapath="subheader" />
  </class>

Where the kind of data it's reading from is:

   <data>
    <title>Top title</title>
    <subheader>
     <title>Second title 1</title>
     <title>Second title 2</title>
     <subheader>
       <title>Third title 1</title>
       <title>Third title 2</title>
       <title>Third title 3</title>
     </subheader>
    </subheader>
   </data>

However, the call to <headerview> inside of the class definition seems to
cause an infinite loop, and nothing shows up. What can I do about this? I
thought that the fact that the replication would mean that no headerview
instances are produced would stop the recursion, however I guess it's trying
to process it when it loads, rather than when it runs.
(Continue reading)

DL | 2 Apr 16:09 2006

openlaszlo-3.2 compiled swf renders blank in IE browser

I have been experiencing a bug which seems to be rare (although mentioned in earlier 
posts).

Put simply, compiled swf movies will not render in my IE browser, but render fine in 
Firefox 1.5.

Hoping that this bug might disappear with openlaszlo-3.2, unfortunately it is still there, 
and even mentioned in the release notes (advice - revert to embed.js release 3.0.2).

So I've investigated further and troubleshooting post is here ..

http://www.laszlosystems.com/developers/community/forums/showthread.php?s=&postid=18865#post18865

The problematic code is posted in that thread (and below).

...

My question is - where/how is that HTML wrapper code with two divs for main movie 
and dev console movie actually generated in openlaszlo-3.2?

...

I would like to amend it (for my purposes) to use flashobject.js.

Below is the edited/hacked version of the main + dev console wrapper code which now 
works in my IE browser.

DL

<html>
(Continue reading)

DL | 2 Apr 17:16 2006

Re: [Laszlo-dev] openlaszlo-3.2 compiled swf renders blank in IE browser

On 2 Apr 2006 at 16:37, Mo wrote:

> not exactly related to your problem, but... maybe openlaszlo can switch 
> over to flashobject.js anyway (it has an MIT license i think). had a 
> look on it yesterday and liked it very much.

I agree .. I use flashobject.js when deploying, abandoning embed.js ..

it is only during the built in compilation / review that my movie does not 
render in IE, when using the default openlaszlo code.

With Flash 8 there is a stronger case for switching to flashobject.

e.g. see the use of externalinterface in flashobject.

http://blog.deconcept.com/2005/08/16/external-interface/

DL
graphis1 | 2 Apr 19:18 2006
Picon

referencing previous element


I've searched the docs and forums, but can't find a way to easily  
reference the previous element. (unless it's named) eg:

<text width = "80" y = "20">Blah: </text><edittext y = "${sibling.y}"  
x = "${sibling.width + 10 }"  />

What do I use in place of "sibling" to reference the x and y position  
of the previous text element?
Adam Wolff | 2 Apr 21:08 2006

Re: Recursive classes

One way to do this is to wrap the embedded class in a state, like 
this (untested):
    <class name="headerview">
        ...
        <attribute name="haschildren"
                value="$path{ 'subheader/last()' }"/>
        <state apply="${ Number( parent.childcount ) }">
            <headerview datapath="subheader" />
        </state>
    </class>

A slightly less natural way to model this is to collect a list of all the
subheader nodes and then hand it to a replicator. See the opttree
implementation in the incubator directory for an example of this.

A

On Apr 2, Robin wrote:

> Hi, I'm trying to do something like:
>   <class name="headerview">
>    <simplelayout axis="y" />
>    <view>
>      <resizelayout axis="x" />
>      <header datapath="title" options='releasetolayout' />
>    </view>
>    <headerview datapath="subheader" />
>   </class>
> 
> Where the kind of data it's reading from is:
(Continue reading)

Denis Bohm | 2 Apr 21:24 2006

Re: [Laszlo-dev] openlaszlo-3.2 compiled swf renders blank in IE browser

Just to join in with the chorus, I've switched to using flashobject.js also.

DL wrote:
On 2 Apr 2006 at 16:37, Mo wrote:
not exactly related to your problem, but... maybe openlaszlo can switch over to flashobject.js anyway (it has an MIT license i think). had a look on it yesterday and liked it very much.
I agree .. I use flashobject.js when deploying, abandoning embed.js .. it is only during the built in compilation / review that my movie does not render in IE, when using the default openlaszlo code. With Flash 8 there is a stronger case for switching to flashobject. e.g. see the use of externalinterface in flashobject. http://blog.deconcept.com/2005/08/16/external-interface/ DL _______________________________________________ Laszlo-user mailing list Laszlo-user-qwsyeSSt21a05dI2w8foGA@public.gmane.org http://www.openlaszlo.org/mailman/listinfo/laszlo-user

_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
Robin | 3 Apr 07:17 2006
Picon

Making parent width to match that of the subviews

I have a view that contains a number of other views, expanding out sideways
based on data replication. What I'd like to do is make the width of the parent
change itself to be the width that will enclose all those subviews, such that
constraints that lay other components out based on the width of this one end
up correct.

How can I do this?

Cheers, Robin.
Robin | 3 Apr 10:54 2006
Picon

'Templating' classes

Hi, more questions :)

I'd like to be able to instantiate a class, such as like this:
<dataview id="dataarea" datapath="data:/data" >
	<text resize="true" align="center" valign="middle"/>
</dataview>

Where the <text> element in the middle isn't a text object, but something that
dataview can use to display its data, i.e. it may not be <text> but may be
<myfancydatadisplay>, and whatever it is gets instantiated (maybe multiple
times) later, and given the data that its supposed to show. I'll have them
share a common interface, so they can all be set in the same way. Note that is
different to the list class, in that with list you create the instances of the
entries immediately (typically).

It would be even better if it was possible to dynamically change this, by
somehow setting the class for dataview to instantiate to something else.

Hmm. I guess that I'm looking for something like the Java factory pattern.

Can anyone point me in the right direction?

Cheers, Robin.
Maxime Carpentier | 3 Apr 11:49 2006

SOAP timeout

Hi all,
I've managed to deploy my webservice in tomcat (myservice.war) and i get it works well with my browser :
 
 
returns "hello"
 
but when i want to use it with laszlo , it won't work... the service seems to load the wsdl correctly but i can't invoke any methods :
all i can get is, in the debugger:
 
myServiceSOAP loaded
myServiceSOAP error: timed out
i've looked the requests up with tcp monitor ,and all seems to works fine...
 
any idea ?
 
Thxs
_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user
Norah Meekin | 3 Apr 16:09 2006
Picon

Selecting Multiple Items in a List

Hi there
 
In the old version of Laszlo (Not sure how far back but I think in 3.1) you could select mulitple items from a list and if you click a button to populate another list with the selected values, an array of the selected items are returned.  This no longer seems to be the case in the newer versions of Laszlo.  Is anyone aware of this or have an explanation for this?
 
Thanks
Norah Meekin
 
2Cana Solutions
Tel: (031) 5833200
Fax: (031) 5833213
 
_______________________________________________
Laszlo-user mailing list
Laszlo-user@...
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Gmane