"Rodrigo Reyes" <[EMAIL PROTECTED]> writes:

>Rodrigo
>    Thanx. Seems like what I need. Still, it seems like a workaround for
>something that is broken. Am I right?

There is nothing broken. It just does not in the way that you expect. ;-)

The Layout is pulled in dependence from the screen template. You can
see the code in org.apache.turbine.util.template.TemplateInfo, lines
143 - 161. If you want to change the screen and the layout template,
you must set first the screen, then the layout. Yes, it sucks.

If you really want an user configurable Layout (which means, using an
arbitrary layout template instead of the fixed "screen xxx -> layout
xxx" mapping set by the TemplateService, you might either look into
writing a custom mapper class (which would be the most flexible thing,
because you could get the TemplateService to do all the hard work for
you) or work on VelocityOnlyLayout (or VelocityECSLayout) which does
the Layout processing.

Personally, I'd advise to look into the mappers. 

        Regards
                Henning


>Rodrigo
>PS: Well, portuguese is not that difficult to understand if you know
>Spanish... ;)

>----- Original Message ----- 
>From: "Leandro Rodrigo Saad Cruz" <[EMAIL PROTECTED]>
>To: "Turbine Users List" <[EMAIL PROTECTED]>
>Sent: Friday, August 15, 2003 9:28 AM
>Subject: Re: Is the data.setLayoutTemplate() method workind?


>On Fri, 2003-08-15 at 11:12, Rodrigo Reyes wrote:
>> Rodrigo
>>     Because of your name, I suppose your native language is Spanish. So is
>> mine (BTW, my name is also Rodrigo). Still, I will keep writing in English
>> so everybody gets what we are talking here.

>I'm Brazilian... portuguese speaker

>>     So far, I haven't been able to use this method, no matter where I call
>> it (in the Action or in the Screen). What am I trying to accomplish here?
>I
>> am trying to have a different layout from the default in a group of
>screens.

>That's what I wanted. every User pertains to a Project wich has it's own
>layout.

>> Is there any other way to accomplish this? How do you make this method
>work?
>> Did you have to fix Turbine's code? Thanx

>Basically I wrote my own Layout and Screens classes. See attachments.

>IMHO, text generation on T2 is a mess. a PITA to customize and debug :-(



>>
>> Rodrigo :)
>>
>> ----- Original Message ----- 
>> From: "Leandro Rodrigo Saad Cruz" <[EMAIL PROTECTED]>
>> To: "Turbine Users List" <[EMAIL PROTECTED]>
>> Sent: Thursday, August 14, 2003 8:25 PM
>> Subject: Re: Is the data.setLayoutTemplate() method workind?
>>
>>
>> > I made it work on T2.2. Not T2.3. If you want any help drop me a line
>> >
>> > On Thu, 14 Aug 2003 18:33:47 -0500, "Rodrigo Reyes"
>> <[EMAIL PROTECTED]> escreveu:
>> >
>> > > De: "Rodrigo Reyes" <[EMAIL PROTECTED]>
>> > > Data: Thu, 14 Aug 2003 18:33:47 -0500
>> > > Para: <[EMAIL PROTECTED]>,   "turbine-dev"
>> <[EMAIL PROTECTED]>
>> > > Assunto: Is the data.setLayoutTemplate() method workind?
>> > >
>> > > Hi all
>> > >     Is any one using the data.setLayoutTemplate() method? How? I am
>> trying,
>> > > but it doesn't seem to be working. Any help?
>> > >
>> > > Rodrigo Reyes
>> > >
>> > >
>> > >
>> > > ---------------------------------------------------------------------
>> > > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > > For additional commands, e-mail: [EMAIL PROTECTED]
>> > >
>> > >
>> > >
>> > >
>> >
>> > --
>> > Leandro Rodrigo Saad Cruz
>> > IT - Inter Business Tecnologia e
>> > Servi�os (IB)
>> > http://www.ibnetwork.com.br
>> > http://db.apache.org/ojb
>> > http://xingu.sf.net
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: [EMAIL PROTECTED]
>> > For additional commands, e-mail: [EMAIL PROTECTED]
>> >
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>-- 
>Leandro Rodrigo Saad Cruz
>IT - Inter Business Tecnologia e Servicos (IB)
>http://www.ibnetwork.com.br
>http://db.apache.org/ojb
>http://xingu.sourceforge.net



>----------------------------------------------------------------------------
>----


>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]



>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]

-- 
Dipl.-Inf. (Univ.) Henning P. Schmiedehausen          INTERMETA GmbH
[EMAIL PROTECTED]        +49 9131 50 654 0   http://www.intermeta.de/

Java, perl, Solaris, Linux, xSP Consulting, Web Services 
freelance consultant -- Jakarta Turbine Development  -- hero for hire

"Dominate!! Dominate!! Eat your young and aggregate! I have grotty silicon!" 
      -- AOL CD when played backwards  (User Friendly - 200-10-15)

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to