[Rife-users] catch Servlet Exception

2006-07-14 Thread Lars Grupe
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


RE: [Rife-users] Authentication with external source

2006-07-05 Thread Lars Grupe
Hi Geert,

Thanks for your quick reply! I had looked at that example before, but
I'm under the impression it solves a slightly different problem. The
example illustrates how to get the login data from the user in a
different fashion: namely by taking them from the HTTP header instead of
having the user enter them in a form. It then uses MemoryUser to do the
actual validation of credentials.

What I would like to do is replace MemoryUser by a different
implementation that authenticates the user and password using a SOAP
call to our web service. 

Is there a way to provide an alternative implementation to replace
MemoryUser or DatabaseUser?

Or am I misunderstanding something completely?

Thanks for any hints,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 04 July 2006 18:13
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] Authentication with external source
> 
> 
> Hi Lars,
> 
> Sure, you can setup any kind of authentication that you can 
> think of,  
> as long as each different user is identified by a unique ID. Here is  
> an example that does regular HTTP authentication: http://rifers.org/ 
> wiki/display/RIFE/HTTP+authentication
> 
> Hope this helps,
> 
> Geert
> 
> On 04 Jul 2006, at 17:58, Lars Grupe wrote:
> 
> > Hi,
> >
> > I want to authenticate the users from an external source 
> (in my case a 
> > SOAP call). So I don't want to use Database users or Memory 
> users but 
> > I want use RIFE authentication.
> > Is there a way to do that?
> >
> > Cheers,
> > Lars
> >
> > P.S.: Thanks Geert for the last hint (link from subsite to another 
> > subsite). It works fine. 
> > ___
> > Rife-users mailing list
> > Rife-users@uwyn.com 
> http://lists.uwyn.com/mailman/listinfo/rife> -users
> >
> 
> --
> Geert 
> Bevin
> Uwyn "Use what you need" - 
> http://uwyn.com
> RIFE Java application framework - http://rifers.org
> Music and words - http://gbevin.com
> 
> 
> ___
> 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 with external source

2006-07-04 Thread Lars Grupe
Hi,

I want to authenticate the users from an external source (in my case a
SOAP call).
So I don't want to use Database users or Memory users but I want use
RIFE authentication. 
Is there a way to do that?

Cheers,
Lars

P.S.: Thanks Geert for the last hint (link from subsite to another
subsite). It works fine.
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


[Rife-users] Link from subsite to another subsite

2006-06-29 Thread Lars Grupe
Hi,

I have the following main site file (login.xml)

  
...

...









...






The definition of the subsite 'TERMMANAGEMENT' is the following:

  

...

...









...



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


RE: [Rife-users] ClassCastException in ElementResultStateSession

2006-06-12 Thread Lars Grupe
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
> >> em

RE: [Rife-users] ClassCastException in ElementResultStateSession

2006-06-12 Thread Lars Grupe
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 elemen

[Rife-users] ClassCastException in ElementResultStateSession

2006-06-12 Thread Lars Grupe
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 sh

RE: [Rife-users] Disabling Rife EngineClassLoader

2006-05-23 Thread Lars Grupe
Hi Mustafa,

in the web.xml file, you have to add an init-param:


engineclassloader.enabled
false


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

2006-05-19 Thread Lars Grupe
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.

[Rife-users] authentication session timeout recognition

2006-05-08 Thread Lars Grupe
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


[Rife-users] RIFE session timeout

2006-04-27 Thread Lars Grupe
Hi,

Does RIFE set a session timeout for its own, or does it use the
webserver settings where it is running at?

Cheers,
Lars
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] encoding problem

2006-03-31 Thread Lars Grupe
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)
> >>>
> >>>
> >>> 
> >>>   acrocheck™ Term Design
> >>>>> type="text/css"
> >>> media="screen, projection" title="Basic Style" />
> >>>   
> >>>   
> >>> 
> >>>
> >>> I use the following form as input:
> >>>
> >>>  >>>   name="editSuggestion"
> >>>   action="[!V 'SUBMISSION:FORM:changedSuggestion'/]"
> >>>   method="post">
> >>>
> >>>   
> >>>   
> >>>   
> >>>
> >>> 
> >>>
> >>> 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] encoding problem

2006-03-31 Thread Lars Grupe
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)
> >
> >
> > 
> > acrocheck™ Term Design
> >  type="text/css"  
> > media="screen, projection" title="Basic Style" />
> > 
> > 
> > 
> >
> > I use the following form as input:
> >
> >  > name="editSuggestion"
> > action="[!V 'SUBMISSION:FORM:changedSuggestion'/]"
> > method="post">
> >
> > 
> > 
> > 
> >
> > 
> >
> > 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


[Rife-users] encoding problem

2006-03-30 Thread Lars Grupe
Hi,

My sites have the following header wit charset="utf-8" ( with "iso-8859-1" I 
have the same problem)



acrocheck™ Term Design





I use the following form as input:









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


RE: [Rife-users] localized login template

2006-03-30 Thread Lars Grupe
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
> 
>  name="L10N_REQUIRED_RESOURCEBUNDLE">l10n/authentication/login<
> /property>
> 
> in
> 
> 
> 
> 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:
> >  >name="L10N_DEFAULT_RESOURCEBUNDLE">com.acrolinx.termmanagemen
> t.elements
> >.
> >localization.Resource
> >
> >That's working for all my templates except the login template.
> >
> >In my site file I have the following elements defined (among others):
> > >inherits="AUTH_ADMIN">
> > 
> > 
> >
> >
> > >file="elements/authentication/administration.xml"/>
> >
> >
> >The administration.xml looks like:
> >
> >login/login
> >admin
> > 
> > derby
> > 
> >
> >
> >common.xml:
> >
> > 
> > 
> > 
> > 
> >
> > 
> >
> >
> >login.html:
> >
> >
> >
> >
> > 
> >
> >
> >main.html:
> >...
> >
> > 
> >
> >...
> >
> > 
> > 
> > 
> >
> >...
> >
> >The  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

