[Rife-users] catch Servlet Exception
Hi Geert, when an database error occurs during initializing rife an exception like the following will be displayed in the browser: javax.servlet.ServletException javax.servlet.ServletException at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:168) 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) Is it possible to replace or catch this exception somehow to display the user another error message? Btw.: Thanks for your help! The external authentication works fine now. Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Link from subsite to another subsite
Hi, I have the following main site file (login.xml) site ... globalvar name=termId/ ... globalexit name=termView destid=TERMVIEW/ arrival destid=HOME/ element id=HOME file=elements/login/home.xml url=/home inherits=AUTH_ADMIN flowlink srcexit=dashboard destid=DASHBOARD/ flowlink srcexit=termmanagement destid=TERMMANAGEMENT/ /element ... subsite id=TERMMANAGEMENT file=termmanagement.xml urlprefix=/termmanagement inherits=AUTH_ADMIN/ subsite id=TERMVIEW file=termview.xml urlprefix=/termview/ /site The definition of the subsite 'TERMMANAGEMENT' is the following: site arrival destid=TERMBANKS/ ... group ... element id=EDIT_TERM file=elements/termmanagement/editTerm.xml url=/editTerm flowlink srcexit=termbank destid=TERMBANKS/ flowlink srcexit=termList destid=TERMS/ flowlink srcexit=editRule destid=EDIT_RULE/ flowlink srcexit=deleteSuggestions destid=DELETE_SUGGESTIONS2/ datalink srcoutput=termSelection destid=DELETE_SUGGESTIONS2 destinput=termSelection/ /element /group ... /site Now I want to create a link inside the element EDIT_TERM to the subsite TERMVIEW with the parameter 'termId' e.g.: getExitQueryUrl(termView, new String[]{termId, 27})) Is there an option *not* to use a globalVar ('termView') and a globalExit ('termId') for that link? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] ClassCastException in ElementResultStateSession
Hi Geert, I'm sorry, you asked me to extract my problem with the Milestone 1, but I was little bit to busy. Now I have tested the Milestone 2. And I got a different result: java.lang.ClassCastException: com.uwyn.rife.engine.ElementResultStateSession at com.uwyn.rife.engine.StateStoreQuery.processState(StateStoreQuery.java:2 31) at com.uwyn.rife.engine.StateStoreQuery.exportQueryUrl(StateStoreQuery.java :41) at com.uwyn.rife.engine.CharSequenceQueryUrl.fillInContent(CharSequenceQuer yUrl.java:31) at com.uwyn.rife.engine.CharSequenceDeferred.toString(CharSequenceDeferred. java:46) at com.uwyn.rife.template.InternalString.toString(InternalString.java:37) at com.uwyn.rife.engine.AbstractResponse.writeDeferredContent(AbstractRespo nse.java:332) at com.uwyn.rife.engine.AbstractResponse.flush(AbstractResponse.java:391) at com.uwyn.rife.engine.ElementContext.processContext(ElementContext.java:7 47) at com.uwyn.rife.engine.RequestState.service(RequestState.java:345) at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:419) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:142) 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) Do you have an idea what the reason could be? If not I try to find time to locate the problem and send you the sources. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars Grupe Sent: 19 May 2006 16:24 To: RIFE users list : questions, bug reports and suggestions. Subject: RE: [Rife-users] RIFE 1.5 Milestone 1 available Hi Geert, I replaced the 1.4 rife.jar with the milestone1 (1.5) rife.jar (JDK 1.5). Now I have a problem on at least one page. Every submission that I call yields me to my login page. If I does nothing else than replacing the rife.jar with the older version (1.4), the page is working fine. Any Ideas? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 13 May 2006 20:30 To: RIFE users list : questions, bug reports and suggestions. Subject: [Rife-users] RIFE 1.5 Milestone 1 available Hey, I just uploaded RIFE 1.5 Milestone 1. I decided to not go ahead with the final release since there are still some situations where stateful embedded elements don't work as they should (notably when you create an exit link from an embedded element to another embedded element). The speed increase you get with this release is mainly during development. Before, RIFE checked for every request if any of the site-related files had changed, in case the structure needed to be reloaded. This thus also meant for all the images, styles, ... (since RIFE is a filter). In this release, the reload check is only made once every 10 seconds (this is of course configurable and is only used when auto site reloading is active). The other major new features of this release are: * annotations support for element declaration * step-back continuations * stateful components (which you use submissions and reflexive datalinks) * complete injection and outjection support for all element data (inputs, parameters, inbean, outbeans, incookies, outcookies, parameters, globalvars and globalcookies) * 2 new examples (stateful counters, hangman) * support for create RIFE applications without any XML (not even participants.xml) * upgraded a lot of supported 3rd party libraries * fixes to meta data merging The full changelog is here: https://rife.dev.java.net/files/documents/204/34790/ChangeLog Hope you enjoy this release and please notify us should you run into any problems. Best regards, Geert On 13 May 2006, at 19:39, Emmanuel Okyere wrote: Just to catalog this here, I dropped the 1.5 snapshot into an app i'm working on, and it worked without a hitch; another thing is pages are really snappy now... I don't have any benchmarks, but the difference between rendering in 1.4 and 1.5 snapshot are really noticeable. maybe geert can give some more
RE: [Rife-users] ClassCastException in ElementResultStateSession
Hi Geert, The original problem was, that the login page was shown, when I clicked an element on a spcific page. Now I could not get to this specific page. The ClassCastException occurs when I click a link that points to this page. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 12 June 2006 11:03 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] ClassCastException in ElementResultStateSession Hi Lars, what was the problem again? On 12 Jun 2006, at 10:59, Lars Grupe wrote: Hi Geert, I'm sorry, you asked me to extract my problem with the Milestone 1, but I was little bit to busy. Now I have tested the Milestone 2. And I got a different result: java.lang.ClassCastException: com.uwyn.rife.engine.ElementResultStateSession at com.uwyn.rife.engine.StateStoreQuery.processState (StateStoreQuery.java:2 31) at com.uwyn.rife.engine.StateStoreQuery.exportQueryUrl (StateStoreQuery.java :41) at com.uwyn.rife.engine.CharSequenceQueryUrl.fillInContent (CharSequenceQuer yUrl.java:31) at com.uwyn.rife.engine.CharSequenceDeferred.toString (CharSequenceDeferred. java:46) at com.uwyn.rife.template.InternalString.toString(InternalString.java:37) at com.uwyn.rife.engine.AbstractResponse.writeDeferredContent (AbstractRespo nse.java:332) at com.uwyn.rife.engine.AbstractResponse.flush(AbstractResponse.java:391) at com.uwyn.rife.engine.ElementContext.processContext (ElementContext.java:7 47) at com.uwyn.rife.engine.RequestState.service(RequestState.java:345) at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:419) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:142) 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) Do you have an idea what the reason could be? If not I try to find time to locate the problem and send you the sources. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars Grupe Sent: 19 May 2006 16:24 To: RIFE users list : questions, bug reports and suggestions. Subject: RE: [Rife-users] RIFE 1.5 Milestone 1 available Hi Geert, I replaced the 1.4 rife.jar with the milestone1 (1.5) rife.jar (JDK 1.5). Now I have a problem on at least one page. Every submission that I call yields me to my login page. If I does nothing else than replacing the rife.jar with the older version (1.4), the page is working fine. Any Ideas? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 13 May 2006 20:30 To: RIFE users list : questions, bug reports and suggestions. Subject: [Rife-users] RIFE 1.5 Milestone 1 available Hey, I just uploaded RIFE 1.5 Milestone 1. I decided to not go ahead with the final release since there are still some situations where stateful embedded elements don't work as they should (notably when you create an exit link from an embedded element to another embedded element). The speed increase you get with this release is mainly during development. Before, RIFE checked for every request if any of the site-related files had changed, in case the structure needed to be reloaded. This thus also meant for all the images, styles, ... (since RIFE is a filter). In this release, the reload check is only made once every 10 seconds (this is of course configurable and is only used when auto site reloading is active). The other major new features of this release are: * annotations support for element declaration * step-back continuations * stateful components (which you use submissions and reflexive datalinks) * complete injection and outjection support for all element data (inputs, parameters, inbean, outbeans, incookies, outcookies, parameters, globalvars and globalcookies) * 2 new examples (stateful counters, hangman) * support for create RIFE applications without any XML (not even participants.xml
RE: [Rife-users] ClassCastException in ElementResultStateSession
Hi Geert, Only to bear in remembrance, this problem does not occur when I use 1.4. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 12 June 2006 11:03 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] ClassCastException in ElementResultStateSession Hi Lars, what was the problem again? On 12 Jun 2006, at 10:59, Lars Grupe wrote: Hi Geert, I'm sorry, you asked me to extract my problem with the Milestone 1, but I was little bit to busy. Now I have tested the Milestone 2. And I got a different result: java.lang.ClassCastException: com.uwyn.rife.engine.ElementResultStateSession at com.uwyn.rife.engine.StateStoreQuery.processState (StateStoreQuery.java:2 31) at com.uwyn.rife.engine.StateStoreQuery.exportQueryUrl (StateStoreQuery.java :41) at com.uwyn.rife.engine.CharSequenceQueryUrl.fillInContent (CharSequenceQuer yUrl.java:31) at com.uwyn.rife.engine.CharSequenceDeferred.toString (CharSequenceDeferred. java:46) at com.uwyn.rife.template.InternalString.toString(InternalString.java:37) at com.uwyn.rife.engine.AbstractResponse.writeDeferredContent (AbstractRespo nse.java:332) at com.uwyn.rife.engine.AbstractResponse.flush(AbstractResponse.java:391) at com.uwyn.rife.engine.ElementContext.processContext (ElementContext.java:7 47) at com.uwyn.rife.engine.RequestState.service(RequestState.java:345) at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:419) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:142) 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) Do you have an idea what the reason could be? If not I try to find time to locate the problem and send you the sources. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars Grupe Sent: 19 May 2006 16:24 To: RIFE users list : questions, bug reports and suggestions. Subject: RE: [Rife-users] RIFE 1.5 Milestone 1 available Hi Geert, I replaced the 1.4 rife.jar with the milestone1 (1.5) rife.jar (JDK 1.5). Now I have a problem on at least one page. Every submission that I call yields me to my login page. If I does nothing else than replacing the rife.jar with the older version (1.4), the page is working fine. Any Ideas? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 13 May 2006 20:30 To: RIFE users list : questions, bug reports and suggestions. Subject: [Rife-users] RIFE 1.5 Milestone 1 available Hey, I just uploaded RIFE 1.5 Milestone 1. I decided to not go ahead with the final release since there are still some situations where stateful embedded elements don't work as they should (notably when you create an exit link from an embedded element to another embedded element). The speed increase you get with this release is mainly during development. Before, RIFE checked for every request if any of the site-related files had changed, in case the structure needed to be reloaded. This thus also meant for all the images, styles, ... (since RIFE is a filter). In this release, the reload check is only made once every 10 seconds (this is of course configurable and is only used when auto site reloading is active). The other major new features of this release are: * annotations support for element declaration * step-back continuations * stateful components (which you use submissions and reflexive datalinks) * complete injection and outjection support for all element data (inputs, parameters, inbean, outbeans, incookies, outcookies, parameters, globalvars and globalcookies) * 2 new examples (stateful counters, hangman) * support for create RIFE applications without any XML (not even participants.xml) * upgraded a lot of supported 3rd party libraries * fixes to meta data merging The full changelog is here: https://rife.dev.java.net/files
RE: [Rife-users] Disabling Rife EngineClassLoader
Hi Mustafa, in the web.xml file, you have to add an init-param: init-param param-nameengineclassloader.enabled/param-name param-valuefalse/param-value /init-param Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of mustafa sener Sent: 23 May 2006 14:12 To: rife-users@uwyn.com Subject: [Rife-users] Disabling Rife EngineClassLoader Does anybody know how EngineClassLoader can be disabled? We tried to disable it through servlet init-param but we cannot accomplish it. We are using rife 1.3.1 jdk 1.4 release. Mustafa Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates. ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] RIFE 1.5 Milestone 1 available
Hi Geert, I replaced the 1.4 rife.jar with the milestone1 (1.5) rife.jar (JDK 1.5). Now I have a problem on at least one page. Every submission that I call yields me to my login page. If I does nothing else than replacing the rife.jar with the older version (1.4), the page is working fine. Any Ideas? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 13 May 2006 20:30 To: RIFE users list : questions, bug reports and suggestions. Subject: [Rife-users] RIFE 1.5 Milestone 1 available Hey, I just uploaded RIFE 1.5 Milestone 1. I decided to not go ahead with the final release since there are still some situations where stateful embedded elements don't work as they should (notably when you create an exit link from an embedded element to another embedded element). The speed increase you get with this release is mainly during development. Before, RIFE checked for every request if any of the site-related files had changed, in case the structure needed to be reloaded. This thus also meant for all the images, styles, ... (since RIFE is a filter). In this release, the reload check is only made once every 10 seconds (this is of course configurable and is only used when auto site reloading is active). The other major new features of this release are: * annotations support for element declaration * step-back continuations * stateful components (which you use submissions and reflexive datalinks) * complete injection and outjection support for all element data (inputs, parameters, inbean, outbeans, incookies, outcookies, parameters, globalvars and globalcookies) * 2 new examples (stateful counters, hangman) * support for create RIFE applications without any XML (not even participants.xml) * upgraded a lot of supported 3rd party libraries * fixes to meta data merging The full changelog is here: https://rife.dev.java.net/files/documents/204/34790/ChangeLog Hope you enjoy this release and please notify us should you run into any problems. Best regards, Geert On 13 May 2006, at 19:39, Emmanuel Okyere wrote: Just to catalog this here, I dropped the 1.5 snapshot into an app i'm working on, and it worked without a hitch; another thing is pages are really snappy now... I don't have any benchmarks, but the difference between rendering in 1.4 and 1.5 snapshot are really noticeable. maybe geert can give some more info on this. definitely worth upgrading to, imho... if just for the speed improvement. cheers, Emmanuel On 5/12/06, Geert Bevin [EMAIL PROTECTED] wrote: Hi everyone, tomorrow morning I'll start packaging RIFE 1.5 and put it on the website for download. I'll write the release notes over the coming week and announce the release after JavaOne (it's not a good idea to release anything during the conference). This is the version that will become 1.5 final: http://rifers.org/downloads/rife/snapshots/rife-1.5- snapshot-20060512/ If some of you could test it a bit with your current applications, that would be awesome. Best regards, Geert -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 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 -- Benjamin Disraeli - Nurture your minds with great thoughts. To believe in the heroic makes heroes. ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 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
[Rife-users] authentication session timeout recognition
Hi, When the authentication session has timed out and the user make a reload or click on a link the login page is shown. So far so good. But after login the page of the reload is called. I have many pages that needs data in the session to display correctly. I would like to show the main menu page after each login (which is the default after login). Is there a way to force that, or must I write a check for the session data in each page and then redirect to the main menu page? Thanks in advance Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] encoding problem
Hi Geert, I'm using glue as servlet container. I will build a small example and test in on jetty. If the problem is still there I will send the sample to you. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 31 March 2006 12:04 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] encoding problem Can you package up a self-contained example for me so that I can check this? RIFE should handle encoding automatically, as long as the browser isn't explicitly set to non-unicode. Btw, which servlet container are you running? On 31-mrt-06, at 11:58, Lars Grupe wrote: Hi Geert, When I understand you correctly you asked if I have set an encoding in my browser? I didn't change anything like that in my browser. I tried Internet Explorer and Firefox on different machines and I had everywhere the same problem. I tried to remove the charset parameter from the meta element in the head element, but the result is the same. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 30 March 2006 18:05 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] encoding problem Hi Lars, Do you explicitly change the encoding in your browser and fix it to a particular encoding instead of leaving it on automatic? Please check that. Best regards, Geert On 30-mrt-06, at 17:46, Lars Grupe wrote: Hi, My sites have the following header wit charset=utf-8 ( with iso-8859-1 I have the same problem) head titleacrocheck#8482; Term Design/title link rel=stylesheet href=/css/dashboard.css type=text/css media=screen, projection title=Basic Style / link rel=shortcut icon href=/graphics/favicon.ico / meta http-equiv=Content-Type content=text/html; charset=utf-8 / /head I use the following form as input: form name=editSuggestion action=[!V 'SUBMISSION:FORM:changedSuggestion'/] method=post input type=hidden name=termId value=!--V 'editSuggestionTermId'/-- !--V 'SUBMISSION:PARAMS:changedSuggestion'/-- !--V 'FORM:INPUT:suggestion'/-- /form In my suggestion I call the function: String suggestion = getParameter(suggestion); If I enter 'Höhe' in the form, I get a string 'Höhe'. There is something wrong! Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 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 GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 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] localized login template
Hi Geert, Sorry I can't see how the 'Embedded element priorities' can solve this problem. In the config-base.xml the DEFAULT_RESOURCEBUNDLE is set: param name=L10N_DEFAULT_RESOURCEBUNDLEcom.acrolinx.termmanagement.elements. localization.Resource/param That's working for all my templates except the login template. In my site file I have the following elements defined (among others): element id=HOME file=elements/login/home.xml url=/home inherits=AUTH_ADMIN flowlink srcexit=dashboard destid=DASHBOARD/ flowlink srcexit=termmanagement destid=TERMMANAGEMENT/ /element element id=AUTH_ADMIN file=elements/authentication/administration.xml/ The administration.xml looks like: element extends=elements/authentication/common.xml property name=template_namelogin/login/property property name=roleadmin/property property name=datasource datasourcederby/datasource /property /element common.xml: element extends=rife/authenticated/database.xml submission name=credentials param name=login/ param name=password/ /submission childtrigger name=authid/ /element login.html: !--I 'generic.main'/-- !--BV 'content'-- !--I 'login.form'/-- !--/BV-- main.html: ... head title!--V 'L10N:LABEL.TERM_DESIGN_TITLE'/--/title /head ... div id=subpageContent div id=subpageText !--V 'content'/-- /div /div ... The !--V 'L10N:LABEL.TERM_DESIGN_TITLE'/-- will not be replaced by the string from the resourcebundle. There is no embedded element, or? Or where should I change the priority? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 30 March 2006 11:00 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] localized login template Yes, you can tailor to priority of embedded elements now: http://rifers.org/blogs/gbevin/2006/3/2/ rife_1_4_released#1_4_highlight04 On 30-mrt-06, at 10:53, Lars Grupe wrote: Hi Geert, Is this old problem from November now resolved too? Where can I find information about how L10N should be implemented now? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 25 November 2005 20:51 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] localized login template Hi Lars, hmmm, good point, there is no solution for that at the moment. This needs some thinking and I'd like to find a solution for it since it seems to be an important oversight. I don't have any real solutions in mind at the moment. If you think of something, shoot, I'll ponder about it too. Best regards, Geert On 25-nov-05, at 19:52, Lars Grupe wrote: Hi Geert. Ok, that's working now, many thx again. :) Now I think I have only one problem. I added some strings to the login template which should be localized. If I understand it correct the built-in element rife/authenticated/memory.xml is used to print the template that is given in the 'template_name' property. Is there a way to submit a path to the resource bundle and a name of a global variable where the locale should be taken from? Or do you know another solution for my problem? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 25 November 2005 15:03 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Embedded elements submissions execution order Hi Lars, this will work if you make it a globalcookie. This also makes sense, since you generally would want the user's language preference to be remembered. Best regards, Geert On 25-nov-05, at 14:53, Lars Grupe wrote: Hi Geert, No, it's not a cookie it's a globalvar, that is defined in the site as follows: globalvar name=locale/ I think the problem is not depedent on the type of global var I use. I will show you an part of my log file: [DEBUG] [2005-11-25 14:36:25,187] [init] Home.processElement -- main element [DEBUG] [2005-11-25 14:36:25,234] [init] LanguageSelection.processElement -- embedded element [DEBUG] [2005-11-25 14:36:25,234] [init] LanguageChanged.processElement [DEBUG] [2005-11-25 14:36:25,234] [init] LanguageSelection.processElement [DEBUG] [2005-11-25 14:36:25,234] [init] MainMenu.processElement Now the user selects a new language by clicking on a link the will start a submission of the embedded element. [DEBUG] [2005-11-25 14:36:28,750] [init] Home.processElement -- main element [DEBUG] [2005-11-25 14:36:28,765] [init] Language selected -- submission of embedded element [DEBUG] [2005-11-25
RE: [Rife-users] localized login template
Hi Pierre, Thanks for your answer. I'm not sure if the patch is in the nightly snapshots. I tested it with 'rife-1.4.1-snapshot-jdk15-20060329.jar' but it doesn't work. Should the path 'l10n/authentication/login' point to my login template? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Raoul Pierre Sent: 30 March 2006 11:42 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] localized login template Lars, With the patch I submitted yesterday to Geert about RIFE-258, it will only need to add property name=L10N_REQUIRED_RESOURCEBUNDLEl10n/authentication/login /property in element extends=elements/authentication/common.xml Regards Pierre Hi Geert, Sorry I can't see how the 'Embedded element priorities' can solve this problem. In the config-base.xml the DEFAULT_RESOURCEBUNDLE is set: param name=L10N_DEFAULT_RESOURCEBUNDLEcom.acrolinx.termmanagemen t.elements . localization.Resource/param That's working for all my templates except the login template. In my site file I have the following elements defined (among others): element id=HOME file=elements/login/home.xml url=/home inherits=AUTH_ADMIN flowlink srcexit=dashboard destid=DASHBOARD/ flowlink srcexit=termmanagement destid=TERMMANAGEMENT/ /element element id=AUTH_ADMIN file=elements/authentication/administration.xml/ The administration.xml looks like: element extends=elements/authentication/common.xml property name=template_namelogin/login/property property name=roleadmin/property property name=datasource datasourcederby/datasource /property /element common.xml: element extends=rife/authenticated/database.xml submission name=credentials param name=login/ param name=password/ /submission childtrigger name=authid/ /element login.html: !--I 'generic.main'/-- !--BV 'content'-- !--I 'login.form'/-- !--/BV-- main.html: ... head title!--V 'L10N:LABEL.TERM_DESIGN_TITLE'/--/title /head ... div id=subpageContent div id=subpageText !--V 'content'/-- /div /div ... The !--V 'L10N:LABEL.TERM_DESIGN_TITLE'/-- will not be replaced by the string from the resourcebundle. There is no embedded element, or? Or where should I change the priority? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 30 March 2006 11:00 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] localized login template Yes, you can tailor to priority of embedded elements now: http://rifers.org/blogs/gbevin/2006/3/2/ rife_1_4_released#1_4_highlight04 On 30-mrt-06, at 10:53, Lars Grupe wrote: Hi Geert, Is this old problem from November now resolved too? Where can I find information about how L10N should be implemented now? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 25 November 2005 20:51 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] localized login template Hi Lars, hmmm, good point, there is no solution for that at the moment. This needs some thinking and I'd like to find a solution for it since it seems to be an important oversight. I don't have any real solutions in mind at the moment. If you think of something, shoot, I'll ponder about it too. Best regards, Geert On 25-nov-05, at 19:52, Lars Grupe wrote: Hi Geert. Ok, that's working now, many thx again. :) Now I think I have only one problem. I added some strings to the login template which should be localized. If I understand it correct the built-in element rife/authenticated/memory.xml is used to print the template that is given in the 'template_name' property. Is there a way to submit a path to the resource bundle and a name of a global variable where the locale should be taken from? Or do you know another solution for my problem? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 25 November 2005 15:03 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Embedded elements submissions execution order Hi Lars, this will work if you make it a globalcookie. This also makes sense, since you generally would want the user's language preference to be remembered. Best regards, Geert On 25-nov-05, at 14:53, Lars Grupe wrote
[Rife-users] encoding problem
Hi, My sites have the following header wit charset=utf-8 ( with iso-8859-1 I have the same problem) head titleacrocheck#8482; Term Design/title link rel=stylesheet href=/css/dashboard.css type=text/css media=screen, projection title=Basic Style / link rel=shortcut icon href=/graphics/favicon.ico / meta http-equiv=Content-Type content=text/html; charset=utf-8 / /head I use the following form as input: form name=editSuggestion action=[!V 'SUBMISSION:FORM:changedSuggestion'/] method=post input type=hidden name=termId value=!--V 'editSuggestionTermId'/-- !--V 'SUBMISSION:PARAMS:changedSuggestion'/-- !--V 'FORM:INPUT:suggestion'/-- /form In my suggestion I call the function: String suggestion = getParameter(suggestion); If I enter 'Höhe' in the form, I get a string 'Höhe'. There is something wrong! Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Bug in nightly build
Hi Geert, The official 1.4 release solved my problem. I'm sorry for the stupid subject. And I will take the newest RIFE version in the future, when I have a problem, before asking. Many Thanks! Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 10 March 2006 12:23 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Fwd: [ANN] JAVAWUG BOF XVI / Friday 3rd March [EMAIL PROTECTED]:00 / Oracle Ci ty of London Lars, can you first try with the official 1.4 release? On 10-mrt-06, at 12:18, Lars Grupe wrote: Hi, I broke something in my site structure. And now I get only a NullPointerException. Has someone seen the same problem. What is the best way to find the bug? Btw, I use rife-1.4-snapshot-jdk15-20060213.jar, but I think there is something broken in my site files. If somebody want to have a look at it I can send them. Cheers Lars 10-Mar-2006 12:05:35 com.uwyn.rife.rep.BlockingRepository runParticipants INFO: INITIALIZATION : Creating web application's site structure ... 10-Mar-2006 12:05:35 com.uwyn.rife.rep.participants.ParticipantSite initialize SEVERE: java.lang.NullPointerException at com.uwyn.rife.engine.ElementInfo.populateFrom(ElementInfo.java:202) at com.uwyn.rife.engine.SiteBuilder.processArrivalElement (SiteBuilder.java: 1272) at com.uwyn.rife.engine.SiteBuilder.processData(SiteBuilder.java:1596) at com.uwyn.rife.engine.SiteBuilder.processSubsites(SiteBuilder.java: 1018) at com.uwyn.rife.engine.SiteBuilder.processData(SiteBuilder.java:1591) at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:260) at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:244) at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:176) at com.uwyn.rife.rep.participants.ParticipantSite.initialize (ParticipantSit e.java:36) at com.uwyn.rife.rep.BlockingParticipant.run(BlockingParticipant.java: 252) at java.lang.Thread.run(Thread.java:595) 10-Mar-2006 12:05:36 com.uwyn.rife.rep.participants.ParticipantSite initialize SEVERE: java.lang.NullPointerException at com.uwyn.rife.engine.ElementInfo.populateFrom(ElementInfo.java:202) at com.uwyn.rife.engine.SiteBuilder.processArrivalElement (SiteBuilder.java: 1272) at com.uwyn.rife.engine.SiteBuilder.processData(SiteBuilder.java:1596) at com.uwyn.rife.engine.SiteBuilder.processSubsites(SiteBuilder.java: 1018) at com.uwyn.rife.engine.SiteBuilder.processData(SiteBuilder.java:1591) at com.uwyn.rife.engine.SiteBuilder.finish(SiteBuilder.java:260) at com.uwyn.rife.engine.SiteBuilder.process(SiteBuilder.java:244) at com.uwyn.rife.engine.SiteBuilder.getSite(SiteBuilder.java:176) at com.uwyn.rife.rep.participants.ParticipantSite.initialize (ParticipantSit e.java:36) at com.uwyn.rife.rep.participants.ParticipantSite._getObject (ParticipantSit e.java:49) at com.uwyn.rife.rep.BlockingParticipant.getObject (BlockingParticipant.java :471) at com.uwyn.rife.rep.BlockingParticipant._getObject (BlockingParticipant.jav a:447) at com.uwyn.rife.rep.BlockingParticipant.getObjectAndWait (BlockingParticipa nt.java:441) at com.uwyn.rife.rep.BlockingParticipant.getObject (BlockingParticipant.java :418) at com.uwyn.rife.engine.Site.getRepInstance(Site.java:157) at com.uwyn.rife.engine.Gate.obtainSite(Gate.java:188) at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:301) at com.uwyn.rife.engine.Gate.handleRequest(Gate.java:247) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessor Impl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:120) 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) ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170
[Rife-users] Show progress
Hi, I would like to show a status of a series of function calls. Has anybody done this before? Is there some support in RIFE? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] Show progress
Hi Geert, In one case when the user calls a submission, I have to call a function many times. For time to time I would like to show the user how many calls have been done. So the displayed page must be updated without user interaction. That's what I would like to know. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 08 March 2006 17:05 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Show progress What do you mean by that? On 8-mrt-06, at 16:59, Lars Grupe wrote: Hi, I would like to show a status of a series of function calls. Has anybody done this before? Is there some support in RIFE? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife -users -- Geert Bevin Uwyn bvba GTalk: [EMAIL PROTECTED] Use what you need Avenue de Scailmont 34 Skype: gbevin http://www.uwyn.com 7170 Manage, Belgium AIM: geertbevin gbevin at uwyn dot com Tel: +32 64 84 80 03 Mobile: +32 477 302 599 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
[Rife-users] Implementation design
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 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
[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
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
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
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
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
[Rife-users] How to upload a file with rife?
Hi, I would like to upload files. I defined the following form in the template: form name=uploadFile enctype=multipart/form-data action=[!V 'SUBMISSION:FORM:uploadFile'/] method=post !--V 'SUBMISSION:PARAMS:uploadFile'/-- input name=file type=file size=50 maxlength=10 accept=text/* !--V 'fileUploadButton'/-- /form My submission looks like the following: submission name=uploadFile param name=file/ /submission And I thought, that I can get the file with the following code that handles the submission: public void doUploadFile() { UploadedFile uploadedFile = getUploadedFile(file); logger.debug(UploadedFile: + uploadedFile.getName()); } But I got the following error message: The element 'elements/termmanagement/importSource.xml' doesn't contain file 'file' in submission 'uploadFile'. Must I define a bean with a constraint .file(true)? I couldn't find much about it in the documenation. Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] How to upload a file with rife?
Hi Steph, thanks for your help! It's working now. Referring to your note that the maxlength attribute is only for the filename: RFC 1867 says: If the INPUT tag includes the attribute MAXLENGTH, the user agent should consider its value to represent the maximum Content-Length (in bytes) which the server will accept for transferred files. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of S. Meslin-Weber Sent: 23 January 2006 13:10 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] How to upload a file with rife? Hi Lars, On Mon, Jan 23, 2006 at 11:16:45AM +0100, Lars Grupe wrote: form name=uploadFile enctype=multipart/form-data action=[!V 'SUBMISSION:FORM:uploadFile'/] method=post !--V 'SUBMISSION:PARAMS:uploadFile'/-- input name=file type=file size=50 maxlength=10 accept=text/* !--V 'fileUploadButton'/-- /form Not really a bug, but the maxlength attribute here is for the maximum length of the filename text field - not the uploaded file size, so 100k is perhaps overkill :). If you do want to limit file upload sizes, this can be set in your rep/config-base.xml file with the following (more parameters are available, please see the link to the LiveGuide further down), param name=FILEUPLOAD_SIZE_LIMIT (value in bytes) /param Also note that according to various references on the web, current browsers ignore the accept attribute (it's only intended to filter the file selection dialog on the client anyway). I'm assuming that you've got a !--BV 'fileUploadButton'-- elsewhere in your template to add the submit button :) My submission looks like the following: submission name=uploadFile param name=file/ /submission Ah, there's the problem - you're saying that a parameter called file will be used rather than saying a file will arrive... Checking over the DTD declaration for submission and it takes (param | bean | file). So if we re-write your submission snippet like this: submission name=uploadFile file name=file/ /submission The rest of your code will work. And I thought, that I can get the file with the following code that handles the submission: public void doUploadFile() { UploadedFile uploadedFile = getUploadedFile(file); logger.debug(UploadedFile: + uploadedFile.getName()); } [snippet error messages] Must I define a bean with a constraint .file(true)? I couldn't find much about it in the documenation. No, using beans for file upload isn't required; and you're absolutely right, documentation for such a simple file upload was indeed missing. I've added a section to the RIFE LiveGuide to address this, feel free to amend it if needed: http://rifers.org/wiki/display/RIFE/GuideCookbook#GuideCookbook-sectcook bookfileupload Please let us know how you get on, and thanks for using RIFE! Steph -- Stephane Meslin-Weber Email: [EMAIL PROTECTED] Senior Software Engineer Web: http://odonata.tangency.co.uk ___ Rife-users mailing list Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Localization in radio button labels
Hi, A L10N value inside of an FORM:LABEL block will not be replaced. Is there something wrong in my code or is there a reason why it does not work? Example: !--V 'FORM:RADIO:ruleGeneration'/-- !--B 'FORM:LABEL:ruleGeneration:termbased'--!--V 'L10N:TERM_BASED'/--!--/B-- !--B 'FORM:LABEL:ruleGeneration:lemmabased'--!--V 'L10N:LEMMA_BASED'/--!--/B-- Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] Localization in radio button labels
Hi Geert, There could be the problem. I do it like the following: public void processElement() { Template template = Generic.getTemplate(this, templateName); ResourceBundle resourceBundle = Generic.getResourceBundle(this); printTemplate(template, resourceBundle); } private void printTemplate(Template template, ResourceBundle resourceBundle) { ImportWizard.addStepBar(template, resourceBundle, options); ImportDataBean importData = getInputSerializable(importData); if (importData == null) { importData = new ImportDataBean(); } generateForm(template, new ImportDataBean()); Generic.addSubmitButton(template, resourceBundle, ConstantString.BACK, previousStepButton); Generic.addSubmitButton(template, resourceBundle, ConstantString.CONTINUE, nextStepButton); print(template); } public static Template getTemplate(Element element, String templateName) { // In fact of the language selection the resourceBundle must be // taken after the template Template template = element.getHtmlTemplate(templateName); ResourceBundle resourceBundle = Generic.getResourceBundle(element); template.addResourceBundle(resourceBundle); return template; } Maybe adding the ResourceBundle after calling getHtmlTemplate causes these problem. But this is the only problem I have with this order. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 11 January 2006 16:09 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Localization in radio button labels When do you add the resourcebundles to your template? Lars Grupe wrote: Hi Geert, the main parts of the Bean are the following: private String fileName = null; private String termbankId = null; private String ruleGeneration = null; public ImportDataBean(String fileName, String termbankId, String ruleGeneration) { this.fileName = fileName; this.termbankId = termbankId; this.ruleGeneration = ruleGeneration; } public ImportDataBean() { } protected void activateValidation() { addConstraint(new ConstrainedProperty(ruleGeneration).inList(new String[]{ termbased, lemmabased})); } And the form is generated inside the elements java code with the following call: generateForm(template, new ImportDataBean()); If I write text in the form label block it is shown correctly. e.g.: !--B 'FORM:LABEL:ruleGeneration:termbased'--That's fine!!--/B-- And if I use the same Localization block (e.g.: !--V 'L10N:TERM_BASED'/--) outside the FORM:LABEL block it is also displayed correctly. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 11 January 2006 15:54 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Localization in radio button labels Hi Lars, how is this form being generated? Do you call it explicitly from your element or do you let RIFE automate it? What the model bean that corresponds to this? Best regards, Geert On 11-jan-06, at 15:43, Lars Grupe wrote: Hi, A L10N value inside of an FORM:LABEL block will not be replaced. Is there something wrong in my code or is there a reason why it does not work? Example: !--V 'FORM:RADIO:ruleGeneration'/-- !--B 'FORM:LABEL:ruleGeneration:termbased'--!--V 'L10N:TERM_BASED'/--!--/B-- !--B 'FORM:LABEL:ruleGeneration:lemmabased'--!--V 'L10N:LEMMA_BASED'/--!--/B-- Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com 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 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://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com 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 comTel +32 64 84 80 03 PGP Fingerprint : 4E21 6399 CD9E A384 6619 719A C8F4 D40D 309F
RE: [Rife-users] Localization in radio button labels
Hi Geert, thx, that's working now. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 11 January 2006 16:41 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Localization in radio button labels Hi Lars, can you try doing this after adding your resourcebundle: template.evaluateL10nTags(); The reason for this is that the template localization tags are only evaluated at certain times. When you have default resourcebundles, the template factory knows that they exist and it will call add them when the template is instantiated and during the initialization the evaluateL10nTags method will be called. Similarly, in the getContent() and getDeferredContent() methods, the template knows that you're done and that all the l10n information can be finalized. When you build a form however, the contents of the block tags are extracted from the template to build the form. If your l10n tags aren't evaluated by then, the content will be empty and the form will be built with that. I hope this works and makes sense. Best regards, Geert Lars Grupe wrote: Hi Geert, There could be the problem. I do it like the following: public void processElement() { Template template = Generic.getTemplate(this, templateName); ResourceBundle resourceBundle = Generic.getResourceBundle(this); printTemplate(template, resourceBundle); } private void printTemplate(Template template, ResourceBundle resourceBundle) { ImportWizard.addStepBar(template, resourceBundle, options); ImportDataBean importData = getInputSerializable(importData); if (importData == null) { importData = new ImportDataBean(); } generateForm(template, new ImportDataBean()); Generic.addSubmitButton(template, resourceBundle, ConstantString.BACK, previousStepButton); Generic.addSubmitButton(template, resourceBundle, ConstantString.CONTINUE, nextStepButton); print(template); } public static Template getTemplate(Element element, String templateName) { // In fact of the language selection the resourceBundle must be // taken after the template Template template = element.getHtmlTemplate(templateName); ResourceBundle resourceBundle = Generic.getResourceBundle(element); template.addResourceBundle(resourceBundle); return template; } Maybe adding the ResourceBundle after calling getHtmlTemplate causes these problem. But this is the only problem I have with this order. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 11 January 2006 16:09 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Localization in radio button labels When do you add the resourcebundles to your template? Lars Grupe wrote: Hi Geert, the main parts of the Bean are the following: private String fileName = null; private String termbankId = null; private String ruleGeneration = null; public ImportDataBean(String fileName, String termbankId, String ruleGeneration) { this.fileName = fileName; this.termbankId = termbankId; this.ruleGeneration = ruleGeneration; } public ImportDataBean() { } protected void activateValidation() { addConstraint(new ConstrainedProperty(ruleGeneration).inList(new String[]{ termbased, lemmabased})); } And the form is generated inside the elements java code with the following call: generateForm(template, new ImportDataBean()); If I write text in the form label block it is shown correctly. e.g.: !--B 'FORM:LABEL:ruleGeneration:termbased'--That's fine!!--/B-- And if I use the same Localization block (e.g.: !--V 'L10N:TERM_BASED'/--) outside the FORM:LABEL block it is also displayed correctly. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 11 January 2006 15:54 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] Localization in radio button labels Hi Lars, how is this form being generated? Do you call it explicitly from your element or do you let RIFE automate it? What the model bean that corresponds to this? Best regards, Geert On 11-jan-06, at 15:43, Lars Grupe wrote: Hi, A L10N value inside of an FORM:LABEL block will not be replaced. Is there something wrong in my code or is there a reason why it does not work? Example: !--V
RE: [Rife-users] output and input with beans
Hi Geert, thanks for your help. Because of the disabling of the classloader I couldn't use continuations. But that's no problem. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 09 January 2006 23:18 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] output and input with beans Euhm I meant getInputSerializable On 9-jan-06, at 23:11, Geert Bevin wrote: Hi Lars, such a method was indeed missing, I added getInputSerialized to ElementSupport in between the 1.3 and 1.3.1 release, I forgot to update the javadocs on the site. I'll do it asap. Best regards, Geert On 9-jan-06, at 22:17, Lars Grupe wrote: Hi, I want to write a fexible wizard. I have one element that controls which element has to be the next one. I don't want to have too many input and output values, because the controller element must distribute them too. I would like to have a bean that I can define as an input or output. I tried to bind the bean to an output with setOutput(String name, Object value) But I couldn't find a function that could read a bean from an input. Must I use named beans? Or is there another solution? Or did I understand something completely wrong? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com 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 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://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 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://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] output and input with beans
Hi, I want to write a fexible wizard. I have one element that controls which element has to be the next one. I don't want to have too many input and output values, because the controller element must distribute them too. I would like to have a bean that I can define as an input or output. I tried to bind the bean to an output with setOutput(String name, Object value) But I couldn't find a function that could read a bean from an input. Must I use named beans? Or is there another solution? Or did I understand something completely wrong? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] run java code directly after starting the web server
Hi Emmanuel, Thanks for your answer. But I have an additional question. I like your alternative with the BlockingParticipant. Could you tell me more about the implementation of this. I added a new participant before the site file in the participants.xml: !-- create the database structure -- participant param=com.acrolinx.portal.generic.Setup blocking=trueCreateDatabaseStructureParticipant/participant Must the class that is given in 'param' be an implementation of the Participant interface? Do you have a sample implementation for me? What's the function of the value? e.g.: 'CreateDatabaseStructureParticipant' Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Okyere Sent: 19 December 2005 23:12 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] run java code directly after starting the web server Look at the ~.engine.ElementDeployer class. A typical implementation (this an earlier version of something I had for my Account element) looks like the one i've pasted below. Alternatively, you could create a BlockingParticipant (maybe called Setup) and put all the setup-specific code there, and add it to the repository configuration. hth, -- eokyere public static class Deployer extends ElementDeployer { public void deploy() throws EngineException { Datasource ds = (Datasource) getElementInfo().getProperty(DATASOURCE); try { DatabaseContentFactory.getInstance(ds).install(); } catch (InstallContentErrorException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e)); } ContentQueryManagerAccount accounts = new ContentQueryManagerAccount(ds, Account.class); try { accounts.install(); } catch (DatabaseException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e)); } try { //DatabaseUsersFactory.getInstance(ds).install(); DatabaseUsers users = DatabaseUsersFactory.getInstance(ds); users.install(); users.addRole(admin); users.addRole(user); DatabaseSessionsFactory.getInstance(ds).install(); //DatabaseSessionsFactory.getInstance(ds). logger.info(-- user tbls created -- ); } catch (DatabaseException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessag es(e)); } catch (SessionManagerException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessag es(e)); } } private Logger logger = Logger.getLogger(Deployer.class.getPackage().getName()); } On 12/19/05, Lars Grupe [EMAIL PROTECTED] wrote: Hi, I would like to know if I can run java code directly after starting the web application. I would like to install the users table and the sessions table in the database, directly after starting the web application the first time. Earlier I have no simple access to the config to get the datasource. And my arrival element inherits an authentication element. If there is no easy way to do it, I will generate the database earlier and copy them into my project. But maybe there is an easy way, that you can tell me? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] run java code directly after starting the web server
Hi Geert, That's working now. Thanks! Sadly, I have another question: Is it possible to check if the the user and session tables has been created in the userdatabase without getting an exception if they are missing? I couldn't find an easy way to do that with a DatabaseUsers object. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 20 December 2005 10:54 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] run java code directly after starting the web server Hi Lars, you've got it the wrong way 'round. The syntax is: participant param=someoptionalvaluecom.pakkage.your.Participant/ participant you can leave the param attribute out. You an either extends BlockingParticipant or implement Participant, RIFE should properly wrap the latter for the use with the standard BlockingRepository implementation. You can find examples here: http://rifers.org:8088/viewrep/rifers/rife/trunk/src/framework/com/ uwyn/rife/rep/participants Best regards, Geert Thanks for your answer. But I have an additional question. I like your alternative with the BlockingParticipant. Could you tell me more about the implementation of this. I added a new participant before the site file in the participants.xml: !-- create the database structure -- participant param=com.acrolinx.portal.generic.Setup blocking=trueCreateDatabaseStructureParticipant/participant Must the class that is given in 'param' be an implementation of the Participant interface? Do you have a sample implementation for me? What's the function of the value? e.g.: 'CreateDatabaseStructureParticipant' Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Emmanuel Okyere Sent: 19 December 2005 23:12 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] run java code directly after starting the web server Look at the ~.engine.ElementDeployer class. A typical implementation (this an earlier version of something I had for my Account element) looks like the one i've pasted below. Alternatively, you could create a BlockingParticipant (maybe called Setup) and put all the setup-specific code there, and add it to the repository configuration. hth, -- eokyere public static class Deployer extends ElementDeployer { public void deploy() throws EngineException { Datasource ds = (Datasource) getElementInfo().getProperty(DATASOURCE); try { DatabaseContentFactory.getInstance(ds).install(); } catch (InstallContentErrorException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e)); } ContentQueryManagerAccount accounts = new ContentQueryManagerAccount(ds, Account.class); try { accounts.install(); } catch (DatabaseException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessages(e)); } try { //DatabaseUsersFactory.getInstance(ds).install(); DatabaseUsers users = DatabaseUsersFactory.getInstance(ds); users.install(); users.addRole(admin); users.addRole(user); DatabaseSessionsFactory.getInstance(ds).install(); //DatabaseSessionsFactory.getInstance(ds). logger.info(-- user tbls created -- ); } catch (DatabaseException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessag es(e)); } catch (SessionManagerException e) { logger.warning(ExceptionUtils.getExceptionStackTraceMessag es(e)); } } private Logger logger = Logger.getLogger(Deployer.class.getPackage().getName()); } On 12/19/05, Lars Grupe [EMAIL PROTECTED] wrote: Hi, I would like to know if I can run java code directly after starting the web application. I would like to install the users table and the sessions table in the database, directly after starting the web application the first time. Earlier I have no simple access to the config to get the datasource. And my arrival element inherits
[Rife-users] logout problems
Hi, Could someone give me an explanation, why a link to the LOGOUT element doesn't work? I will tell the story from the beginning: I have a embedded Element 'LOGON_INFO', that show the username of the logged on user. These element has a link that should logout the user. Here are the important lines of the site file: globalvar name=authid/ globalexit name=home destid=HOME/ element id=LOGOUT file=rife/logout/passthrough/database.xml property name=datasource datasourcederby/datasource /property flowlink srcexit=logged_out destid=HOME/ /element element id=LOGON_INFO implementation=com.acrolinx.portal.login.elements.LogonInfo inherits=IDENTIFIED exit name=logout/ flowlink srcexit=logout destid=LOGOUT/ /element element id=IDENTIFIED file=elements/identified.xml property name=authElementIdAUTH_ADMIN/property /element element id=AUTH_ADMIN file=elements/authentication/administration.xml/ element id=HOME implementation=com.acrolinx.portal.login.elements.Home url=/home inherits=AUTH_ADMIN exit name=termmanagement/ flowlink srcexit=termmanagement destid=TERMMANAGEMENT/ /element When I select the logout link that is taken from the exit 'logout' of the LOGON_INFO element no logout is done. Only the element that is actually shown will be repainted. Thank in advance for telling me the story! Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] logout problems
Oh, now I think I have it, the 'LOGOUT' element has no url. Sorry! Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Lars Grupe Sent: 08 December 2005 15:08 To: RIFE users list : questions, bug reports and suggestions. Subject: [Rife-users] logout problems Hi, Could someone give me an explanation, why a link to the LOGOUT element doesn't work? I will tell the story from the beginning: I have a embedded Element 'LOGON_INFO', that show the username of the logged on user. These element has a link that should logout the user. Here are the important lines of the site file: globalvar name=authid/ globalexit name=home destid=HOME/ element id=LOGOUT file=rife/logout/passthrough/database.xml property name=datasource datasourcederby/datasource /property flowlink srcexit=logged_out destid=HOME/ /element element id=LOGON_INFO implementation=com.acrolinx.portal.login.elements.LogonInfo inherits=IDENTIFIED exit name=logout/ flowlink srcexit=logout destid=LOGOUT/ /element element id=IDENTIFIED file=elements/identified.xml property name=authElementIdAUTH_ADMIN/property /element element id=AUTH_ADMIN file=elements/authentication/administration.xml/ element id=HOME implementation=com.acrolinx.portal.login.elements.Home url=/home inherits=AUTH_ADMIN exit name=termmanagement/ flowlink srcexit=termmanagement destid=TERMMANAGEMENT/ /element When I select the logout link that is taken from the exit 'logout' of the LOGON_INFO element no logout is done. Only the element that is actually shown will be repainted. Thank in advance for telling me the story! Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] Logout in embedded object
Hi, I have a problem to show the right template, when the logout is called from a embedded object. The embedded object shows a link that points to a submission of the embedded object. The exit of the submission points to the following 'LOGOUT' object, that does the logout and snaps back to the processElement method of the embedded object. element id=LOGOUT file=rife/logout/passthrough/database.xml property name=datasource datasourcederby/datasource /property flowlink srcexit=logged_out snapback=true/ /element So far so good. My problem is that after the logout the user should see the login page again. But I need a reload, so that the main object (not the embedded) recognizes the logout. What should I change in my architecture? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
[Rife-users] How to get a list of the database users?
Hi all, How can I get the list of the users in a database? Is the listUsers() function of DatabaseUsers the right choice? If so, how must I create an object of the ListUser interface? Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass
Hi Geert, I think it is fine for now. Many thx, for your help and your hints. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 25 November 2005 09:27 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/ site/ValidationErrorclass Hi Lars, could find anything :-/ If it's ok, I'm going to let this rest for a while to see if other people also have this problem. You're the first one to use Glue like that. If you want, you can create an issue in Jira to keep track of it and let people vote on it: http://servlet.uwyn.com/issues/browse/RIFE Best regards, Geert On 24-nov-05, at 11:55, Lars Grupe wrote: Hi Geert, Sorry, there are some things that are new for me. To deploy RIFE on Glue I took a WEB-INF folder from a Glue example (I attached it), changed the web.xml and added the RIFE files. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 24 November 2005 11:35 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/ site/ValidationErrorclass Lars, I think you misunderstood me. How do you deploy your RIFE application inside GLUE? (you explained it the other way 'round). Best regards, Geert -- 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://www.uwyn.com/mailman/listinfo/rife-users WEB-INF.zip ___ Rife-users mailing list Rife-users@uwyn.com 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 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://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] loader constraints violatedwhenlinkingcom/uwyn/rife/site/ValidationError class
Hi Geert, I tested the login on a former version of my site, that is also running on glue. And it worked fine. I think the only difference is that I moved the classes from com.uwyn.rife.jumpstart.x to com.acrolinx.termmanagement.x? I changed the classnames in my site file, too. I will try to find the class that causes the problem. Do you have an idea if I could have forgotten to change a classname somewhere else? Or is there a class that does not like moving? Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 22 November 2005 17:20 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loader constraints violatedwhenlinkingcom/uwyn/rife/site/ValidationError class Hi Lars, I suspect that something is not fully correct in Glue's classloaders and that it conflicts with RIFE. If you don't use continuations, you can add the 'engineclassloader.enabled' init-param to your web.xml to and set it to 'false'. RIFE will then not use its classloader. Best regards, Geert On 22-nov-05, at 17:14, Lars Grupe wrote: Hi Geert, sorry for the delay of my answer, I was interrupted. I got these message when I click first time on my login page (element id=LOGIN). I've added my site xml file. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 22 November 2005 15:59 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loader constraints violated whenlinkingcom/uwyn/rife/site/ValidationError class Do you get this at the initial application startup, or do you get this when edit-reload-hotswap some elements? On 22-nov-05, at 15:52, Lars Grupe wrote: Hi Geert, With the newer jar file I got the same error. I forgot to tell, that RIFE is running on glue now. -- 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://www.uwyn.com/mailman/listinfo/rife-users acrocheckLicense.xml ___ Rife-users mailing list Rife-users@uwyn.com 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 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://www.uwyn.com/mailman/listinfo/rife-users ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] loader constraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationError class
Hi Geert, Yes, I'm sure that I have only one rife-1.3-snapshot-jdk15.jar in my class path. But I figured out some new informations: The problematic file is a Bean file (I attached it). If it is in the package 'com.uwyn.rife.jumpstart.elements.model' all works fine. But if it is in 'com.acrolinx.termmanagement.elements.model' the LinkageError appears. If I remove the addConstraint call from the Bean the error will be the same. At the moment it is the only Bean, that I have defined. Here is an extract from the site file, where the bean is defined: element id=TERM_LIST implementation=com.acrolinx.termmanagement.elements.pub.TermList url=/termList input name=offset/ input name=termbank_id/ input name=term_id/ output name=offset/ output name=termbank_id/ output name=term_id/ exit name=change_offset/ exit name=edit_term/ exit name=edit_suggestion/ exit name=back_to_termbanks/ flowlink srcexit=change_offset destid=TERM_LIST/ datalink srcoutput=offset destid=TERM_LIST destinput=offset/ flowlink srcexit=edit_term destid=EDIT_TERM/ datalink srcoutput=termbank_id destid=EDIT_TERM destinput=termbank_id/ datalink srcoutput=term_id destid=EDIT_TERM destinput=term_id/ datalink srcoutput=term_id destid=TERM_LIST destinput=term_id/ datalink srcoutput=termbank_id destid=TERM_LIST destinput=termbank_id/ flowlink srcexit=back_to_termbanks destid=TERMBANK_LIST/ submission name=selectState param name=termId/ param name=state/ /submission submission name=editSuggestion param name=termId/ /submission submission name=changedSuggestion param name=termId/ bean name=suggestion classname=com.acrolinx.termmanagement.elements.model.SuggestionBean/ /submission !-- flowlink srcexit=edit_name destid=EditName/ datalink srcoutput=elementId destid=EditName destinput=elementId/ state store=session datalink srcoutput=longString destid=EditName destinput=longString/ /state -- /element Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 23 November 2005 16:47 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loader constraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationError class I tested the login on a former version of my site, that is also running on glue. And it worked fine. I think the only difference is that I moved the classes from com.uwyn.rife.jumpstart.x to com.acrolinx.termmanagement.x? I changed the classnames in my site file, too. I will try to find the class that causes the problem. Do you have an idea if I could have forgotten to change a classname somewhere else? Or is there a class that does not like moving? This shouldn't matter at all. Are you sure that you don't have a RIFE jar in GLUE's global lib dir or in your global classpath? It clearly is a classloader issue. I don't think it has anything to do with your code at all. -- 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://www.uwyn.com/mailman/listinfo/rife-users SuggestionBean.java Description: SuggestionBean.java ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass
Hi Geert, Thx :), I'm a bit tired. Now I could disable the rife class loader. This has the other advantage that initializing the application will now take 1 second. Before it takes 10 seconds. Could you explain why the rife class loader needs so much time. There is no difference in using jetty or glue. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 23 November 2005 18:20 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/ site/ValidationErrorclass Hi Lars, I don't think you can declare 2 init params in the same tag, try this: web-app filter filter-nameRIFE/filter-name filter-classcom.uwyn.rife.servlet.RifeFilter/filter-class init-param param-namerep.path/param-name param-valuerep/participants.xml/param-value /init-param init-param param-nameengineclassloader.enabled/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-nameRIFE/filter-name url-pattern/*/url-pattern /filter-mapping /web-app On 23-nov-05, at 18:14, Lars Grupe wrote: Hi Geert, I'm sorry, you are right. The problem appears only when I use glue. If I use jetty all is working fine. I set the init parameter engineclassloader.enabled to false in the RIFE filter like the following: web-app filter filter-nameRIFE/filter-name filter-classcom.uwyn.rife.servlet.RifeFilter/filter-class init-param param-namerep.path/param-name param-valuerep/participants.xml/param-value param-nameengineclassloader.enabled/param-name param-valuefalse/param-value /init-param /filter filter-mapping filter-nameRIFE/filter-name url-pattern/*/url-pattern /filter-mapping /web-app This changes nothing the error is still there. Thanks for searching the problem, I will find out what other troubles I will get with glue. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 23 November 2005 17:43 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/Validat ionError class Hi Lars, I'm sorry to say that afaik this report is not related to the issue at all. It doesn't matter which bean causes it or where it is defined, it's probably not happening if it's inside the other package because it gets loaded before in that case. I'm almost 100% sure that there's a classloader issue with your Glue server. (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/LinkageError.html) Did you try with the initparam I suggested to see if that changed anything? Did you try the application on another servlet container? Geert On 23-nov-05, at 17:30, Lars Grupe wrote: Hi Geert, Yes, I'm sure that I have only one rife-1.3-snapshot-jdk15.jar in my class path. But I figured out some new informations: The problematic file is a Bean file (I attached it). If it is in the package 'com.uwyn.rife.jumpstart.elements.model' all works fine. But if it is in 'com.acrolinx.termmanagement.elements.model' the LinkageError appears. If I remove the addConstraint call from the Bean the error will be the same. At the moment it is the only Bean, that I have defined. Here is an extract from the site file, where the bean is defined: element id=TERM_LIST implementation=com.acrolinx.termmanagement.elements.pub.TermList url=/termList input name=offset/ input name=termbank_id/ input name=term_id/ output name=offset/ output name=termbank_id/ output name=term_id/ exit name=change_offset/ exit name=edit_term/ exit name=edit_suggestion/ exit name=back_to_termbanks/ flowlink srcexit=change_offset destid=TERM_LIST/ datalink srcoutput=offset destid=TERM_LIST destinput=offset/ flowlink srcexit=edit_term destid=EDIT_TERM/ datalink srcoutput=termbank_id destid=EDIT_TERM destinput=termbank_id/ datalink srcoutput=term_id destid=EDIT_TERM destinput=term_id/ datalink srcoutput=term_id destid=TERM_LIST destinput=term_id/ datalink srcoutput=termbank_id destid=TERM_LIST destinput=termbank_id/ flowlink srcexit=back_to_termbanks
RE: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass
Hi Geert, I use the jdk 1.5.0_04. Disabling the classloader removes the previous error in Glue. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 23 November 2005 18:40 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/ site/ValidationErrorclass Which JDK are you using? There can be several reasons for the slowdown: * the RIFE class loader allows for auto-reloading and auto-compiling of element implementations, so it checks some things. * it needs to detect which classes are elements and detect which ones use continuations * it needs to byte-code modify the classes Does disabling the classloader remove the previous error when you use it in Glue? On 23-nov-05, at 18:35, Lars Grupe wrote: Hi Geert, Thx :), I'm a bit tired. Now I could disable the rife class loader. This has the other advantage that initializing the application will now take 1 second. Before it takes 10 seconds. Could you explain why the rife class loader needs so much time. There is no difference in using jetty or glue. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 23 November 2005 18:20 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/ site/ValidationErrorclass Hi Lars, I don't think you can declare 2 init params in the same tag, try this: web-app filter filter-nameRIFE/filter-name filter-classcom.uwyn.rife.servlet.RifeFilter/filter-class init-param param-namerep.path/param-name param-valuerep/participants.xml/param-value /init-param init-param param-nameengineclassloader.enabled/param-name param-valuetrue/param-value /init-param /filter filter-mapping filter-nameRIFE/filter-name url-pattern/*/url-pattern /filter-mapping /web-app On 23-nov-05, at 18:14, Lars Grupe wrote: Hi Geert, I'm sorry, you are right. The problem appears only when I use glue. If I use jetty all is working fine. I set the init parameter engineclassloader.enabled to false in the RIFE filter like the following: web-app filter filter-nameRIFE/filter-name filter-classcom.uwyn.rife.servlet.RifeFilter/filter-class init-param param-namerep.path/param-name param-valuerep/participants.xml/param-value param-nameengineclassloader.enabled/param-name param-valuefalse/param-value /init-param /filter filter-mapping filter-nameRIFE/filter-name url-pattern/*/url-pattern /filter-mapping /web-app This changes nothing the error is still there. Thanks for searching the problem, I will find out what other troubles I will get with glue. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 23 November 2005 17:43 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/Validat ionError class Hi Lars, I'm sorry to say that afaik this report is not related to the issue at all. It doesn't matter which bean causes it or where it is defined, it's probably not happening if it's inside the other package because it gets loaded before in that case. I'm almost 100% sure that there's a classloader issue with your Glue server. (http://java.sun.com/j2se/1.5.0/docs/api/java/lang/LinkageError.html) Did you try with the initparam I suggested to see if that changed anything? Did you try the application on another servlet container? Geert On 23-nov-05, at 17:30, Lars Grupe wrote: Hi Geert, Yes, I'm sure that I have only one rife-1.3-snapshot-jdk15.jar in my class path. But I figured out some new informations: The problematic file is a Bean file (I attached it). If it is in the package 'com.uwyn.rife.jumpstart.elements.model' all works fine. But if it is in 'com.acrolinx.termmanagement.elements.model' the LinkageError appears. If I remove the addConstraint call from the Bean the error will be the same. At the moment it is the only Bean, that I have defined. Here is an extract from the site file, where the bean is defined: element id=TERM_LIST implementation=com.acrolinx.termmanagement.elements.pub.TermList url=/termList input name=offset/ input name=termbank_id/ input name
[Rife-users] loader constraints violated when linking com/uwyn/rife/site/ValidationError class
Hi, could someone tell me what is wrong, when I get this error: java.lang.LinkageError loader constraints violated when linking com/uwyn/rife/site/ValidationError class at com.uwyn.rife.site.Validation getConstrainedPropertyRules ( Validation.java : 174 ) at com.uwyn.rife.site.Validation addConstrainedPropertyRules ( Validation.java : 266 ) at com.uwyn.rife.site.Validation addConstraint( Validation.java : 277 ) at com.uwyn.rife.authentication.credentials.RoleUser activateValidation ( RoleUser.java : 37 ) at com.uwyn.rife.site.Validation ensureActivatedValidation ( Validation.java : 54 ) at com.uwyn.rife.site.Validation getValidatedSubjects ( Validation.java : 632 ) at com.uwyn.rife.site.FormBuilderXhtmlremoveForm ( FormBuilderXhtml.java : 1037 ) at com.uwyn.rife.engine.ElementContextgenerateEmptyForm ( ElementContext.java : 2970 ) at com.uwyn.rife.engine.ElementSupportgenerateEmptyForm ( ElementSupport.java : 4423 ) at com.uwyn.rife.engine.ElementSupportgenerateEmptyForm ( ElementSupport.java : 4388 ) at com.uwyn.rife.authentication.elements.Authenticated processElement ( Authenticated.java : 341 ) at com.uwyn.rife.engine.ElementContextprocessContext ( ElementContext.java : 583 ) at com.uwyn.rife.engine.RequestState service ( RequestState.java : 209 ) at com.uwyn.rife.engine.Gate handleRequest( Gate.java : 397 ) at sun.reflect.GeneratedMethodAccessor5 invoke ( unknown ) at sun.reflect.DelegatingMethodAccessorImpl invoke ( DelegatingMethodAccessorImpl.java : 25 ) at java.lang.reflect.Method invoke ( Method.java : 585 ) Could the reason be that I have no rife/authenticated folder? The following to code snippets point to files that I can not find. Are they part of the rife-1.0.jar? part of common.xml: element extends=rife/authenticated/memory.xml submission name=credentials param name=login/ param name=password/ /submission childtrigger name=authid/ /element part of identified.xml: element extends=rife/authenticated/identified.xml childtrigger name=authid/ /element Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users
RE: [Rife-users] loader constraints violated when linkingcom/uwyn/rife/site/ValidationError class
Hi Geert, With the newer jar file I got the same error. I forgot to tell, that RIFE is running on glue now. java.lang.LinkageError loader constraints violated when linking com/uwyn/rife/site/ValidationError class at com.uwyn.rife.site.Validation getConstrainedPropertyRules ( Validation.java : 176 ) at com.uwyn.rife.site.Validation addConstrainedPropertyRules ( Validation.java : 268 ) at com.uwyn.rife.site.Validation addConstraint( Validation.java : 279 ) at com.uwyn.rife.authentication.credentials.RoleUser activateValidation ( RoleUser.java : 39 ) at com.uwyn.rife.site.Validation ensureActivatedValidation ( Validation.java : 56 ) at com.uwyn.rife.site.Validation getValidatedSubjects ( Validation.java : 634 ) at com.uwyn.rife.site.FormBuilderXhtmlremoveForm ( FormBuilderXhtml.java : 1039 ) at com.uwyn.rife.engine.ElementContextgenerateEmptyForm ( ElementContext.java : 3046 ) at com.uwyn.rife.engine.ElementSupportgenerateEmptyForm ( ElementSupport.java : 4566 ) at com.uwyn.rife.engine.ElementSupportgenerateEmptyForm ( ElementSupport.java : 4531 ) at com.uwyn.rife.authentication.elements.Authenticated processElement ( Authenticated.java : 343 ) at com.uwyn.rife.engine.ElementContextprocessContext ( ElementContext.java : 587 ) at com.uwyn.rife.engine.RequestState service ( RequestState.java : 212 ) at com.uwyn.rife.engine.Gate handleRequest( Gate.java : 422 ) at com.uwyn.rife.engine.Gate handleRequest( Gate.java : 240 ) at sun.reflect.NativeMethodAccessorImpl invoke0 ( NativeMethodAccessorImpl.java ) at sun.reflect.NativeMethodAccessorImpl invoke ( NativeMethodAccessorImpl.java : 39 ) 11 more ... RIFE 1.3-snapshot (c) 2001-2005 by Uwyn bvba/sprl Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 22 November 2005 15:38 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loader constraints violated when linkingcom/uwyn/rife/site/ValidationError class Hi Lars, can you please try this with a recent snapshot, some bugs were fixed in this area: http://rifers.org/downloads/rife/snapshots/ Thanks, Geert On 22-nov-05, at 15:34, Lars Grupe wrote: Hi, could someone tell me what is wrong, when I get this error: java.lang.LinkageError loader constraints violated when linking com/uwyn/rife/site/ValidationError class at com.uwyn.rife.site.Validation getConstrainedPropertyRules ( Validation.java : 174 ) at com.uwyn.rife.site.Validation addConstrainedPropertyRules ( Validation.java : 266 ) at com.uwyn.rife.site.Validation addConstraint( Validation.java : 277 ) at com.uwyn.rife.authentication.credentials.RoleUser activateValidation ( RoleUser.java : 37 ) at com.uwyn.rife.site.Validation ensureActivatedValidation ( Validation.java : 54 ) at com.uwyn.rife.site.Validation getValidatedSubjects ( Validation.java : 632 ) at com.uwyn.rife.site.FormBuilderXhtmlremoveForm ( FormBuilderXhtml.java : 1037 ) at com.uwyn.rife.engine.ElementContextgenerateEmptyForm ( ElementContext.java : 2970 ) at com.uwyn.rife.engine.ElementSupportgenerateEmptyForm ( ElementSupport.java : 4423 ) at com.uwyn.rife.engine.ElementSupportgenerateEmptyForm ( ElementSupport.java : 4388 ) at com.uwyn.rife.authentication.elements.Authenticated processElement ( Authenticated.java : 341 ) at com.uwyn.rife.engine.ElementContextprocessContext ( ElementContext.java : 583 ) at com.uwyn.rife.engine.RequestState service ( RequestState.java : 209 ) at com.uwyn.rife.engine.Gate handleRequest ( Gate.java : 397 ) at sun.reflect.GeneratedMethodAccessor5 invoke ( unknown ) at sun.reflect.DelegatingMethodAccessorImpl invoke ( DelegatingMethodAccessorImpl.java : 25 ) at java.lang.reflect.Method invoke ( Method.java : 585 ) Could the reason be that I have no rife/authenticated folder? The following to code snippets point to files that I can not find. Are they part of the rife-1.0.jar? part of common.xml: element extends=rife/authenticated/memory.xml submission name=credentials param name=login/ param name=password/ /submission childtrigger name=authid/ /element part of identified.xml: element extends=rife/authenticated/identified.xml childtrigger name=authid/ /element Cheers, Lars ___ Rife-users mailing list Rife-users@uwyn.com http://www.uwyn.com/mailman/listinfo/rife-users -- Geert Bevin
RE: [Rife-users] loader constraints violated whenlinkingcom/uwyn/rife/site/ValidationError class
Hi Geert, sorry for the delay of my answer, I was interrupted. I got these message when I click first time on my login page (element id=LOGIN). I've added my site xml file. Cheers, Lars -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin Sent: 22 November 2005 15:59 To: RIFE users list : questions, bug reports and suggestions. Subject: Re: [Rife-users] loader constraints violated whenlinkingcom/uwyn/rife/site/ValidationError class Do you get this at the initial application startup, or do you get this when edit-reload-hotswap some elements? On 22-nov-05, at 15:52, Lars Grupe wrote: Hi Geert, With the newer jar file I got the same error. I forgot to tell, that RIFE is running on glue now. -- 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://www.uwyn.com/mailman/listinfo/rife-users ?xml version=1.0 encoding=UTF-8? !-- - Copyright 2001-2005 Geert Bevin gbevin[remove] at uwyn dot com - Distributed under the terms of the GNU Lesser General Public License, v2.1 or later - $Id: numberguess.xml 1776 2005-04-19 17:51:03Z gbevin $ -- !DOCTYPE site SYSTEM /dtd/site.dtd site globalvar name=authid/ globalvar name=locale/ globalexit name=admin destid=ADMIN/ arrival destid=HOME/ !-- embeddable login box -- element id=AUTH_BOX file=elements/authentication/box.xml/ element id=LOGOUT file=rife/logout/passthrough/memory.xml flowlink srcexit=logged_out snapback=true/ /element element id=LOGIN_BOX file=elements/credentials.xml inherits=AUTH_BOX flowlink srcexit=logout destid=LOGOUT/ /element !-- visitor section -- element id=HOME implementation=com.acrolinx.termmanagement.elements.pub.Home url=/termmanagement property name=namehome/property exit name=more/ flowlink srcexit=more destid=MORE/ /element element id=TERMBANK_LIST implementation=com.acrolinx.termmanagement.elements.pub.TermbankList url=/termbankList input name=offset/ output name=offset/ output name=termbank_id/ exit name=change_offset/ exit name=show_termlist/ flowlink srcexit=change_offset destid=TERMBANK_LIST/ datalink srcoutput=offset destid=TERMBANK_LIST destinput=offset/ flowlink srcexit=show_termlist destid=TERM_LIST/ datalink srcoutput=termbank_id destid=TERM_LIST destinput=termbank_id/ /element element id=TERM_LIST implementation=com.acrolinx.termmanagement.elements.pub.TermList url=/termList input name=offset/ input name=termbank_id/ input name=term_id/ output name=offset/ output name=termbank_id/ output name=term_id/ exit name=change_offset/ exit name=edit_term/ exit name=edit_suggestion/ exit name=back_to_termbanks/ flowlink srcexit=change_offset destid=TERM_LIST/ datalink srcoutput=offset destid=TERM_LIST destinput=offset/ flowlink srcexit=edit_term destid=EDIT_TERM/ datalink srcoutput=termbank_id destid=EDIT_TERM destinput=termbank_id/ datalink srcoutput=term_id destid=EDIT_TERM destinput=term_id/ datalink srcoutput=term_id destid=TERM_LIST destinput=term_id/ datalink srcoutput=termbank_id destid=TERM_LIST destinput=termbank_id/ flowlink srcexit=back_to_termbanks destid=TERMBANK_LIST/ submission name=selectState param name=termId/ param name=state/ /submission submission name=editSuggestion param name=termId/ /submission submission name=changedSuggestion param name=termId/ bean name=suggestion classname=com.acrolinx.termmanagement.elements.model.SuggestionBean/ /submission !-- flowlink srcexit=edit_name destid=EditName/ datalink srcoutput=elementId destid=EditName destinput=elementId/ state store=session datalink srcoutput=longString destid=EditName destinput=longString/ /state -- /element element id=EDIT_TERM implementation=com.acrolinx.termmanagement.elements.pub.EditTerm url=/editTerm input name=termbank_id/ input name=term_id/ output name=termbank_id/ exit name=back_to_termlist/ flowlink srcexit=back_to_termlist destid=TERM_LIST/ datalink srcoutput=termbank_id destid=TERM_LIST destinput=termbank_id/ submission name=selectSubtokenAttribute param name=selectedSubtoken/ param name=selectedAttribute/ /submission submission name=removeAttributeValue param name=selectedSubtoken/ param name=selectedAttribute/ param name=value