Aha, figured it out: I need to do

   processTemplate(template);
   String homeBlock = template.getBlock("homeBlock");

or actually

   Template tpl = (Template) template.clone();
   processTemplate(tpl);
   String homeBlock = tpl.getBlock("homeBlock");

if I don't want to worry about it possibly resolving values whose defaults I haven't overridden yet.

Is that pretty much the way to go?

Indeed, that's for the standard values that the RIFE's web engine replaced automatically. Normally this is done when you print out the template through the element's print method.

Note that by using getBlock everything is evaluated, even the placeholders that are filled in with the state information for the exits and the submissions. There's another method however, getDefferedBlock, that gives you all the individual content snippets.

Hope this clarifies it a little bit.

Take care,

Geert

--
Geert Bevin
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com


_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to