RE: [Rife-users] localized login template

2006-03-30 Thread Lars Grupe
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:
com.acrolinx.termmanagement.elements.
localization.Resource

That's working for all my templates except the login template.

In my site file I have the following elements defined (among others):








The administration.xml looks like:

login/login
admin

derby

 

common.xml:









login.html:







main.html:
...



...





...

The  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:
> >>>>>  
> >>>>>
> >>>>> 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
> >>>>> &l

RE: [Rife-users] localized login template

2006-03-30 Thread Lars Grupe
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:
> >>>  
> >>>
> >>> 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 14:36:28,765] [init] 
> >>> LanguageChanged.processElement [DEBUG] [2005-11-25 14:36:28,765] 
> >>> [init] LanguageSelection.processElement
> >>> [DEBUG] [2005-11-25 14:36:28,781] [init] MainMenu.processElement
> >>>
> >>> In the second main element line I would like to know to
> >> which language
> >>> was selected in the embedded element. But the submission 
> is called 
> >>> later, what I understand. But now the global variable has
> >> been changed
> >>> but the page is displayed in the old language. Another click will 
> >>> change the language on the page. So that is not what I 
> would like to 
> >>> have:
> >>> E.g.: On an English page you click on 'German' and the 
> page is shown 
> >>> again in 'English', if you choose another link, than the 
> language of 
> >>> the page will be 'German'.
> >>>
> >>> So my problem is, if I could manage that with a embedded 
> element? I 
> >>>

[Rife-users] Bug in nightly build

2006-03-10 Thread Lars Grupe
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.Me

RE: [Rife-users] Fwd: [ANN] JAVAWUG BOF XVI / Friday 3rd March 2006 @19:00 / Oracle Ci ty of London

2006-03-10 Thread Lars Grupe
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


RE: [Rife-users] Show progress

2006-03-08 Thread Lars Grupe
Hi Geert,

Thanks for the answer. I thouhgt on ajax, too. I will have a look at it.

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 08 March 2006 17:38
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] Show progress
> 
> 
> Hi Lars,
> 
> I think that the nicest way to do this, is to query the advancement  
> through DWR with Ajax and show an indicator to the users 
> according to  
> the result that you get.
> 
> Alternatively, you can use the multipart/x-mixed-replace 
> content type  
> and continuously stream out a document with the right boundary at  
> each progress step.
> 
> Hope this helps.
> 
> Best regards,
> 
> Geert
> 
> On 8-mrt-06, at 17:09, Lars Grupe wrote:
> 
> > 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
> >
> 
> --
> 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] Show progress

2006-03-08 Thread Lars Grupe
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] Show progress

2006-03-08 Thread Lars Grupe
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] Implementation design

2006-03-02 Thread Lars Grupe
Hi Geert,

Tanks for your answer, this was very helpful.
But I have an additional question:
Now I use such globalvars. 
Is it possible to create a link that call a submission and directly
changes the globalvar?

e.g.:

  

And in the code something ike that:
template.setValue("select_proposed_url",
getSubmissionQueryUrl("selectState",
new String[]{"id1", "value"}));

I think I must define a submission parameter "id1second", read it in the
submission and set the value of  "id1" to the value of "id1second".

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 02 March 2006 10:42
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] Implementation design
> 
> 
> Hi Lars,
> 
> if you want to have data that is preserved over several 
> elements, you  
> need to declare datalinks for the state. However, for the situation  
> that you're describing, RIFE has a handy shortcut: globalvars. These  
> automatically declare inputs and outputs for the elements in the  
> scope and link them together. To limit the scope you can either use  
> subsites or groups:
> 
>  
>  
>  
>  
>  
>      
> 
>  
>  
>  
>  
> 
>  
> 
> 
> 
> Hope this helps, best regards,
> 
> Geert
> 
> On 1-mrt-06, at 19:05, Lars Grupe wrote:
> 
> > Hi,
> >
> > I have an element that shows a list of terms in pages. The user can 
> > filter the terms, change the order of the terms and scroll 
> through the 
> > pages. So these element has 5 inputs and 5 outputs to 
> remember 2 ids, 
> > the order, a search string and an offset. The user can also select 
> > several links where he can edit the selected term. Then 
> other elements 
> > are used to edit the term. If the term is edited the user 
> comes back 
> > to the list of terms. At
> > this
> > point I need the information about the state of the termspage again.
> > Should the elements that are used for editing have the 5 
> inputs and 5
> > outputs of the list element, too? Or is there another way 
> to store the
> > data in the session and read them again, when it is needed?
> >
> > Cheers,
> > Lars
> > ___
> > Rife-users mailing list
> > 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] Implementation design

2006-03-01 Thread Lars Grupe
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

2006-02-13 Thread Lars Grupe
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 com   

RE: [Rife-users] store String in session

2006-02-10 Thread Lars Grupe
Hi Geert,

Many thanks, that was the right hint.

FYI if I use the RIFE classloader with the glue webserver I still get
these exception:

javax.servlet.ServletException

javax.servlet.ServletException
at com.uwyn.rife.servlet.RifeFilter.doFilter(RifeFilter.java:131)
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) 

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 10 February 2006 16:44
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] store String in session
> 
> 
> Hi Lars,
> 
> you might wanna try with a nightly snapshot, I'm not sure when this  
> feature has been added. It's not that long ago.
> 
> Best regards,
> 
> Geert
> 
> On 10-feb-06, at 16:40, Lars Grupe wrote:
> 
> > 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:
> >  > 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;
> > 
> > 
> >
> > 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.
> >>>>
>

RE: [Rife-users] store String in session

2006-02-10 Thread Lars Grupe
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:
 

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;



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 '' 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

RE: [Rife-users] store String in session

2006-02-10 Thread Lars Grupe
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 '' 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

