[Bese-devel] Re: Hopefully a simple question

Marco Baringer mb at bese.it
Wed Apr 12 10:53:37 UTC 2006


Friedrich Dominicus <frido at q-software-solutions.de> writes:

> Sorry I meant a tal part, as was pointed out to me by 
> Aycan. If I have such a tal-file which can present som of the
> component, how can I call out from the render method to "use this
> part"
>
> e.g I have
> (defcomponent some-window () 
>   ((val-1)
>    (val-2)))
>
> val-2 may be a object now I have some tal pages to display it and I
> want to call it from my render method from some-window. How would that
> be done?

if val-2 is a template-component then render is sufficenet, if you
don't have a template component but just want to render some randow
tal page then you'll need to use ucw:render-template:

(defmethod render ((a component))
  ....
  (render-template ucw:*context* "path/to/template.tal"
                   (yaclml:tal-env 'component a 
                                   'other-stuff ...))
  ....)

does this anwser your question?

-- 
-Marco
Ring the bells that still can ring.
Forget the perfect offering.
There is a crack in everything.
That's how the light gets in.
	-Leonard Cohen




More information about the bese-devel mailing list