... or in one line:
for (PatPatient patient : pats.values()) {
setExitQuery(template, "repoverview", new String[] {"casid",
String.valueOf(theid)});
template.setBean(patient);
template.appendBlock("patrows", "patrow");
}
On 5-nov-05, at 21:04, Geert Bevin wrote:
Hi Matthias,
sure, you need to create a flowlink and a datalink for the casid
output.
Then you set the output at each iteration and explicitly generate
the exit at each iteration:
for (PatPatient patient : pats.values()) {
setOutput("casid", theid);
setExitQuery(template, "repoverview");
template.setBean(patient);
template.appendBlock("patrows", "patrow");
}
Best regards,
Geert
On 5-nov-05, at 20:44, Matthias Schmitt wrote:
Hello,
is it possible to reload an site with an param:
repoverview.html:
<ul>
<!--V 'patrows'--><!--/V-->
<!--B 'patrow'--><li><a href="[!V 'EXIT:QUERY:repoverview'/]"><!--
V 'patName'/-->, <!--V 'patFName'/--></a></li><!--/B-->
</ul>
I have an List and iterate over pojos:
public void processElement()
{
Template template = getHtmlTemplate("ixserv.repoverview");
Map<Integer, PatPatient> pats = getPats();
int casid = getInputInt("casid",2);
PatPatient pat = pats.get(casid);
for (PatPatient patient : pats.values()) {
template.setBean(patient);
template.appendBlock("patrows", "patrow");
}
print(template);
}
i want to have:
<ul>
<li><a href="/ixserv/repoverview?casid=2">Schmitt2, Matt</a></li>
<li><a href="/ixserv/repoverview?casid=1">Schmitt1, Matt</a></li>
<li><a href="/ixserv/repoverview?casid=3">Schmitt3, Matt</a></li>
</ul>
is this possible with rife?
_______________________________________________
Rife-users mailing list
[email protected]
http://www.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://www.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://www.uwyn.com/mailman/listinfo/rife-users