Author: nbelaevski
Date: 2007-05-30 14:10:24 -0400 (Wed, 30 May 2007)
New Revision: 950
Modified:
trunk/richfaces/inputnumber-spinner/src/main/java/org/richfaces/component/UIInputNumberSpinner.java
trunk/richfaces/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx
Log:
Component updated due to
http://jira.jboss.com/jira/browse/AJSF-72 to pass JUnit tests
Modified:
trunk/richfaces/inputnumber-spinner/src/main/java/org/richfaces/component/UIInputNumberSpinner.java
===================================================================
---
trunk/richfaces/inputnumber-spinner/src/main/java/org/richfaces/component/UIInputNumberSpinner.java 2007-05-30
17:37:12 UTC (rev 949)
+++
trunk/richfaces/inputnumber-spinner/src/main/java/org/richfaces/component/UIInputNumberSpinner.java 2007-05-30
18:10:24 UTC (rev 950)
@@ -21,7 +21,6 @@
package org.richfaces.component;
-import javax.faces.component.UIInput;
/**
* JSF component class
@@ -31,4 +30,6 @@
public static final String COMPONENT_TYPE =
"org.richfaces.inputNumberSpinner";
+ public abstract String getInputStyle();
+ public abstract void setInputStyle(String inputStyle);
}
Modified: trunk/richfaces/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx
===================================================================
---
trunk/richfaces/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx 2007-05-30
17:37:12 UTC (rev 949)
+++
trunk/richfaces/inputnumber-spinner/src/main/templates/inputNumberSpinner.jspx 2007-05-30
18:10:24 UTC (rev 950)
@@ -24,17 +24,19 @@
<tbody>
<tr>
<td width="1%" class="dr-spnr-e rich-spinner-input-container"
id="#{clientId}Edit">
- <input onchange="#{component.attributes['onchange']}"
+ <input
+ class="dr-spnr-i rich-spinner-input
#{component.attributes['inputClass']}"
+ onchange="#{component.attributes['onchange']}"
onselect="#{component.attributes['onselect']}"
onfocus="#{component.attributes['onfocus']}"
onblur="#{component.attributes['onblur']}"
type="text"
- accesskey="#{component.attributes['accesskey']}"
size="#{component.attributes['inputSize']}"
name="#{clientId}"
- class="dr-spnr-i rich-spinner-input
#{component.attributes['inputClass']}"
- style="#{component.attributes['inputStyle']}"
- value="#{this:getInputValue(context, component)}" />
+ value="#{this:getInputValue(context, component)}"
+ style="#{component.inputStyle}"
+ accesskey="#{component.attributes['accesskey']}"
+ />
</td>
<td id="#{clientId}For" class="dr-spnr-b"
width="1%">
<table id="#{clientId}Buttons" border="0"
cellspacing="0" cellpadding="0">