In short:
http://rifers.org/blogs/gbevin/2006/3/2/
rife_1_4_released#1_4_highlight09
:-)
On 2-mrt-06, at 18:59, Lars Grupe wrote:
Hi Geert,
Tanks for your answer, this was very helpful.
But I have an additional question:
Now I use such globalvars.
Is it possible to create a link that call a submission and directly
changes the globalvar?
e.g.:
<globalvar name="id1"/>
And in the code something ike that:
template.setValue("select_proposed_url",
getSubmissionQueryUrl("selectState",
new String[]{"id1", "value"}));
I think I must define a submission parameter "id1second", read it
in the
submission and set the value of "id1" to the value of "id1second".
Cheers,
Lars
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
Sent: 02 March 2006 10:42
To: RIFE users list : questions, bug reports and suggestions.
Subject: Re: [Rife-users] Implementation design
Hi Lars,
if you want to have data that is preserved over several
elements, you
need to declare datalinks for the state. However, for the situation
that you're describing, RIFE has a handy shortcut: globalvars. These
automatically declare inputs and outputs for the elements in the
scope and link them together. To limit the scope you can either use
subsites or groups:
<site>
<group>
<globalvar name="id1"/>
<globalvar name="id2"/>
<globalvar name="order"/>
<globalvar name="search"/>
<globalvar name="offset"/>
<element id="..." ... />
<element id="..." ... />
<element id="..." ... />
</group>
<element id="..." ... />
</site>
Hope this helps, best regards,
Geert
On 1-mrt-06, at 19:05, Lars Grupe wrote:
Hi,
I have an element that shows a list of terms in pages. The user can
filter the terms, change the order of the terms and scroll
through the
pages. So these element has 5 inputs and 5 outputs to
remember 2 ids,
the order, a search string and an offset. The user can also select
several links where he can edit the selected term. Then
other elements
are used to edit the term. If the term is edited the user
comes back
to the list of terms. At
this
point I need the information about the state of the termspage again.
Should the elements that are used for editing have the 5
inputs and 5
outputs of the list element, too? Or is there another way
to store the
data in the session and read them again, when it is needed?
Cheers,
Lars
_______________________________________________
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
_______________________________________________
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