Author: akushunin
Date: 2007-11-30 08:00:00 -0500 (Fri, 30 Nov 2007)
New Revision: 4387
Modified:
branches/3.1.x/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
Log:
RF-1450
Modified: branches/3.1.x/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx
===================================================================
---
branches/3.1.x/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-11-30
12:36:45 UTC (rev 4386)
+++
branches/3.1.x/ui/calendar/src/main/templates/org/richfaces/htmlCalendar.jspx 2007-11-30
13:00:00 UTC (rev 4387)
@@ -120,13 +120,11 @@
boolean manualInput = getUtils().isBooleanAttribute(component,
"enableManualInput");
String onfieldclick =null;
String type="text";
- if(manualInput){
- variables.setVariable("manualInput",new Boolean(!manualInput));
- }
- else{
- variables.setVariable("manualInput",new Boolean(!manualInput));
+ if(!manualInput){
+ variables.setVariable("manualInput",new String("readonly"));
onfieldclick =
"$('"+clientId+"').component.doSwitch();";
- }
+ }
+
if (!showInput){
type="hidden";
}
@@ -156,7 +154,8 @@
size="#{component.attributes['inputSize']}"
style="vertical-align: middle;
#{component.attributes['inputStyle']}"
class="rich-calendar-input #{component.attributes['inputClass']}"
- tabindex="#{component.attributes['tabindex']}"> </input>
+ tabindex="#{component.attributes['tabindex']}">
+ </input>
<jsp:scriptlet>
<![CDATA[
String buttonIcon = org.richfaces.component.util.ViewUtil.getResourceURL((String)
component.getAttributes().get("buttonIcon"),context);