From 684c532310691be01ea81c277b986f13e29bec5b Mon Sep 17 00:00:00 2001 From: "Niels Erik G. Nielsen" Date: Sun, 14 Apr 2013 21:29:46 -0400 Subject: [PATCH] Fixes missing subscription to state changes by SP bean --- src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java index f37f98e..3eb0bba 100644 --- a/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java +++ b/src/main/java/com/indexdata/pz2utils4jsf/pazpar2/Pz2ProxyBean.java @@ -12,7 +12,6 @@ import javax.inject.Named; import org.apache.log4j.Logger; import com.indexdata.pz2utils4jsf.config.ConfigurationReader; -import com.indexdata.pz2utils4jsf.pazpar2.commands.CommandParameter; import com.indexdata.pz2utils4jsf.pazpar2.sp.ServiceProxyClient; import com.indexdata.pz2utils4jsf.pazpar2.sp.ServiceProxyInterface; import com.indexdata.pz2utils4jsf.pazpar2.sp.auth.ServiceProxyUser; @@ -41,6 +40,7 @@ public class Pz2ProxyBean extends Pz2Bean implements ServiceProxyInterface { logger.info("Using [" + Utils.objectId(searchClient) + "] configured by [" + Utils.objectId(configurator) + "]" ); configureClient(searchClient,configurator); + stateMgr.addStateListener(this); } else { logger.debug("Pz2ProxyBean:postConstruct: searchClient already instantiated " + "during construction of parent object Pz2Bean."); @@ -61,6 +61,7 @@ public class Pz2ProxyBean extends Pz2Bean implements ServiceProxyInterface { public void setServiceProxyUrl(String url) { logger.info("Setting Service Proxy url: " + url); serviceProxyUrl = url; + pzreq.getRecordInState().removeParametersSilently(); pzreq.getSearchInState().removeParametersSilently(); pzresp.reset(); } -- 1.7.10.4