0

Parameter passing to ZK portlet from straight java portlet

asked 2013-11-11 17:39:28 +0800

spideyct gravatar image spideyct
0

All of our ZK portlets are written with straight java, not using ZUL pages, so please respond in these terms, and not in a straight normal ZK portlet. ie, our zul file only contains <window use="org.cchit.dupeorg.Show" border="none" mode="embedded"/>

And the Show class extends Window, and redirects to a java class that builds pages with a Java implementation of ZK.

The problem is, all our portlets are in seperate WAR files, so using a session parameter to pass objects around does not work. In an attempt to get around this, URL parameters are being use, but the problem is using the following code:

    String name = Executions.getCurrent().getParameter("name");
    log.info("parameter name:<" + name + ">" );
    String requestpath = Executions.getCurrent().getDesktop().getRequestPath();
    log.info("parameter requestpath:<" + requestpath + ">" );

returns:

11 Nov 2013 17:11:48,432 INFO [Page:103] parameter dupeorgname:<null> 11 Nov 2013 17:11:48,433 INFO [Page:105] parameter requestpath:</dupeorg>

I have tried this in the Show.java class, as well as subsequent classes, and this parameter is missing.

Passing the parameter works, as that code and output look like:

redirect += "?name=" + name; log.info("redirect URL: " + redirect ); actionResponse.sendRedirect(redirect);

Nov 2013 17:11:47,452 INFO [CreateOrganization:111] redirect URL: http://{URLHERE}/dupeOrg?name=parker

(URLHERE is filled out properly, just hiding)

Anyone have a process for passing parameters to a ZK portlet written with straight java and not using ZUL files?

delete flag offensive retag edit
Be the first one to answer this question!
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
1 follower

RSS

Stats

Asked: 2013-11-11 17:39:28 +0800

Seen: 11 times

Last updated: Nov 11 '13

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