[
https://jira.jboss.org/jira/browse/RF-6975?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Nick Belaevski updated RF-6975:
-------------------------------
Component/s: third-party
> javascript error for rich:calendar when running in Debug mode
> -------------------------------------------------------------
>
> Key: RF-6975
> URL: https://jira.jboss.org/jira/browse/RF-6975
> Project: RichFaces
> Issue Type: Bug
> Components: third-party
> Affects Versions: 3.2.1, 3.2.2, 3.3.0, 3.3.1
> Environment: Myfaces 1.2
> trinidad 1.2.11
> richfaces 3.3.1
> tomahawk1.1.9
> facelets 1.1.14
> Reporter: asn reddy
> Assignee: Nick Belaevski
> Fix For: Future
>
>
> When i set <debug-output>true</debug-output> in trinidad-config the calender
> component does not work in popup mode
> firefox browser says : Error: $(element).getStyle is not a function
> Source File:
> http://localhost:8765/test/a4j/g/3_3_1-SNAPSHOTorg.ajax4jsf.javascript.PrototypeScript.x
> Line: 120
> when i start debugger in firebug, the problem seems to be with comment node.
> When myfaces is running in debug mode it generates comments in the xhtml file
> which is responsible for the javascript error.
> the xhtml source snippet generated:
> <!--Start: javax.faces.Panel["j_id15"]--><tr>
> <td>Date Of Birth<html> <span
> style='color:red;'>*</span></html></td>
> <!--Start: javax.faces.Panel["j_id15"]-->
> <td><!--Start:
> javax.faces.Panel["j_id23"]--><div id="centerForm:j_id23"><!--Start:
> org.richfaces.Calendar["dob"]--><span id="centerForm:dobPopup"><input
> class="rich-calendar-input " id="centerForm:dobInputDate"
> name="centerForm:dobInputDate" style="vertical-align: middle; "
> type="text"><!--Start: org.richfaces.Calendar["dob"]--><img alt=""
> class="rich-calendar-button " id="centerForm:dobPopupButton"
> style="vertical-align: middle"
> src="/test/a4j/g/3_3_1-SNAPSHOTorg.richfaces.renderkit.html.iconimages.CalendarIcon/DATB/eAE7fv4Kw6znAA4mA-w_.x"><!--Start:
> org.richfaces.Calendar["dob"]--><input id="centerForm:dobInputCurrentDate"
> name="centerForm:dobInputCurrentDate" style="display:none" type="hidden"
> value="04/2009"><!--Start: org.richfaces.Calendar["dob"]-->
> <style
> type="text/css">.centerForm_dobDayCell{width:24px;height:22px;}</style>
> </span><!--Start:
> org.richfaces.Calendar["dob"]--><div id="centerForm:dobIFrame"
> style="display: none;"></div><!--Start: org.richfaces.Calendar["dob"]--><div
> id="centerForm:dob" style="display: none;"></div><!--Start:
> org.richfaces.Calendar["dob"]--><div id="centerForm:dobScript"
> style="display: none;"><script type="text/javascript">new
> Calendar('centerForm:dob', {dayListTableId: 'centerForm:dobDay',
> weekNumberBarId: 'centerForm:dobWeekNum',
> weekDayBarId: 'centerForm:dobWeekDay',
> currentDate: new Date(2009,3,30),
> selectedDate: null,
> datePattern: 'MMM d, yyyy',
> jointPoint: 'bottom-left',
> direction: 'bottom-right',
> boundaryDatesMode:'inactive',
> popup: true,
> enableManualInput: true,
> showInput: true,
> disabled: false,
> readonly: false,
> ajaxSingle: true,
> verticalOffset:0,
> horizontalOffset: 0,
> style:'z-index: 3; width:200px',
> firstWeekDay: 0,
> minDaysInFirstWeek: 1,
> todayControlMode:'select',
> showHeader:true,
> showFooter:true,
> showWeeksBar:true,
> showWeekDaysBar:true,
> showApplyButton:true,
> resetTimeOnDateSelect:false,
> defaultTime:{hours:12,minutes:0},
> labels:{apply:'Apply', today:'Today', clean:'Clean', ok:'OK',
> cancel:'Cancel', close:'x'},
> dayCellClass: 'centerForm_dobDayCell',
> 'monthLabels':
> ['January','February','March','April','May','June','July','August','September','October','November','December']
> ,
> 'monthLabelsShort':
> ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] ,
> 'weekDayLabels':
> ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] ,
> 'weekDayLabelsShort': ['Sun','Mon','Tue','Wed','Thu','Fri','Sat']
> }).load();</script></div></div></td>
> <!--Start: javax.faces.Panel["j_id15"]-->
> <td></td>
> </tr>
> In the above snippet : <!--Start: org.richfaces.Calendar["dob"]--> causes
> the problem.
> this problem exists with all the versions above richfaces 3.2
--
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
_______________________________________________
richfaces-issues mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/richfaces-issues