Concurrent requests and Orchestra

2009-08-20 Thread Vojtech Zavrel
Hi, we have a problem with concurrent request using combination Orchestra + Spring + Trinidad. The application uses more than one window per session, so we have migrated all our beans to orchestra's conversation scope using conversation.manual. We have a progress bar which is poling AJAX request

RE: Concurrent requests and Orchestra

2009-08-20 Thread Mario Ivankovits
Hi! A PersistenceContext is not thread safe, therefore, Orchestra tries to avoid that by locking the request. It would be nice, if Orchestra does this just for requests requireing a PersistenceContext. But till today, we did not manage to spend some time to optimize that code. You can set the

how to read data from the request after session timeout?

2009-08-20 Thread Georg Füchsle
Hallo all, when a session of an user timed out I display a Website telling 'Your Session expired; please login again!. Now I have to distinguish some 'loginType' of the user. If the user initially logged on by ldap i have to redirect him to another site as if he logged in by internal

Re: how to read data from the request after session timeout?

2009-08-20 Thread Werner Punz
FacesContext.getExternalContext().getRequest should point you towards the servlet request. Werner Georg Füchsle schrieb: Hallo all, when a session of an user timed out I display a Website telling 'Your Session expired; please login again!. Now I have to distinguish some 'loginType' of

Re: how to read data from the request after session timeout?

2009-08-20 Thread Georg Füchsle
Hallo Werner, I have got the request as a variable. Now I want to read from it the state of the hidden input-field, that was on the jsf-Page. This is the input-field: t:inputTextvalue=#{mbUser.loginType} id=loginType immediate=true

Re: how to read data from the request after session timeout?

2009-08-20 Thread Werner Punz
via getParameter, just the usual servlet way, have in mind that you have to use the clientId, the in html displayed id of the input field. JSF does an internal id mapping so the id loginType might be mapped to a value along the lines of viewId:formId:loginType Georg Füchsle schrieb: Hallo

Re: how to read data from the request after session timeout?

2009-08-20 Thread Georg Füchsle
Hallo Werner, that was what I was looking for! Thanks for your fast and excellent help! Cheers Georg 2009/8/20 Werner Punz werner.p...@gmail.com: via getParameter, just the usual servlet way, have in mind that you have to use the clientId, the in html displayed id of the input field. JSF

Re: how to read data from the request after session timeout?

2009-08-20 Thread Werner Punz
Glad I could help Werner Georg Füchsle schrieb: Hallo Werner, that was what I was looking for! Thanks for your fast and excellent help! Cheers Georg 2009/8/20 Werner Punz werner.p...@gmail.com: via getParameter, just the usual servlet way, have in mind that you have to use the