Hmmm, well you can instead of using 'EXIT:QUERY:exitname' as you
value tag, use 'myexiturl'. Then in one element you set the value
with what you obtain from getExitQueryUrl (using that element's exit)
and in the other element you do the same but with the other exit.
Wouldn't that work?
On 2-mrt-06, at 16:47, Eddy Young wrote:
Geert Bevin wrote:
Yes, sort of, why do you need this?
You could do:
template.setValue("tagid", getExitQueryUrl(...));
Uhm, that will not work, I'm afraid.
I am trying to "import" a generated list from a template that is
normally built from another element.
Since the importing element does not have the same exits defined as
that other element, my content generation is failing.
For example, a summary page that lists the same data as the "list
persons" page. From the "summary" element:
Template template = getHtmlTemplate("main.summary");
...
Person[] persons = PersonRepository.findAll();
Template t1 = getHtmlTemplate("persons.list");
PersonTemplateHelper.populateList(this, t1, persons);
template.setValue("persons-list", t1.getValue("persons-list"));
...
"this" is the current element and does not have the same exits that
were designed for the "list persons" element. So, this fails.
I realise that I could generate the list using an embedded element,
but that means re-writing quite a bit of code.
Any ideas?
Eddy
--
http://coding.mu
http://priscimon.com/blog
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users
--
Geert Bevin Uwyn bvba
"Use what you need" Avenue de Scailmont 34
http://www.uwyn.com 7170 Manage, Belgium
gbevin[remove] at uwyn dot com Tel +32 64 84 80 03
PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9
Public PGP key : available at servers pgp.mit.edu, wwwkeys.pgp.net
_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users