]
Alexander Smirnov updated RF-6734:
----------------------------------
Complexity: Medium
Do not render default attributes.
---------------------------------
Key: RF-6734
URL:
https://jira.jboss.org/jira/browse/RF-6734
Project: RichFaces
Issue Type: Feature Request
Affects Versions: 3.3.0
Reporter: Alexander Smirnov
Calendar JavaScript code is always rendered with full attributes values that significant
increase size of html page:
new Calendar('pageForm:SITE_V_HOLD_BEGIN_DATE_date', {dayListTableId:
'pageForm:SITE_V_HOLD_BEGIN_DATE_dateDay',
weekNumberBarId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateWeekNum',
weekDayBarId: 'pageForm:SITE_V_HOLD_BEGIN_DATE_dateWeekDay',
currentDate: new Date(2009,3,8),
selectedDate: null,
datePattern: 'MM/dd/yyyy',
jointPoint: 'bottom-left',
direction: 'bottom-right',
toolTipMode:'batch',
boundaryDatesMode:'inactive',
popup: true,
enableManualInput: false,
showInput: true,
disabled: false,
readonly: false,
ajaxSingle: true,
verticalOffset:0,
horizontalOffset: 0,
style:'z-index: 3; ',
firstWeekDay: 0,
minDaysInFirstWeek: 1,
todayControlMode:'select',
showHeader:true,
showFooter:true,
showWeeksBar:true,
showWeekDaysBar:true,
showApplyButton:false,
resetTimeOnDateSelect:false,
defaultTime:{hours:12,minutes:0},
labels:{apply:'Apply', today:'Today', clean:'Clean',
cancel:'Cancel', ok:'OK', close:'x'},
'monthLabelsShort':
['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec']
,
'weekDayLabelsShort':
['Sun','Mon','Tue','Wed','Thu','Fri','Sat']
,
'monthLabels':
['January','February','March','April','May','June','July','August','September','October','November','December']
,
'weekDayLabels':
['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday']
}).load();
Because page developers almost newer use all of them together, calendar should use
built-in default values and never render default values.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: