Hi Klaus,
Indeed, the template are not executed and have no runtime model, this
is by design.
Similar to HTML, which has no runtime model without Javascript. The
text is simply parsed and you can manipulate the value and block tags
in Java.
If you 'really' want to do this (and you should be sure you want to
do this), you could write a template transformer that creates tags
from the original template content. However, this will again only be
ran once, when the source code of your template is loaded and before
it is parsed.
Best regards,
Geert
On 27 Aug 2007, at 09:04, Klaus wrote:
>
> It seems not possible with standard means to add value tags (r:v) to
> templates at runtime. Basically I want to do the following in
> processElement():
> --
> template = getTemplate();
> ...
> template.setValue("dynamicValueTag","<r:v name=\"MARK:myField\"\>");
> ...
> print(template);
> ---
> Instead of the above given r:v tag text, any other one could be
> imaginable (e.g. RIFE built-in or custom control text).
>
> I don't want to use embedded elements in this case as this seems to be
> an overkill to me.
>
> As I found out, the r:v tags in the template are determined somewhen
> and no public methods are available with Element subclasses to add new
> r:v tags later on.
>
> Could you help me out with a solution? Am I wrong with my assumptions?
>
> Best
>
> Klaus
--
Geert Bevin
Terracotta - http://www.terracotta.org
Uwyn "Use what you need" - http://uwyn.com
RIFE Java application framework - http://rifers.org
Music and words - http://gbevin.com
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"rife-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/rife-users?hl=en
-~----------~----~----~----~------~----~------~--~---