-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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?
Asked: 2013-11-11 17:39:28 +0800
Seen: 11 times
Last updated: Nov 11 '13