On 9/14/01 12:25 AM, "Dan Bachelder" <[EMAIL PROTECTED]> wrote:
>> Here is what I currently do to work around this:
>>
>> Instantiate UIManager manually and then stuff whatever you need
>> from it into the context:
>
> I was just doing that :)
>
>> Doing the same for TemplateLink ($link) is much harder (I have given
>> up for the moment) as you need a ServletData object in order to
>> initialise this which in turn requires a bunch of methods in
> TurbineServlet
>> to work when they don't.
>
> that kindof hurts... It looks like the jobs that run are disconected from
> the
> instance of turbine... you could build your own serverdata but you'd have
> to have the server info available somewhere. Luckily I can drop the $link
> stuff for now... I'll have to change templates though... oh well...
The job scheduler in 2.x is a bit of a tangle, but scheduled jobs are
distinct from redering content. The servlet info is available from the
servlet service and in Turbine 3.0 the server info is available directly
from the Turbine servlet itself.
People have reported the servlet service not working in 2.x but I only use
it in the 2.x sample app for the UI manager.
>>
>> You will need to check back in the mail archive as I cannot remember
>> where the discussion ended - I think a fix had been committed for 3.0,
>> but not 2.1. I think I chased this for a while but reached a dead end
>> somewhere.
>
> yup, got that now... I was having trouble thinking of what to search for...
>
>> context.put("systemurl", ui.get("systemURL"));
>>
>> Its a hack, but it works as long as you edit the skin file when you move
>> it between systems (I just code the production system address in my
>> development system).
>
> sure is a hack :) good one though... it looks like you'd have to hardcode
> that
> info somewhere no mater what solution was used...
>
> thanks...
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
--
jvz.
Jason van Zyl
http://tambora.zenplex.org
http://jakarta.apache.org/turbine
http://jakarta.apache.org/velocity
http://jakarta.apache.org/alexandria
http://jakarta.apache.org/commons
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]