myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marco Tietjen (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Created] (TOMAHAWK-1665) InputCalendar sript resources are not rendered in jsp view
Date Fri, 05 Jul 2013 13:07:48 GMT
Marco Tietjen created TOMAHAWK-1665:
---------------------------------------

             Summary: InputCalendar sript resources are not rendered in jsp view 
                 Key: TOMAHAWK-1665
                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-1665
             Project: MyFaces Tomahawk
          Issue Type: Bug
          Components: Calendar
    Affects Versions: 1.1.14
         Environment: java 1.6, tomcat 6, myfaces 2.0.17
            Reporter: Marco Tietjen


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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message