You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/06/07 15:31:13 UTC
svn commit: r952217 -
/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
Author: lofwyr
Date: Mon Jun 7 13:31:13 2010
New Revision: 952217
URL: http://svn.apache.org/viewvc?rev=952217&view=rev
Log:
remove test sample code
Modified:
myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
Modified: myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java?rev=952217&r1=952216&r2=952217&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java (original)
+++ myfaces/tobago/trunk/tobago-example/tobago-example-test/src/main/java/org/apache/myfaces/tobago/example/test/SelectItemModel.java Mon Jun 7 13:31:13 2010
@@ -18,20 +18,11 @@ package org.apache.myfaces.tobago.exampl
*/
import org.apache.myfaces.tobago.model.SelectItem;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import javax.faces.context.FacesContext;
-import java.io.IOException;
-import java.net.URL;
import java.util.Currency;
-import java.util.Enumeration;
public class SelectItemModel {
-
- private static final Logger LOG = LoggerFactory.getLogger(SelectItemModel.class);
-
private int number = 3;
private Currency currency = Currency.getInstance("JPY");
@@ -48,19 +39,6 @@ public class SelectItemModel {
new SelectItem(Currency.getInstance("USD")),
new SelectItem(Currency.getInstance("EUR")),
};
-
- final FacesContext facesContext = FacesContext.getCurrentInstance();
-
- Enumeration<URL> resource = null;
- try {
- resource = /*facesContext.getExternalContext().getContext().*/getClass().getClassLoader().getResources("META-INF/faces-config.xml");
- } catch (IOException e) {
- LOG.error("XXX", e);
- }
- while (resource.hasMoreElements()) {
- URL url = resource.nextElement();
- LOG.error("XXX url='" + url + "'");
- }
}
public SelectItem[] getAvailableCurrencies() {