[Laszlo-dev] Re: [Laszlo-user] Equivalent of jsp.doBody() in Laszlo

Warner Onstine warnero at gmail.com
Fri Nov 19 07:12:31 PST 2004


Hmm, well since this is just a shot in the dark, and I'm still sussing
out the framework and how it works, could you provide some real code
that you are using (you mentioned a hack that you had to do that I
would like to do look at it, it might help me understand what you're
trying to do).

-warner


On Fri, 19 Nov 2004 08:35:15 -0600, John Corro
<john.corro at cornerstone.net> wrote:
> Could you clarify thoughts on both points?  An example might help me follow better.  Unless I'm not thinking along the same lines, I don't think either one will work.
> 
> John M. Corro
> Cornerstone Consulting, Inc
> 
> ________________________________
> 
> From: laszlo-user-bounces at openlaszlo.org on behalf of Warner Onstine
> Sent: Thu 11/18/2004 6:36 PM
> To: OpenLaszlo user community discussion
> Subject: Re: [Laszlo-user] Equivalent of jsp.doBody() in Laszlo
> 
> 
> 
> 
> Just a newbie myself, but maybe this could be accomplished by using
> custom attributes that could be set on the parent by the child? Or
> maybe I'm not understanding the exact problem.
> 
> Or, you could have custom methods that get called by the child. Hmm,
> not sure. Just shooting in the dark so far I guess.
> 
> -warner
> 
> On Wed, 17 Nov 2004 14:01:02 -0600, John Corro
> <john.corro at cornerstone.net> wrote:
> >
> >
> >  I'm trying to create a custom class that extends view for aesthetic
> > purposes. The problem I'm having is that I don't know how to implement the
> > JSP equivalent of "doBody()" in Laszlo. Specifically, I'm trying to do
> >
> > <class name="ArtsyView" extends="view">
> > <view name="Border" width="${parent.width}" ...>
> > <!-- execute body of instantiating views -->
> > </view>
> > </class>
> >
> > <ArtsyView>
> > <!-- ChildView will be a child view of
> > "ArtsyView.Border" -->
> > <view name="ChildView">
> > <text>Hello World</text>
> > </view>
> > </ArtsyView>
> >
> > Right now I have to do some hacking in "ArtsyView" by dynamically changing
> > the x, y, width, height values of the child view so that it's repositioned
> > and resized to fit within the confineces of "ArtsyView". Works ok, but I'd
> > like a cleaner way of doing it.
> >
> >
> > John M. Corro
> > Cornerstone Consulting, Inc
> > _______________________________________________
> > Laszlo-user mailing list
> > Laszlo-user at openlaszlo.org
> > http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> >
> >
> >
> _______________________________________________
> 
> 
> Laszlo-user mailing list
> Laszlo-user at openlaszlo.org
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user
> 
> 
>


More information about the Laszlo-dev mailing list