Community   SpringSource   Projects    Downloads    Documentation    Forums    Training   Exchange   Blogs

Go Back   Spring Community Forums > Core Spring Projects > Spring Web Flow

Reply
 
Thread Tools Display Modes
  #1  
Old Jan 19th, 2007, 10:11 AM
klr8 klr8 is offline
Senior Member
Spring Team
 
Join Date: Sep 2004
Location: Leuven, Belgium
Posts: 1,846
Default Tip: Interacting with the calling environment

This thread discusses the "Interacting with the calling environment" tip published on the Ervacon Spring Web Flow Portal.

Read the tip at

http://www.ervacon.com/products/swf/tips/tip3.html
Reply With Quote
  #2  
Old Jan 19th, 2007, 11:37 AM
Keith Donald's Avatar
Keith Donald Keith Donald is offline
Web Flow Project Lead
Spring Team
 
Join Date: Aug 2004
Location: Melbourne, FL
Posts: 2,490
Default

Nice tip, Erwin! Looking forward to seeing the next one on alwaysRedirectOnPause :-)

Keith
__________________
Keith Donald
Spring Web Flow Project Lead
Reply With Quote
  #3  
Old May 21st, 2008, 09:19 AM
hfilkov hfilkov is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Unhappy

Hi, it is a nice tip, but it is not working for me. I need some attributes inserted into the Http session. A Portlet running in Liferay should do this. When i try to cast the external context into ServletExternalContext i become a Cast exception. Does anybody has any Idea how to do this? Please Help!
Reply With Quote
  #4  
Old May 21st, 2008, 10:45 AM
theinnovator theinnovator is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

Quote:
Originally Posted by hfilkov View Post
Hi, it is a nice tip, but it is not working for me. I need some attributes inserted into the Http session. A Portlet running in Liferay should do this. When i try to cast the external context into ServletExternalContext i become a Cast exception. Does anybody has any Idea how to do this? Please Help!
gee.. i have the same problem too...
__________________
glass security film “provides you a safe refuge.”
Reply With Quote
  #5  
Old May 21st, 2008, 10:45 AM
theinnovator theinnovator is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

__________________
glass security film “provides you a safe refuge.”
Reply With Quote
  #6  
Old May 21st, 2008, 10:49 AM
Marten Deinum Marten Deinum is offline
Senior Member
 
Join Date: Jun 2006
Location: The Netherlands
Posts: 9,296
Default

Well gee. Maybe it is because you are in a well hmm portlet environment and you should cast it to a well lets get crazy here a PortletExternalContext?
__________________
Marten Deinum
  • Senior Java Consultant
  • SpringSource Certified Trainer
Conspect ICT diensten
Blog
LinkedIn
Use the [ code ] tags, young padawan
Reply With Quote
  #7  
Old Jun 4th, 2008, 07:32 AM
hfilkov hfilkov is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Lightbulb

Hello folks. The issue was, that there is a tag in liferay-portlet.xml that looks like this <portlet-private-session>. If set to true you won't be able to communicate with the HTTP-Session. If set to false, all Attributes become shared for the Portlet and HTTP Session. This is specifically for the Liferay Portlal. Hope it helps.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 08:07 AM.


Contegix provides first-class managed hosting and partial sponsorship of these forums.

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.