Author: ayanul
Date: 2008-05-07 03:47:13 -0400 (Wed, 07 May 2008)
New Revision: 8465
Modified:
trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
Log:
+fix type HtmlSelectOne
Modified: trunk/test-applications/jsp/src/main/java/util/skins/Skins.java
===================================================================
--- trunk/test-applications/jsp/src/main/java/util/skins/Skins.java 2008-05-07 07:21:47
UTC (rev 8464)
+++ trunk/test-applications/jsp/src/main/java/util/skins/Skins.java 2008-05-07 07:47:13
UTC (rev 8465)
@@ -5,6 +5,7 @@
import javax.faces.component.UIComponent;
import javax.faces.component.UISelectItem;
import javax.faces.component.UISelectOne;
+import javax.faces.component.html.HtmlSelectOneMenu;
import javax.faces.component.html.HtmlSelectOneRadio;
import javax.faces.context.FacesContext;
@@ -23,7 +24,7 @@
private String skin = defaultSkin;
private UISelectOne createComponent() {
- UISelectOne selectOne = new HtmlSelectOneRadio();
+ UISelectOne selectOne = new HtmlSelectOneMenu();
selectOne.setValue(skin);
for (int i = 0; i < skinsArray.length; i++) {
@@ -57,6 +58,13 @@
return selectOne;
}
+ /**
+ * @param skin the skin to set
+ */
+ public void setSkin(String skin) {
+ this.skin = skin;
+ }
+
public void setComponent(UIComponent component) {
FacesContext facesContext = FacesContext.getCurrentInstance();
Map requestMap = facesContext.getExternalContext().getRequestMap();
Show replies by date