Author: konstantin.mishin
Date: 2011-01-12 13:17:40 -0500 (Wed, 12 Jan 2011)
New Revision: 20970
Modified:
trunk/ui/input/ui/src/main/templates/input.template.inc
trunk/ui/input/ui/src/main/templates/inputnumberslider.template.xml
Log:
RF-9860
Modified: trunk/ui/input/ui/src/main/templates/input.template.inc
===================================================================
--- trunk/ui/input/ui/src/main/templates/input.template.inc 2011-01-12 18:07:12 UTC (rev
20969)
+++ trunk/ui/input/ui/src/main/templates/input.template.inc 2011-01-12 18:17:40 UTC (rev
20970)
@@ -25,6 +25,6 @@
<span class="rf-insl-inp-cntr">
<input
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/core"
name="#{clientId}" type="text"
class="rf-insl-inp #{component.attributes['inputClass']}"
value="#{getInputValue(facesContext, component)}"
- cdk:passThrough="accesskey disabled maxlength size:inputSize tabindex"
readonly="#{!component.attributes['enableManualInput']}"
- style="#{component.attributes['showInput'] ? null : 'display:
none;'}" />
+ cdk:passThrough="accesskey disabled size:inputSize tabindex"
readonly="#{!component.attributes['enableManualInput']}"
+ style="#{component.attributes['showInput'] ? null : 'display:
none;'}" maxlength="#{maxlength > 0 ? maxlength : null}"/>
</span>
\ No newline at end of file
Modified: trunk/ui/input/ui/src/main/templates/inputnumberslider.template.xml
===================================================================
--- trunk/ui/input/ui/src/main/templates/inputnumberslider.template.xml 2011-01-12
18:07:12 UTC (rev 20969)
+++ trunk/ui/input/ui/src/main/templates/inputnumberslider.template.xml 2011-01-12
18:17:40 UTC (rev 20970)
@@ -39,6 +39,7 @@
</cc:interface>
<cc:implementation>
<span id="#{clientId}" class="rf-insl
#{component.attributes['styleClass']}" cdk:passThroughWithExclusions="id
class">
+ <cdk:call expression='int maxlength = (Integer)
component.getAttributes().get("maxlength");' />
<c:if test="#{isInputPosition(component, 'left') ||
isInputPosition(component, 'top')}">
<xi:include xpointer="xpointer(/*)" href="input.template.inc"
/>
<c:if test="#{isInputPosition(component, 'top') and
component.attributes['showInput']}">