You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by cr...@apache.org on 2006/02/21 02:18:35 UTC
svn commit: r379304 -
/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/remoting/Business.java
Author: craigmcc
Date: Mon Feb 20 17:18:32 2006
New Revision: 379304
URL: http://svn.apache.org/viewcvs?rev=379304&view=rev
Log:
Use the convenience methods provided by AbstractFacesBean.
PR: Bugzilla #38536
Submitted By: Matthias Wessendorf <mailings AT matthias-wessendorf.de>
Modified:
struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/remoting/Business.java
Modified: struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/remoting/Business.java
URL: http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/remoting/Business.java?rev=379304&r1=379303&r2=379304&view=diff
==============================================================================
--- struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/remoting/Business.java (original)
+++ struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/remoting/Business.java Mon Feb 20 17:18:32 2006
@@ -48,9 +48,8 @@
*/
public void cityAndStateForZip() throws IOException {
- FacesContext context = FacesContext.getCurrentInstance();
- Map requestParams = context.getExternalContext()
- .getRequestParameterMap();
+ FacesContext context = getFacesContext();
+ Map requestParams = getRequestParameterMap();
String zip = (String)requestParams.get("zip");
Domains domains = (Domains) getBean("domains");
@@ -66,7 +65,7 @@
*/
public void listCategories() throws IOException {
- FacesContext context = FacesContext.getCurrentInstance();
+ FacesContext context = getFacesContext();
selectItems(context, supportedCategories(context));
}
@@ -77,7 +76,7 @@
*/
public void listLocales() throws IOException {
- FacesContext context = FacesContext.getCurrentInstance();
+ FacesContext context = getFacesContext();
selectItems(context, supportedLocales(context));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org