2006-02-10 Thread Lars Grupe
Hi Geert,

I have a question to the sample code in http://rifers.org/paste/show/88.
Where is the '' 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

2006-02-10 Thread Lars Grupe
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

2006-02-10 Thread Lars Grupe
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

2006-02-10 Thread Lars Grupe
Hi Geert,

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.

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 10 February 2006 14:05
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] store String in session
> 
> 
> Is this a series of submissions, like a wizard?
> 
> > Yes, it must not timeout, but it can timeout like a traditional
> > session.
> 
> >>> I have an element with several submissions.
> >>> And I would like to have a long string that is only stored in the 
> >>> session. Everytime a submission is called I want read the
> >> long string
> >>> change it and store it again.
> 
> --
> Geert Bevin   Uwyn bvba
> "Use what you need"   Avenue de Scailmont 34
> http://www.uwyn.com   7170 Manage, Belgium
> gbevin[remove] at uwyn dot comTel +32 64 84 80 03
> 
> PGP Fingerprint : 4E21 6399 CD9E A384 6619  719A C8F4 D40D 
> 309F D6A9 Public PGP key  : available at servers pgp.mit.edu, 
> wwwkeys.pgp.net
> 
> 
> ___
> Rife-users mailing list
> Rife-users@uwyn.com http://lists.uwyn.com/mailman/listinfo/rife-users
> 
___
Rife-users mailing list
Rife-users@uwyn.com
http://lists.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] store String in session

2006-02-10 Thread Lars Grupe
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


[Rife-users] store String in session

2006-02-10 Thread Lars Grupe
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] How to upload a file with rife?

2006-01-23 Thread Lars Grupe
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:
> >  > method="post">
> > 
> >  > accept="text/*"> 
> > 
> 
> 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),
> 
>  (value in bytes) 
> 
> 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  
> elsewhere in your template to add the submit button :)
> 
> > My submission looks like the following:
> > 
> > 
> > 
> > 
> 
> 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  
> and it takes (param | bean | file). So if we re-write your 
> submission snippet like this:
> 
> 
>   
> 
> 
> 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] How to upload a file with rife?

2006-01-23 Thread Lars Grupe
Hi,

I would like to upload files.
I defined the following form in the template:







My submission looks like the following:





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] Localization in radio button labels

2006-01-11 Thread Lars Grupe
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").inLi

RE: [Rife-users] Localization in radio button labels

2006-01-11 Thread Lars Grupe
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.:
> > That's fine!
> > 
> > And if I use the same Localization block (e.g.: ) 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:
> >>>
> >>>
> >>>
> >>>
> >>>
> >>>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 Scail

RE: [Rife-users] Localization in radio button labels

2006-01-11 Thread Lars Grupe
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.: 
That's fine!

And if I use the same Localization block (e.g.: ) 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:
> >
> > 
> > 
> > 
> >
> > 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


[Rife-users] Localization in radio button labels

2006-01-11 Thread Lars Grupe
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:





Cheers,
Lars
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] output and input with beans

2006-01-10 Thread Lars Grupe
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

2006-01-09 Thread Lars Grupe
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

2005-12-20 Thread Lars Grupe
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:
> 
> com.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:
> >
> > 
> >  >
> > blocking="true">CreateDatabaseStructureParticipant
> >
> > 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));
> >>}
> >>
> >>ContentQueryManager accounts =
> >> new ContentQueryManager(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 -- ");
> >> 

RE: [Rife-users] run java code directly after starting the web server

2005-12-20 Thread Lars Grupe
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: 


CreateDatabaseStructureParticipant

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));
>   }
> 
>   ContentQueryManager accounts = 
> new ContentQueryManager(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

2005-12-19 Thread Lars Grupe
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


RE: [Rife-users] menu as embedded element

2005-12-19 Thread Lars Grupe
Hi Geert,

Now it is working for me, too. Many thanks, I overlooked an additional
exit between my elements, where the input gets lost. :) Sorry!

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 19 December 2005 13:33
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] menu as embedded element
> 
> 
> Hi Lars,
> 
> I tried this out and it's working for me. I attached a diff 
> of what I  
> did against the jumpstart.
> 
> If you can't find the problem, can you isolate it for me and send me  
> an archive with it, so that I can test.
> 
> Best regards,
> 
> Geert
> 
> 
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] menu as embedded element

2005-12-19 Thread Lars Grupe
Hi Geert,

Thanks for the great answer. :)

I have an additional question to the second option(input, output,
datalink).

My embedded element 'MAINMENU' includes a link that set the output
'mainMenuSelection':
   template.setValue("subsite_url", getExitQueryUrl("import",
new String[]{"mainMenuSelection", "import"}));

The element 'MAINMENU' has the following definition:





Content of mainMenu.xml:


  



The element 'IMPORT' gets the value 'import' of the input
'mainMenuSelection'.
The element 'MAINMENU' is embedded in the template of the 'IMPORT'
element.
So the 'MAINMENU' element is processed again and it has an input
'mainMenuSelection'.
But the value of the input 'mainMenuSelection' is null for the element
'MAINMENU'.

What must I change, or did I missunderstand you a little bit?

