Brian : I think what your after is state stuff:
<state apply="${classroot.attributename==true}">
<text text="hello"/>
<state>
Of course you can also do this too:
<text text="${classroot.message}"/>
In general:
Its quite amazing what you can do with laszlo once you learn it, the biggest
hurdle is the learning curve
I did this small application for a customer
http://www.lightburnbulldogs.com/site/ (See pictures on left)
But I did spend about a month before that pushing laszlo to its limits. The
one thing I find annoying is the fact that they use XML for nesting the
views. This tends to make pretty big source files.
I havent used the grid object but you can easily make a view look like a
grid, which gives you much more flexibility (and readability) on how the row
is displayed for example
<view datapath="list" height="200" width="800" layout="axis:y">
<view layout="axis:x" datapath="row">
<text datapath="field1/text()"/>
<text datapath="field2/text()"/>
<text datapath="field3/text()"/>
</view>
<vertscrollbar/>
</view>
should (somewhat) work with the following xml
<list>
<row><field1>a</field1><field2>b</field2><field3>c</field3></row>
<row><field1>a</field1><field2>b</field2><field3>c</field3></row>
<row><field1>a</field1><field2>b</field2><field3>c</field3></row>
<row><field1>a</field1><field2>b</field2><field3>c</field3></row>
</list>
but then again I also knew suneido (http://suneido.com) who's language
structure and views are very similar (but without the XML elements) before I
started laszlo
There used to be www.mylaszlo.com which reportedly was a playground to
showoff your apps but it hasnt been up for a while (It would be great to see
it up again !)
Z
On 12/1/06, Brian Crounse <[EMAIL PROTECTED]> wrote:
I'm evaluating OpenLaszlo right now for a small project; here's my
initial reaction, in respose to the question, "why is OpenLaszlo not
more popular?"
1. Look and feel
This is somewhat arbitrary: Although I like the overall slickness
(ease and quality of animation, etc.) of the GUI elements, I just
don't really like the way a lot of stuff looks. In particular, I find
demos like the dashboard, well, kinda ugly. I presume you can re-skin
widgets to look any way you like, but I'd personally like a prettier
look out of the box. And maybe a little 'lighter'. I can't really
articulate what I mean, but the look and feel seems 'heavy'. I
realize that beauty is in the eye of the beholder, but that was my
initial reaction. And it was a bit of a turn off, though by no means a
deal killer for me.
2. Dislike of Flash
I'm not as anti-flash as some people, but I don't like the fact that
it often breaks the back button, right-click menu, etc. And, for
example, in the Amazon demo you can't copy and paste any info
(sometimes that's useful). I realize that Legals with a DHTML
back-end should address this issue, but my impression (again, I'm
taking the role of inattentive new developer here) is that it's not
quite yet ready for prime time.
3. Language feels a little alien
I started to mess around with some code, defining objects, etc.
Thanks to the really excellent documentation and demos, this was very
easy. But then I wanted to make the appearance of a widget
conditional on the value of a user cookie (or some other variable). I
couldn't figure out how to do this (now, I'm ***sure*** you can do
this, but it wasn't evident to me at the time), and said 'screw it,
I'll just go find a good Ajax toolkit and write the backend in PHP'.
Ok, I just searched for "control structure" site:openlaszlo.org on
Google and infer from section 1.2 Javascript that control structures
are written in Javascript. At least that's what I think. But my point
is that OpenLaszlo is different enough from LAMP + AJAX or whatever
other common acronyms are in use, that too many newbie developers like
myself run back to mama's cooking at the first sign of danger. I
think LISP suffers from similar issues- as Paul Graham notes, most of
the hip new languages like Python largely represent an evolution from
C back toward LISP (ducks).
Now, experienced OpenLaszlo developers who read this are going to say
"What an idiot! All of those issues are trivial!", and you are
probably right. But they don't appear trivial to me at this time.
I am still on the bubble for figuring out what platform to use for my
little hobby application. Can anyone point me to some good examples
with basic non-event control structures (e.g. If cookie A='b', show
this widget, otherwise hide it).
Cheers,
Brian
On 12/1/06, Troy Bridoux <[EMAIL PROTECTED]> wrote:
> What David says makes sense. It is how open source works.
> But I think it works best when you already have a huge user base, which
> doesn't seem to be the case for OpenLaszlo yet.
> So what we have are relatively quiet mailing lists and forums.
>
> I'm now evaluating whether I should jump into the world of OpenLaszlo
and my
> gripping fear is to be stuck in William's situation because there just
> aren't enough fellow developers around to help.
>
> I've talked to friends and we were all scratching our heads as to why
> OpenLaszlo hasn't taken off like crazy, given how good it looks and the
> head start it's had.
> Smells like the classic chicken-and-egg paradox:
> developers don't want to jump in until they see more developers around.
>
> I'm afraid myself. To be frank, I'm thinking right now
> I'll just use OpenLaszlo for prototyping and then rewrite with some
> of the up-and-coming AJAX toolkits, which are inferior to OpenLaszlo
> but have a clear future thanks to a lot of hype and mindshare.
>
> We all want OpenLaszlo to succeed of course. It's an amazing and
innovative
> platform. The question is when does the exponential growth kick in?
>
> My two cents
>
>
> On 2006-11-28, Raju Bitter <[EMAIL PROTECTED]> wrote:
> > William,
> >
> > David is right. The Laszlo folks offer their help in the forum and
mailing
> > lists on top of their regular work. I've had many questions answered
and
> > received so much help from many people (including David Temkin). And I
don't
> > assume it's so common to have the CTO of a more than successful
company
> > getting down to the mailing list and answering questions.
> >
> > Nevertheless I hope that your problem could be solved.
> >
> > Best,
> >
> > Raju
> >
> >> -----Ursprüngliche Nachricht-----
> >> Von: [EMAIL PROTECTED] [mailto:laszlo-user-
> >> [EMAIL PROTECTED] Im Auftrag von David Temkin
> >> Gesendet: Sonntag, 19. November 2006 19:10
> >> An: William Powell; laszlo-user community discussion; OpenLaszlo
> >> development and bug reporting; [EMAIL PROTECTED]
> >> Betreff: Re: [Laszlo-user] I am at the end of my rope
> >>
> >> Bill,
> >>
> >> I appreciate the fact that you've embraced development with
> >> OpenLaszlo. I also understand that things can get very frustrating
> >> when you're on a deadline, and a seemingly simple problem is standing
> >> in the way of completion.
> >>
> >> If you're building a serious enterprise application and cannot get
> >> the result you need from the free/community areas (the forums, the
> >> mailing lists), I would recommend that you consider purchasing
> >> support from Laszlo to get your issues resolved.
> >>
> >> OpenLaszlo is in fact gaining in popularity and usage (as you've
> >> probably noticed), but popularity alone doesn't pay the bills.
> >> Support contracts, among other things, pay the bills. In the end
> >> we're a business just like you (or your employer) are. As a company,
> >> we are most responsive to customers who are paying us. Yes, you can
> >> get free advice from developers using OpenLaszlo, even from the core
> >> development team, on the forums and mailing lists, but this isn't a
> >> service that the company provides or guarantees. It's at the
> >> discretion of the developers themselves. They have their jobs, and
> >> answering support questions isn't part of it.
> >>
> >> Perhaps someone will answer your question based on your email. If
> >> not, I'd recommend taking a look at the support offerings below. They
> >> have been restructured to support different kinds of development
> >> efforts, and I expect there's something here that would work for you:
> >>
> >> http://www.laszlosystems.com/services/support
> >>
> >> Remember, this is how open source development gets supported. And
> >> you'll find that our support engineers are prompt and accurate.
> >>
> >> David Temkin
> >> Founder and CTO, Laszlo Systems
> >>
> >>
> >>
> >> On Nov 19, 2006, at 8:39 AM, William Powell wrote:
> >>
> >> > I seem to be getting all these seemingly automated
> >> > responses that keep sending me from user group to user
> >> > group. When is somebody going to answer my questions?
> >> > Bill (I used to think Laszlo was a good product)
> >> >
> >> > I am beginning to think that either the Laszlo company
> >> > people don't
> >> > read these forums and user groups or they don't want a
> >> > market
> >> > acceptable product. I am seriously pissed off! Nobody
> >> > answers
> >> > questions pertaining to serious problems with using
> >> > this product in
> >> > enterprise applications. A serious business data grid
> >> > should be able
> >> > to switch its editability by a user activated button.
> >> > It seems that
> >> > some idiot made the gridtext component editability
> >> > non-changeable at
> >> > runtime. I have tried the things suggested on the
> >> > forums - they don't
> >> > work!!! I have alse tried using the gridcolumn with
> >> > edittext
> >> > components beneath it. But then the row selection
> >> > doesn't work. If
> >> > there is a way of doing this it should be documented
> >> > in a clear and
> >> > understandable fashion. The various methods described
> >> > on the forums do
> >> > not work under 3.3.1. You are rapidly losing the
> >> > serious part of your
> >> > audience that wants to create serious business
> >> > applications that look
> >> > good. No one seems to want to answer questions about
> >> > how to mmake this
> >> > grid component workm the way business needs it to
> >> > work. I need to have
> >> > a switch that allows the selected row to be edited but
> >> > no matter what
> >> > I do some part of the desired functionality doesn't
> >> > work. I need to
> >> > edit the text of the selected row after a edit button
> >> > is pushed. Can
> >> > anybody help?
> >> >
> >> >
> >> >
> >> >
______________________________________________________________________
> >> > ______________
> >> > Sponsored Link
> >> >
> >> > $420k for $1,399/mo.
> >> > Think You Pay Too Much For Your Mortgage?
> >> > Find Out! www.LowerMyBills.com/lre
> >
> >
> >
>
>