Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
1.1.14
-
None
-
None
-
java 1.6, tomcat 6, myfaces 2.0.17
Description
When a inputCalendar component is put in a jsp view, the necessary script resources are not added to the page.
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
<f:view>
<h:form>
<t:inputCalendar
tabindex="1"
renderAsPopup="true" popupButtonStyleClass="calbutton"
popupDateFormat="dd.MM.yyyy"
id="myDate">
</t:inputCalendar>
</h:form>
</f:view>
rendered:
<form id="j_id_jsp_1122995321_1" name="j_id_jsp_1122995321_1" method="post" action="/facesbox/faces/inputCalendar.jsp" enctype="application/x-www-form-urlencoded"><span id="j_id_jsp_1122995321_1:myDate"><input id="j_id_jsp_1122995321_1:myDate_input" name="j_id_jsp_1122995321_1:myDate" type="text" tabindex="1" /><span id="j_id_jsp_1122995321_1:myDateSpan"></span><script type="text/javascript"><!--
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar=new org_apache_myfaces_PopupCalendar();
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.themePrefix = "jscalendar-DB";
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.imgDir = "\/facesbox\/faces\/javax.faces.resource\/";
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.imgDirSuffix = "?ln=oam.custom.calendar.DB";
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.monthName = new Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.dayName = new Array("Mo","Di","Mi","Do","Fr","Sa","So");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.startAt = 1;
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.dateFormatSymbols.weekdays = new Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.dateFormatSymbols.shortWeekdays = new Array("So","Mo","Di","Mi","Do","Fr","Sa");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.dateFormatSymbols.shortMonths = new Array("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.dateFormatSymbols.months = new Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.dateFormatSymbols.eras = new Array("v. Chr.","n. Chr.");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.dateFormatSymbols.ampms = new Array("AM","PM");
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.todayDateFormat = "dd.MM.yyyy";
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.popupLeft = false;
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.initData.selectMode = "day";
j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar.init(document.getElementById('j_id_jsp_1122995321_1:myDateSpan'));
//--></script><input type="button" onclick="j_5Fid_5Fjsp_5F1122995321_5F1_3AmyDateCalendarVar._popUpCalendar(this,document.getElementById('j_id_jsp_1122995321_1:myDate_input'),'dd.MM.yyyy')" value="..." class="calbutton" /></span><input type="hidden" name="j_id_jsp_1122995321_1_SUBMIT" value="1" /><input type="hidden" name="javax.faces.ViewState" id="javax.faces.ViewState" value="4AUb/24XV4dHzZQXGf3iwsaf3cs9M57iRFQmkH0MkJsisi03" /></form>