Re: [Rife-users] store String in session
Hi Lars, yesterday, I fixed a bug related to classloading. You might want to try out the latest snapshot. Best regards, Geert On 10-feb-06, at 14:55, Lars Grupe wrote: Hi Geert, From time to time I will test a new snapshot. And I will tell you if the state is changed. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:49 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Thanks for the answer. Because of the special glue webserver I couln't use continuations. I forgot to tell you that the rife.jar 1.3.1 does have the same 'java.lang.LinkageError' as the older version before. Have you tried to use a recent snapshot, I think there was some additional work done on the classloader. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, Sorry, but there are no news. With the nightly build from 13.2.2006 I get the same error as before: javax.servlet.ServletException javax.servlet.ServletException at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:139) at electric.servlet.filters.ServletFilterChain.doFilter(Unknown Source) at electric.servlet.HTTPContext.service(Unknown Source) at electric.servlet.ServletEngine.service(Unknown Source) at electric.webserver.WebServer.service(Unknown Source) at electric.net.socket.SocketServer.run(Unknown Source) at electric.net.socket.SocketRequest.run(Unknown Source) at electric.util.thread.ThreadPool.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) But for the moment that is not a big problem for me. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 13 February 2006 11:18 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Hi Lars, yesterday, I fixed a bug related to classloading. You might want to try out the latest snapshot. Best regards, Geert On 10-feb-06, at 14:55, Lars Grupe wrote: Hi Geert, From time to time I will test a new snapshot. And I will tell you if the state is changed. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:49 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Thanks for the answer. Because of the special glue webserver I couln't use continuations. I forgot to tell you that the rife.jar 1.3.1 does have the same 'java.lang.LinkageError' as the older version before. Have you tried to use a recent snapshot, I think there was some additional work done on the classloader. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
Hi Lars, shame :-( On 13-feb-06, at 11:43, Lars Grupe wrote: Hi Geert, Sorry, but there are no news. With the nightly build from 13.2.2006 I get the same error as before: javax.servlet.ServletException javax.servlet.ServletException at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:139) at electric.servlet.filters.ServletFilterChain.doFilter(Unknown Source) at electric.servlet.HTTPContext.service(Unknown Source) at electric.servlet.ServletEngine.service(Unknown Source) at electric.webserver.WebServer.service(Unknown Source) at electric.net.socket.SocketServer.run(Unknown Source) at electric.net.socket.SocketRequest.run(Unknown Source) at electric.util.thread.ThreadPool.run(Unknown Source) at java.lang.Thread.run(Thread.java:595) But for the moment that is not a big problem for me. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 13 February 2006 11:18 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Hi Lars, yesterday, I fixed a bug related to classloading. You might want to try out the latest snapshot. Best regards, Geert On 10-feb-06, at 14:55, Lars Grupe wrote: Hi Geert, From time to time I will test a new snapshot. And I will tell you if the state is changed. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:49 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Thanks for the answer. Because of the special glue webserver I couln't use continuations. I forgot to tell you that the rife.jar 1.3.1 does have the same 'java.lang.LinkageError' as the older version before. Have you tried to use a recent snapshot, I think there was some additional work done on the classloader. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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
[Rife-users] store String in session
Hi, What is the right implementation for the following scenario: I have an element with several submissions. And I would like to have a long string that is only stored in the session. Everytime a submission is called I want read the long string change it and store it again. Thanks for your help in advance Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, Yes, it must not timeout, but it can timeout like a traditional session. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 13:13 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Hi Lars, does this have to timeout after a while (just as a traditional session does) or not? Best regards, Geert On 10-feb-06, at 13:08, Lars Grupe wrote: Hi, What is the right implementation for the following scenario: I have an element with several submissions. And I would like to have a long string that is only stored in the session. Everytime a submission is called I want read the long string change it and store it again. Thanks for your help in advance Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
Is this a series of submissions, like a wizard? Yes, it must not timeout, but it can timeout like a traditional session. I have an element with several submissions. And I would like to have a long string that is only stored in the session. Everytime a submission is called I want read the long string change it and store it again. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, Thanks for the answer. Because of the special glue webserver I couln't use continuations. I forgot to tell you that the rife.jar 1.3.1 does have the same 'java.lang.LinkageError' as the older version before. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
Thanks for the answer. Because of the special glue webserver I couln't use continuations. I forgot to tell you that the rife.jar 1.3.1 does have the same 'java.lang.LinkageError' as the older version before. Have you tried to use a recent snapshot, I think there was some additional work done on the classloader. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, From time to time I will test a new snapshot. And I will tell you if the state is changed. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:49 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Thanks for the answer. Because of the special glue webserver I couln't use continuations. I forgot to tell you that the rife.jar 1.3.1 does have the same 'java.lang.LinkageError' as the older version before. Have you tried to use a recent snapshot, I think there was some additional work done on the classloader. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, I have a question to the sample code in http://rifers.org/paste/show/88. Where is the 'output name=longstring' and the flowlink for the datalink? If I have a flowlink it is bound to an exit. Will the output from 'longstring' go to the input 'longstring' too, when the submission is called and not the exit? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
Thanks! From time to time I will test a new snapshot. And I will tell you if the state is changed. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
Geert Bevin wrote: I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) For some reason, I failed to notice the configurable state storage in RIFE and have been using my own SessionManager all this time :-) Reading through the docs, I cannot help but think, why are the Seam guys bragging so much about conversations when RIFE already does this in a much simpler way? Eddy -- http://coding.mu http://priscimon.com/blog ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, Sorry, I didn't know how to inline an element definition in the site-structure. Did you mean that there is only one element in the site? I got every time an error message, that the ouptput definition is missing. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 15:09 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Hi Lars, if you inline the element definition in the site-structure, the outputs area automatically created for datalinks if they don't exist. If you're inside an element and call submissions repeatedly (note that you never triggered an exit, and this didn't leave it). Outputs will automatically provide their data to inputs with the same name. Best regards, Geert On 10-feb-06, at 15:03, Lars Grupe wrote: Hi Geert, I have a question to the sample code in http://rifers.org/paste/ show/88. Where is the 'output name=longstring' and the flowlink for the datalink? If I have a flowlink it is bound to an exit. Will the output from 'longstring' go to the input 'longstring' too, when the submission is called and not the exit? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
For some reason, I failed to notice the configurable state storage in RIFE and have been using my own SessionManager all this time :-) The first rule of RIFE is, when something fundamental is difficult, ask first! The second rule of RIFE is, when something fundamental is difficult, ask first! The third rule of RIFE is, when in doubt if something is fundamental, ask! Reading through the docs, I cannot help but think, why are the Seam guys bragging so much about conversations when RIFE already does this in a much simpler way? Why are so many projects bragging about things that RIFE does easier and more consistently? I don't know, but it's frustrating indeed. A notable entry there is Jetty 6's 'continuations' feature that aren't even continuations at all, but parked requests. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
OK... Here is one question. What is a typical legitimate use of this feature? Right now, I use my own SessionManager to store user information (basically, an account bean representing the current user). This is not very different from a session variable as I cannot control the scope of the object (as outlined in your review of pros/cons of session variables). Would it be legitimate here to store this bean using the session storage? Actually, the main use of this feature is storage of data on the server-side for performance, size, or security reasons. The semantics of the data in the state transitions are exactly the same as what you know with globalvars and datalinks, they just are stored in the session instead of in the query string or hidden form parameters. Note that this is totally different from regular session access, since each state transition gets a unique ID and the entire state is stored in the session. This makes the back button and bookmarking still work, as long as the session isn't purged. Why are so many projects bragging about things that RIFE does easier and more consistently? I don't know, but it's frustrating indeed. A notable entry there is Jetty 6's 'continuations' feature that aren't even continuations at all, but parked requests. Blogosphere destroys individuality and any chance of individual thought. Nowadays, if someone is a good writer/speaker, he/she can pass anything as the absolute thruth by introducing it in the blogosphere. Hence why we need more people blogging about RIFE! (hint, hint) ;-) -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
Re: [Rife-users] store String in session
Why are so many projects bragging about things that RIFE does easier and more consistently? I don't know, but it's frustrating indeed. A notable entry there is Jetty 6's 'continuations' feature that aren't even continuations at all, but parked requests. Blogosphere destroys individuality and any chance of individual thought. Nowadays, if someone is a good writer/speaker, he/she can pass anything as the absolute thruth by introducing it in the blogosphere. Don't hesitate to write a comment here either: http:// www.theserverside.com/news/thread.tss?thread_id=38949 -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] store String in session
Hi Geert, Unfortunately I have still some problems. Now I use inlined definition, but I think that is not the problem. My element has the name 'EDIT_TERM'. I defined an input and an output of the same name (e.g. termRule). I have not defined a datalink. The first lines of processElement() are: String termRule = getInput(termRule); logger.debug(InputTermRule: + StringHelper.quote(termRule)); setOutput(termRule, a string); And the first lines of the Submission function are: String termRule = getInput(termRule); logger.debug(InputTermRule: + StringHelper.quote(termRule)); When the page is entered the first time termRule is null, but when directly afterwards the submission is called, termRule is still null? When I now add a the following datalink to the element definition: datalink srcoutput=termRule destid=EDIT_TERM destinput=termRule/ I get the error message: 'Impossible to create a data link from element 'manual:EDIT_TERM' to element 'manual:EDIT_TERM' since no flow link is available.' When I add a flowlink and an exit like the following; exit name=change/ flowlink srcexit=change destid=EDIT_TERM/ the termRule input is still null after calling the submission. Do you know what is going wrong? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 15:31 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Hi Lars, just add the output declaration then, my notation is a shortcut. An in-lined element definition means that you don't use an external file to specific the element but do it entirely in the site-structure. Best regards, Geert On 10-feb-06, at 15:23, Lars Grupe wrote: Hi Geert, Sorry, I didn't know how to inline an element definition in the site-structure. Did you mean that there is only one element in the site? I got every time an error message, that the ouptput definition is missing. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 15:09 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session Hi Lars, if you inline the element definition in the site-structure, the outputs area automatically created for datalinks if they don't exist. If you're inside an element and call submissions repeatedly (note that you never triggered an exit, and this didn't leave it). Outputs will automatically provide their data to inputs with the same name. Best regards, Geert On 10-feb-06, at 15:03, Lars Grupe wrote: Hi Geert, I have a question to the sample code in http://rifers.org/paste/ show/88. Where is the 'output name=longstring' and the flowlink for the datalink? If I have a flowlink it is bound to an exit. Will the output from 'longstring' go to the input 'longstring' too, when the submission is called and not the exit? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 February 2006 14:34 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] store String in session I would simply use continuations. If that's not an option for you, you can use session state storage. I whipped out a small example for you: http://rifers.org/paste/show/88 http://rifers.org/paste/show/89 http://rifers.org/paste/show/90 (note that I found a bug which makes this not work when it's the arrival of a site, I'm working on it to fix it) Yes, it has a series of submissions all from the same element. It is like a wizard, but it is not a wizard. It is a series of changes on a single page. -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F D6A9 Public PGP key : available
Re: [Rife-users] store String in session
Don't hesitate to write a comment here either: http:// www.theserverside.com/news/thread.tss?thread_id=38949 I'm not sure if this is a good thing to encourage. This is an article about Seam,and in Marcus' Wonderful World, people should comment only on Seam itself, and not use the article to bash the very same product featured there, or to promote competing products. I'm certainly not advocating bashing another product nor pushing a competing one, but asking critical questions or commenting on features is appropriate there imho. The question that Eddy asked, is a good one and that thread is a good thread to ask it in. That being said, I'm glad MWW exists only in my mind. What fun would be reading TSS without it's daily flaming thread? :-) -- Geert Bevin Uwyn bvba Use what you need Avenue de Scailmont 34 http://www.uwyn.com 7170 Manage, Belgium gbevin[remove] at uwyn dot comTel +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 Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users