\r
import com.indexdata.pz2utils4jsf.config.Configuration;\r
import com.indexdata.pz2utils4jsf.config.ConfigurationReader;\r
+import com.indexdata.pz2utils4jsf.pazpar2.commands.SearchCommand;\r
import com.indexdata.pz2utils4jsf.pazpar2.sp.ForServiceProxy;\r
import com.indexdata.pz2utils4jsf.pazpar2.sp.ServiceProxyClient;\r
import com.indexdata.pz2utils4jsf.pazpar2.sp.ServiceProxyInterface;\r
session().setUser(user);\r
session().resetDataObjects();\r
session().removeCommand("record");\r
- session().setQuery(null);\r
+ ((SearchCommand)session().getCommand("search")).setQuery(null);\r
return session().login(navigateTo);\r
}\r
\r
public void setServiceProxyUrl(String url) {\r
logger.info("Setting Service Proxy url: " + url);\r
session().setServiceProxyUrl(url); \r
- session().setQuery(null);\r
+ ((SearchCommand)session().getCommand("search")).setQuery(null);\r
session().resetDataObjects();\r
}\r
\r