Cheers,
Lars


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 16 December 2005 22:34
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] menu as embedded element
> 
> 
> Hi Lars,
> 
> you have several options, all depend on your preference:
> 
> * Use a globalvar that indicates the selected menu, this will be  
> present in every element and thus also your menu.
> 
> * You have to be aware of the fact that a datalink is only  
> responsible for bringing the data from an output to the target  
> element, it doesn't tie the input of the destination element to that  
> particular datalink. This means that as long as a value with 
> the same  
> name as your input is present when your embedded element is  
> processed, the embedded element will get it too.
> 
> * You can use embed values. When an embedded element is 
> processed, it  
> will receive the  current content of its value tag and use that to  
> adapt to the context in which it sits. So using   >menuitem1 will provide "menuitem1" when you call  
> getEmbedValue() from within the embedded element. You can 
> also use BV  
> tags and template hierarchies to override this value.
> 
> * You can use request attributes. By using getRequestAttribute and  
> setRequestAttribute, you can freely interchange data in between  
> elements in the same request. Nothing will live longer than the  
> request and it doesn't interact with state storage.
> 
> * You can implement a well defined API with your embedding elements  
> and use getEmbeddingElement() to access a method that will for  
> instance provide the current menu item.
> 
> * You can access the embedding element's template with  
> getEmbeddingTemplate and by simply deciding upon a variable 
> name, you  
> can easily retrieve it from your embedding element.
> 
> That's about it I think.
> 
> Best regards,
> 
> Geert
> 
> On 14 Dec 2005, at 18:45, Lars Grupe wrote:
> 
> > Hi,
> >
> > Maybe I want to solve to many things with embedded elements.
> >
> > I use an embedded element for my main menu. That's fine as 
> long as I 
> > didn't want to highlight the menu item that was selected actually.
> >
> > I could define an output value that contains the selected menu item.
> >
> > E.g.:
> > template.setValue("subsite_url", getExitQueryUrl("home",
> > new String[]{"mainMenuSelection", "home"}));
> >
> > But how can the embedded element get the input value, 
> because there is 
> > no flowlink that directs the output to the input of the embedded 
> > element?
> >
> > Is there another way to have an element (embedded or not) 
> only for a 
> > menu? Or should I call a function for filling the menu block in the 
> > code of each element that should display the menu?
> >
> > 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
> 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] menu as embedded element

2005-12-14 Thread Lars Grupe
Hi,

Maybe I want to solve to many things with embedded elements.

I use an embedded element for my main menu. That's fine as long as I
didn't want to highlight the menu item that was selected actually.

I could define an output value that contains the selected menu item.

E.g.:
template.setValue("subsite_url", getExitQueryUrl("home",
new String[]{"mainMenuSelection", "home"}));

But how can the embedded element get the input value, because there is
no flowlink that directs the output to the input of the embedded
element? 

Is there another way to have an element (embedded or not) only for a
menu?
Or should I call a function for filling the menu block in the code of
each element that should display the menu?

Cheers,
Lars
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] logout problems

2005-12-08 Thread Lars Grupe
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:
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   derby
>   
> 
>   
> 
> 
> 
>  implementation="com.acrolinx.portal.login.elements.LogonInfo"
> inherits="IDENTIFIED">
>   
> 
>   
> 
> 
> 
> 
>   AUTH_ADMIN
> 
> 
> 
>  file="elements/authentication/administration.xml"/>
> 
> 
>  implementation="com.acrolinx.portal.login.elements.Home" 
> url="/home" inherits="AUTH_ADMIN">
>   
>destid="TERMMANAGEMENT"/> 
> 
> 
> 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 problems

2005-12-08 Thread Lars Grupe
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:









derby









  




AUTH_ADMIN












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] Logout in embedded object

2005-12-06 Thread Lars Grupe
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.



derby





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


RE: [Rife-users] Users guide as PDF?

2005-12-05 Thread Lars Grupe
Hi John,

I think you want to have a PDF version of the new 'Live User's guide'.

A pdf version of the 'Old User's guide' I have found there:
http://rifers.org/wiki/display/RIFE/User's+Guide

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of John Moore
> Sent: 05 December 2005 17:29
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: [Rife-users] Users guide as PDF?
> 
> 
> It would be handy, IMHO, if the users' guide were available as a 
> (preferably printable) PDF. It may well be that Rife provides the 
> facilities to do this already and it's simply a case of Geert 
> pressing 
> the appropriate button?
> 
> If anyone has generated a PDF from the HTML and could e-mail 
> me it, I'd 
> be most grateful.
> 
> TIA,
> 
> 
> John
> 
> 
> 
> 
> -- 
> ==
> John Moore  -  Norwich, UK  -  [EMAIL PROTECTED] 
> ==
> ___
> 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] How to get a list of the database users?

2005-11-30 Thread Lars Grupe
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


[Rife-users] localized login template

2005-11-25 Thread Lars Grupe
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:
> >  
> >
> > 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 14:36:28,765] [init]
> > LanguageChanged.processElement
> > [DEBUG] [2005-11-25 14:36:28,765] [init]
> > LanguageSelection.processElement
> > [DEBUG] [2005-11-25 14:36:28,781] [init] MainMenu.processElement
> >
> > In the second main element line I would like to know to 
> which language 
> > was selected in the embedded element. But the submission is called 
> > later, what I understand. But now the global variable has 
> been changed 
> > but the page is displayed in the old language. Another click will
> > change
> > the language on the page. So that is not what I would like to have:
> > E.g.: On an English page you click on 'German' and the page is shown
> > again in 'English', if you choose another link, than the language  
> > of the
> > page will be 'German'.
> >
> > So my problem is, if I could manage that with a embedded element? I 
> > would like to prevent from writing a changeLanguage submission for 
> > each element.
> >
> > Cheers,
> > Lars
> >
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] 
> >> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> >> Sent: 25 November 2005 13:06
> >> To: RIFE users list : questions, bug reports and suggestions.
> >> Subject: Re: [Rife-users] Embedded elements submissions execution 
> >> order
> >>
> >>
> >> Hi Lars,
> >>
> >> I don't mind answering your questions ;-)
> >>
> >> Embedded elements are only processed once you obtain an 
> instance of 
> >> the template in which they are embedded.
> >>
> >> What global variable are you changing, a cookie?
> >>
> >> Geert
> >>
> >> On 25-nov-05, at 13:01, Lars Grupe wrote:
> >>
> >>> Hi Geert,
> >>>
> >>> I'm sorry to bother you with my questions.
> >>>
> >>> I have an embedded elements, that show some links on my page. For 
> >>> better understanding: Follow a link should change the
> >> language of the
> >>> site. If a link is followed than the called submission changes a 
> >>> global variable. My problem is that the submission of the 
> embedded 
> >>> element is called after the processElement function of my main 
> >>> element. Should the submission of the embedded element f

