0

get RenderRequest object from a ZK app

asked 2008-06-11 11:40:29 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5023142

By: tombol

Hello,

Is there a way to get renderrequest object when running zk as a portlet in JBoss portal?

I can get PortletSession from (PortletSession) Sessions.getCurrent().getNativeSession(); but when I try to get

renderequest or renderesponse from getDesktop().getExecution().getNativeRequest();
getDesktop().getExecution().getNativeResponse() respectively then i get an error of classcastexception;

SEVERE: >>java.lang.ClassCastException:
org.apache.catalina.connector.RequestFacade

Neither is an attribute in portletsession with name javax.portlet.request or so.

How can I retrieve renderrequest and renderresponse to make links so i can redirect from one page to another inside the portlet with

Portlets.include(_portletcontext , renderrequest,renderresponse,"/zulpage.zul"
, null , Portlets.APPEND_PARAM); or something similar?

thank you very much!






delete flag offensive retag edit

1 Reply

Sort by ยป oldest newest

answered 2012-06-11 01:53:32 +0800

weiming gravatar image weiming
36

i faced the same problem too, any solution?

link publish delete flag offensive edit
Your reply
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow

RSS

Stats

Asked: 2008-06-11 11:40:29 +0800

Seen: 212 times

Last updated: Jun 11 '12

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More