Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Portals and Portlets
Search Coderanch
Advance search
Google search
Register / Login
This week's book giveaway is in the
Design and Architecture
forum.
We're giving away four copies of
Communication Patterns: A Guide for Developers and Architects
and have Jacqui Read on-line!
See
this thread
for details.
Win a copy of
Communication Patterns: A Guide for Developers and Architects
this week in the
Design and Architecture
forum!
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Ron McLeod
Paul Clapham
Devaka Cooray
Liutauras Vilda
Sheriffs:
Jeanne Boyarsky
paul wheaton
Henry Wong
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Tim Moores
Carey Brown
Mikalai Zaikin
Bartenders:
Lou Hamers
Piet Souris
Frits Walraven
Forum:
Portals and Portlets
java.lang.ClassCastException: com.liferay.portlet.ResourceResponseImpl
Abiodun Adisa
Ranch Hand
Posts: 495
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using Liferay 6.1 ,JSF2 and i am trying to obtain the ActionResponse from within my bean
I have
ActionResponse rs=(ActionResponse) LiferayFacesContext.getInstance().getExternalContext().getResponse()
but anytime i run i get this exception
java.lang.ClassCastException: com.liferay.portlet.ResourceResponseImpl at com.abbey.AbbeyBean.submit(AbbeyBean.java:36) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
please what am i doing wrong
Jonas X. Yuan
author
Posts: 108
posted 12 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi Abiodun,
you may try to use
class HTTP
Servlet
Response
Hope that it helps,
Thanks
Jonas Yuan
Books:
Liferay Portal 6.1 Systems Development
I hired a bunch of ninjas. The fridge is empty, but I can't find them to tell them the mission.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
breaks in converting String to Integer
Adding portlet programmatically in Liferay
About ProcessAction
Liferay: NullPointerException on load.
Maximize a portlet
More...