RE: [Rife-users] Embedded elements submissions execution order

2005-11-25 Thread Lars Grupe
Hi Geert,

No, it's not a cookie it's a globalvar, that is defined in the site as
follows:
 

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 14:36:28,765] [init] LanguageChanged.processElement
[DEBUG] [2005-11-25 14:36:28,765] [init]
LanguageSelection.processElement
[DEBUG] [2005-11-25 14:36:28,781] [init] MainMenu.processElement

In the second main element line I would like to know to which language
was selected in the embedded element. But the submission is called
later, what I understand. But now the global variable has been changed
but the page is displayed in the old language. Another click will change
the language on the page. So that is not what I would like to have:
E.g.: On an English page you click on 'German' and the page is shown
again in 'English', if you choose another link, than the language of the
page will be 'German'.

So my problem is, if I could manage that with a embedded element?
I would like to prevent from writing a changeLanguage submission for
each element.

Cheers,
Lars  


> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 25 November 2005 13:06
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] Embedded elements submissions 
> execution order
> 
> 
> Hi Lars,
> 
> I don't mind answering your questions ;-)
> 
> Embedded elements are only processed once you obtain an instance of  
> the template in which they are embedded.
> 
> What global variable are you changing, a cookie?
> 
> Geert
> 
> On 25-nov-05, at 13:01, Lars Grupe wrote:
> 
> > Hi Geert,
> >
> > I'm sorry to bother you with my questions.
> >
> > I have an embedded elements, that show some links on my page. For 
> > better understanding: Follow a link should change the 
> language of the 
> > site. If a link is followed than the called submission changes a 
> > global variable.
> > My problem is that the submission of the embedded element is called
> > after the processElement function of my main element. Should the
> > submission of the embedded element force a reload of the page?
> > And how can I do this?
> > Or is there another option to execute the submission of the embedded
> > element before the processElement function of the main element is
> > called?
> >
> > 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


[Rife-users] Embedded elements submissions execution order

2005-11-25 Thread Lars Grupe
Hi Geert,

I'm sorry to bother you with my questions.

I have an embedded elements, that show some links on my page.
For better understanding: Follow a link should change the language of
the site.
If a link is followed than the called submission changes a global
variable.
My problem is that the submission of the embedded element is called
after the processElement function of my main element. Should the
submission of the embedded element force a reload of the page?
And how can I do this?
Or is there another option to execute the submission of the embedded
element before the processElement function of the main element is
called?

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

2005-11-25 Thread Lars Grupe
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
> >>
> >> 
> > ___
> > 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]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass

2005-11-24 Thread Lars Grupe
Hi Geert,

I found the following information in the Glue User Guide about war
archives:

Deploying Glue in a .WAR file

The Glue servlet container doesn't currently support deployment of .war
files, but Glue applications can be deployed as .war files into 3rd
party containers such as WebLogic and WebSphere. When Glue starts up, it
uses the servlet 2.3 method getResourcePaths() to automatically locate
all of the service descriptors and map files in WEB-INF\services and
WEB-INF\maps, respectively. Unfortunately, a problem occurs when a
servlet container does not expand .war files at execution time and does
not implement the servlet 2.3 specification correctly.

Servlet containers that currently seem to fall into this category are:

* WebLogic 7.0

If you suspect that your servlet container falls into this category, you
can add an explicit list of the service descriptors and map files into
the configuration file and Glue will use this list to load the files at
startup in addition to the files returned by the servlet lookup method.
If Glue is deployed into a 2.3-compliant servlet container with a
configuration file that includes an explicit list of files, attempts to
load a particular file twice are ignored. Therefore, if you want to
create a Glue application that will run identically in all situations,
it is best to explicitly add a list of map files and service descriptors
into the configuration file.

The \app-template\WEB-INF\glue-config.xml file includes an
example of  and  properties, which look
like this:

  
  
  

  
  
  
  
mymap.map
  


  
  
  

  
  
  
  
system/application.xml
system/console.xml
system/jndi.xml
  

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 24 November 2005 11:07
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: 
> [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/
> site/ValidationErrorclass
> 
> 
> IIRC you mentioned before that it didn't support war 
> archives? How do you deploy your web application on GLUE?
> 
> On 24-nov-05, at 11:01, Lars Grupe wrote:
> 
> > Hi Geert,
> >
> > I didn't know if Glue required something weird. But if I find
> > something
> > I will tell you.
> >
> > Cheers,
> > Lars
> 
> --
> 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]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass

2005-11-24 Thread Lars Grupe
Hi Geert,

