[richfaces-issues] [JBoss JIRA] Created: (RF-6734) Do not render default attributes.
Alexander Smirnov (JIRA)
jira-events at lists.jboss.org
Wed Apr 8 16:02:41 EDT 2009
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: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list