I didn't know if Glue required something weird. But if I find something
I will tell you.

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 24 November 2005 00:54
> To: Geert Bevin
> Cc: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: 
> [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/
> site/ValidationErrorclass
> 
> 
> I just thought of something, does GLUE required something 
> weird, like  
> having no WEB-INF in your webapp directory?
> 
> On 23-nov-05, at 18:40, Geert Bevin wrote:
> 
> > 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: 
> >>>   
> >>>   RIFE
> >>>   
> >>> com.uwyn.rife.servlet.RifeFilter
> >>>   
> >>>   rep.path
> >>>   rep/participants.xml
> >>>   
> >>>   
> >>>   
> >>>   
> >>> engineclassloader.enabled
> >>>   true
> >>>   
> >>>   
> >>>
> >>>   
> >>>   RIFE
> >>>   /*
> >>>   
> >>> 
> >>>
> >>>
> >>> 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:
> >>>>
> >>>> 
> >>>>  
> >>>>  RIFE
> >>>>  
> >>>> com.uwyn.rife.servlet.RifeFilter
> >>>>  
> >>>>  rep.path
> >>>>  rep/participants.xml
> >>>>  
> >>>> engineclassloader.enabled
> >>>>  false
> >>>>  
> >>>>  
> >>>>
> >>>>  
> >>>>  RIFE
> >>>>  /*
> >>>>  
> >>>> 
> >>>>
> >>>> 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] 
> >>>>> loaderconstraintsviolatedwhen

RE: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass

2005-11-24 Thread Lars Grupe
Hi Geert,

yes, the version from sun.

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 23 November 2005 20:03
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: 
> [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/
> site/ValidationErrorclass
> 
> 
> Sun's version?
> 
> On 23-nov-05, at 19:11, Lars Grupe wrote:
> 
> > 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: 
> >>>>  
> >>>>  RIFE
> >>>>  
> >>>> com.uwyn.rife.servlet.RifeFilter
> >>>>  
> >>>>  rep.path
> >>>>  rep/participants.xml
> >>>>  
> >>>>  
> >>>>  
> >>>>  
> >>>> engineclassloader.enabled
> >>>>  true
> >>>>  
> >>>>  
> >>>>
> >>>>  
> >>>>  RIFE
> >>>>  /*
> >>>>  
> >>>> 
> >>>>
> >>>>
> >>>> 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:
> >>>>>
> >>>>> 
> >>>>> 
> >>>>> RIFE
> >>>>> 
> >>>>> com.uwyn.rife.servlet.RifeFilter
> >>>>> 
> >>>>> rep.path
> >>>>> 
> rep/participants.xml
> >>>>> 
> >>>>> engineclassloader.enabled
> >>>>> false
> >>>>> 
> >>>>>     
> >>>>>
> >>>>> 
> &

RE: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass

2005-11-23 Thread Lars Grupe
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: 
> >>
> >>RIFE
> >>
> >> com.uwyn.rife.servlet.RifeFilter
> >>
> >>    rep.path
> >>rep/participants.xml
> >>
> >>
> >>
> >>
> >> engineclassloader.enabled
> >>true
> >>
> >>
> >>
> >>
> >>RIFE
> >>/*
> >>
> >> 
> >>
> >>
> >> 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:
> >>>
> >>> 
> >>>   
> >>>   RIFE
> >>>   
> >>> com.uwyn.rife.servlet.RifeFilter
> >>>   
> >>>   rep.path
> >>>   rep/participants.xml
> >>>   
> >>> engineclassloader.enabled
> >>>   false
> >>>   
> >>>   
> >>>
> >>>   
> >>>   RIFE
> >>>   /*
> >>>   
> >>> 
> >>>
> >>> 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% 

RE: [Rife-users]loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationErrorclass

2005-11-23 Thread Lars Grupe
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: 
>   
>   RIFE
>   
> com.uwyn.rife.servlet.RifeFilter
>   
>   rep.path
>   rep/participants.xml
>   
>   
>   
>   
> engineclassloader.enabled
>   true
>   
>       
> 
>   
>   RIFE
>   /*
>   
> 
> 
> 
> 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:
> >
> > 
> > 
> > RIFE
> > 
> > com.uwyn.rife.servlet.RifeFilter
> > 
> > rep.path
> > rep/participants.xml
> > 
> > engineclassloader.enabled
> > false
> > 
> > 
> >
> > 
> > RIFE
> > /*
> > 
> > 
> >
> > 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:
> >>>
> >>> >>> implementation="com.acrolinx.termmanagement.elements.pub.TermList"
> >>> url="/termList">
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>>   
> >>> 

RE: [Rife-users] loaderconstraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationError class

2005-11-23 Thread Lars Grupe
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:



RIFE

com.uwyn.rife.servlet.RifeFilter

rep.path
rep/participants.xml

engineclassloader.enabled
false




RIFE
/*



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:
> >
> > > implementation="com.acrolinx.termmanagement.elements.pub.TermList"
> > url="/termList">
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> > 
> >   
> > 
> > 
> > 
> >  > destinput="offset"/>
> >
> > 
> >  > destinput="termbank_id"/>
> >  > destinput="term_id"/>
> >
> >  > destinput="term_id"/>
> >  > destinput="termbank_id"/>
> >
> >  destid="TERMBANK_LIST"/>
> > 
> > 
> > 
> > 
> > 
> >
> >   
> > 
> > 
> > 
> > 
> > 
> >  > 
> classname="com.acrolinx.termmanagement.elements.model.SuggestionBean"/
> > >
> > 
> > 
> > 
> >
> > 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 

RE: [Rife-users] loader constraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationError class

2005-11-23 Thread Lars Grupe
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:

   









  



















  










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] loader constraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationError class

2005-11-23 Thread Lars Grupe
Hi Geert,

I used the RIFE 1.3-snapshot. And the error message in the console log
is the following:

SEVERE: Error on host linosa:8031/
java.lang.LinkageError: loader constraints violated when linking
com/uwyn/rife/site/ValidationError class
at
com.uwyn.rife.site.Validation.getConstrainedPropertyRules(Validation.jav
a:176)
at
com.uwyn.rife.site.Validation.addConstrainedPropertyRules(Validation.jav
a:268)
at
com.uwyn.rife.site.Validation.addConstraint(Validation.java:279)
at
com.uwyn.rife.authentication.credentials.RoleUser.activateValidation(Rol
eUser.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.FormBuilderXhtml.removeForm(FormBuilderXhtml.java:103
9)
at
com.uwyn.rife.engine.ElementContext.generateEmptyForm(ElementContext.jav
a:3046)
at
com.uwyn.rife.engine.ElementSupport.generateEmptyForm(ElementSupport.jav
a:4566)
at
com.uwyn.rife.engine.ElementSupport.generateEmptyForm(ElementSupport.jav
a:4531)
at
com.uwyn.rife.authentication.elements.Authenticated.processElement(Authe
nticated.java:343)
at
com.uwyn.rife.engine.ElementContext.processContext(ElementContext.java:5
87)
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(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:112)
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)


Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 23 November 2005 16:13
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] loader 
> constraintsviolatedwhenlinkingcom/uwyn/rife/site/ValidationError class
> 
> 
> What is the exact exception (with line numbers) you get with the  
> latest snapshot?
> 
> On 23-nov-05, at 16:08, Lars Grupe wrote:
> 
> > 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
> 
> --
> 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

2005-11-23 Thread Lars Grupe
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
> >>
> >> 
> > ___
> > 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 violated whenlinkingcom/uwyn/rife/site/ValidationError class

2005-11-22 Thread Lars Grupe
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
> 





  





















home






   	
   	
   	
		
		
			
		
	  	
	

	  	
		
	


   	
   	
   	
   	
   	
   	
		
		
			
			
		
		
	  	
	

	  	
		
		

	
	

		
		
		
			
			
		

	
			
		
		
		
			
	
	

	


   	
   	
   	

		

		
		

		
			
			
		
		
			
			
			
		
		
			
			
			
	
		
			
			
			
		
	


more









administration






administration



administration



administration



administration



		
	
	
	
		
	
		
	




		pub/success
		
		
	
		
		




		
			
		
		
	
	 
	

	



		
			
		
		
	
	 
	



	
	
	
	
	
	
	
	

	
	
	
	
	
	
	
	



		
	
















	
	AUTH_BOX
	

___
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

2005-11-22 Thread Lars Grupe
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   (
> >  )
> > 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:
> >
> > 
> > 
> > 
> >   

[Rife-users] loader constraints violated when linking com/uwyn/rife/site/ValidationError class

2005-11-22 Thread Lars Grupe
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   (
 )
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:










part of identified.xml:





Cheers,
Lars
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


[Rife-users] running rife on a Glue web server

2005-11-17 Thread Lars Grupe
Hi,

I developed a web application with rife on a jetty web server.
Our SOAP server applications uses a Glue web server.
Now I have two options:
1. Run the rife web site on a Glue web server or 
2. Run the rife application and our server application on a tomcat web
server

Before I start to think about option 2, I would like to know what you
think how complicated it is to get rife running on a Glue web server.
The Glue web server doesn't support war archives.

If someone has some hints how to start these migration, I would like to
get them. :)

Cheers,
Lars
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] add parameter to automated form submission

2005-09-30 Thread Lars Grupe
Hi Geert,

Do you mean I should use




td>
td>
td>


?


Or must I use the FORM:HIDDEN:parameter construct?




<- How can the
value be set here?
td>
td>



Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 30 September 2005 17:02
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] add parameter to automated form submission
> 
> 
> Hi Lars,
> 
> you can simply add a hidden input field to the form and set 
> the value  
> in its value attribute.
> 
> Would that work for you?
> 
> Geert
> 
> On 30-sep-05, at 16:56, Lars Grupe wrote:
> 
> > Hi Geert,
> >
> > I use the generateForm function, e.g.:
> > generateForm(template, newsItemBean);
> >
> > for the submission:
> > 
> >  
> >  
> > 
> >
> > For my other submissions I use the following construct to store 
> > parameter/value pairs in the submissions: template.setValue(value, 
> > getSubmissionQueryUrl(submissionName, new String[]{
> > parameterName, parameterValue));
> >
> > How can I set the value of the parameter in the "add" submission?
> >
> > Cheers,
> > Lars
> >
> >
> >
> >
> >
> >
> >> -Original Message-
> >> From: [EMAIL PROTECTED] 
> >> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> >> Sent: 30 September 2005 16:42
> >> To: RIFE users list : questions, bug reports and suggestions.
> >> Subject: Re: [Rife-users] add parameter to automated form 
> submission
> >>
> >>
> >> Can you explain what you mean with "generated from a bean"?
> >>
> >> You can add any additional parameter to your submission.
> >>
> >> On 30-sep-05, at 16:40, Lars Grupe wrote:
> >>
> >>
> >>> Hi,
> >>>
> >>> It is possible to add a parameter to a submission that is 
> generated 
> >>> from a bean?
> >>> I would like to define something like the following:
> >>>
> >>> 
> >>> 
> >>> 
> >>> 
> >>>
> >>> If this is possible, how can I set the parameter?
> >>>
> >>> Thank in advance!
> >>>
> >>> 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 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] add parameter to automated form submission

2005-09-30 Thread Lars Grupe
Hi Geert,

I use the generateForm function, e.g.:
generateForm(template, newsItemBean);

for the submission:

 
 


For my other submissions I use the following construct to store
parameter/value pairs in the submissions:
template.setValue(value, getSubmissionQueryUrl(submissionName, new
String[]{
parameterName, parameterValue));

How can I set the value of the parameter in the "add" submission?

Cheers,
Lars





> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 30 September 2005 16:42
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] add parameter to automated form submission
> 
> 
> Can you explain what you mean with "generated from a bean"?
> 
> You can add any additional parameter to your submission.
> 
> On 30-sep-05, at 16:40, Lars Grupe wrote:
> 
> > Hi,
> >
> > It is possible to add a parameter to a submission that is generated
> > from
> > a bean?
> > I would like to define something like the following:
> >
> > 
> > 
> > 
> > 
> >
> > If this is possible, how can I set the parameter?
> >
> > Thank in advance!
> >
> > 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


[Rife-users] add parameter to automated form submission

2005-09-30 Thread Lars Grupe
Hi,

It is possible to add a parameter to a submission that is generated from
a bean?
I would like to define something like the following:






If this is possible, how can I set the parameter?

Thank in advance!

Cheers,
lars
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


RE: [Rife-users] get input object

2005-09-28 Thread Lars Grupe
Hi Geert,

Thanks for your fast answer. I have an object with 4 ArrayLists inside,
that I want to edit on a site.
I defined several submissions on an element that could add and remove
strings to the lists.
I thought about sending the ArrayList object with a datalink, but now I
think it is much better to send only an object id and get the object
each time from the model.

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Geert Bevin
> Sent: 28 September 2005 14:57
> To: RIFE users list : questions, bug reports and suggestions.
> Subject: Re: [Rife-users] get input object
> 
> 
> Hi Lars,
> 
> inputs and output are always converted to strings since they most of  
> the time are transferred over HTTP.
> void setOutput(String name, Object value)
> 
> will convert 'value' to a String representation.
> 
> What are you trying to do?
> 
> Best regards,
> 
> Geert
> 
> On 28-sep-05, at 14:46, Lars Grupe wrote:
> 
> > Hi all,
> >
> > When I set a generic object as output using 'void setOutput(String
> > name,
> > Object value)', how can I read the object from the input? 
> There is no
> > 'Object getInput(String name)'?
> >
> > Thanks in advance!
> >
> > 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


[Rife-users] get input object

2005-09-28 Thread Lars Grupe
Hi all,

When I set a generic object as output using 'void setOutput(String name,
Object value)', how can I read the object from the input? There is no
'Object getInput(String name)'?

Thanks in advance!

Cheers,
Lars 
___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users


RE: Re: [Rife-users] independent localisation elements

2005-09-27 Thread Lars Grupe
Oh, I think that could be very helpful if you can tell me more about
your solution. I would like to have a solution without the need of
cookies.
At the moment I tend to a solution with precedence. (Thanks Geert it was
helpful but I think I will have some additional questions in a while).

Cheers,
Lars

> -Original Message-
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Maarten Stolte
> Sent: 27 September 2005 15:12
> To: rife-users@uwyn.com
> Cc: rife-users@uwyn.com
> Subject: Re: Re: [Rife-users] independent localisation elements
> 
> 
> sorry for my mailer, it doesnt really add reply signs so I'm 
> not able to comment inline. As to www.caosity.org which is 
> indeed available in spanish and english these days, I pass 
> the language around in the url, don't remember quite with 
> what rife objects to be honest, since its been some time. 
> It's not done with a cookie, so if you would like more info 
> on my method I'd have to check out the code, or maybe Geert 
> remembers it again as we talked about it I think :-)
> 
> my very helpful 2 cents ;-)
> 
> Maarten
> 
> -Original Message-
> From: Geert Bevin <[EMAIL PROTECTED]>
> To: "RIFE users list : questions, bug reports and 
> suggestions." 
> Date: Tue, 27 Sep 2005 12:50:55 +0200
> Subject: Re: [Rife-users] independent localisation elements
> 
> Hi Lars,
> 
> the best way to implement the language selector is by writing a  
> dedicated, embedded element for it that sets the correct cookie.
> 
> For the implementation of the rest of the site, you have several  
> options, depending on your preference:
> 
> * create a base class (LocalizedElement for instance) that 
> you extend  
> in Java for all the elements that should be aware of the language  
> choice. You can for instance add a getLocalizedTemplate(String name)  
> method to the base class, which you can call from all the extending  
> elements. The downside of this approach is that it uses concrete  
> inheritance.
> 
> * using either precedence or site-structure inheritance (doesn't)  
> really matter. In this localization detection element you can 
> use the  
> getTarget() method call to get the ElementInfo of the element 
> that is  
> really targeted by the request. From the element info you can for  
> instance obtain the value of a 'templateNameBase' property that you  
> setup in the site structure. This can then be used to construct the  
> template name together with the value of the l10n cookie. The actual  
> instance of the template can then for example be set as a request  
> attribute and retrieved in the targeted element.
> 
> Does this help you?
> 
> I think that Maarten has implemented something like this for  
> caosity.org. Maarten, any comments?
> 
> Best regards,
> 
> Geert
> 
> On 27-sep-05, at 12:37, Lars Grupe wrote:
> 
> > Hi all,
> >
> > I want to create a website where the user can change the gui
> > language on
> > every subsite. An object should print a template that is 
> embedded into
> > the main template and displays the selectable languages as 
> links. If a
> > link is clicked the whole site should be displayed in the selected
> > language.
> > My site supports authorisation, so most of my elements uses  
> > inheritance.
> > I would like to know what is the best strategy for implementing the
> > independent localisation elements? Should I use 
> inheritance? How can I
> > prevent trouble with the localisation elements? Or should I use
> > precedence? Can I set up submissions for elements in 
> precedence? Or is
> > there a another way to implement a (clean) solution?
> >
> > If someone has solved these problems and could show me his 
> solution it 
> > would be very nice too?
> >
> > I have a lot of question to the way I tried to solve my problem (I 
> > started to use inheritance with snapback first and got 
> stuck combining 
> > it with the authorisation inheritance). That's why I ask for
> > someone who
> > has solved this problem. Because it could be that I am on the  
> > completely
> > wrong way.
> >
> > Thanks in advance!
> >
> > 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 M

[Rife-users] independent localisation elements

2005-09-27 Thread Lars Grupe
Hi all,

I want to create a website where the user can change the gui language on
every subsite. An object should print a template that is embedded into
the main template and displays the selectable languages as links. If a
link is clicked the whole site should be displayed in the selected
language. 
My site supports authorisation, so most of my elements uses inheritance.
I would like to know what is the best strategy for implementing the
independent localisation elements? Should I use inheritance? How can I
prevent trouble with the localisation elements? Or should I use
precedence? Can I set up submissions for elements in precedence? Or is
there a another way to implement a (clean) solution?

If someone has solved these problems and could show me his solution it
would be very nice too?

I have a lot of question to the way I tried to solve my problem (I
started to use inheritance with snapback first and got stuck combining
it with the authorisation inheritance). That's why I ask for someone who
has solved this problem. Because it could be that I am on the completely
wrong way. 

Thanks in advance!

Cheers,
Lars

___
Rife-users mailing list
Rife-users@uwyn.com
http://www.uwyn.com/mailman/listinfo/rife-users