myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Julios <juliorod...@gmail.com>
Subject Re: TOMAHAWK< t:inputCalendar java script problem popup
Date Mon, 05 Apr 2010 18:38:45 GMT

Hy , im having the exact same problem with an t:inputCalendar but im using
OC4J as a webserver
a i readed your solution on websphere but is how can i make it work on OC4J?

thanks for any help



Klaus Schuster wrote:
> 
> Hi,
> 
> I am using a t:inputCalendar tag from Tomahawk 1.1.8:
> [code]
> <t:inputCalendar id="mycal"
>  addResources="false" 
>  monthYearRowClass="yearMonthHeader" 
>  weekRowClass="weekHeader" 
>  popupButtonStyleClass="standard_bold"
>  currentDayCellClass="currentDayCell" 
>  value="#{BB.geburtsdatum}" 
>  renderAsPopup="true"
>  popupTodayString="Heute ist der: " 
>  helpText="MM/DD/YYYY">
> </t:inputCalendar>
> <h:outputText value="#{BB.geburtsdatum}" />
> [/code]
> 
> geburtsdatum is a DATE in my BB with its getter and setter.
> The t:inputCalendar is embedded in an form.
> When I open the JSF Page with Internet Explorer 6 I get the following 
> JavaScript error:
> [code]
> org_apache_myfaces_PopupCalendar() is undefined
> [/code]
> 
> I read a lot on the web, and tryed to use the command addResources="false" 
> in combination with
> the extension filter in my web.xml:
> [code]
> <filter-mapping> 
>        <filter-name>MyFacesExtensionsFilter</filter-name> 
>         <servlet-name>Faces Servlet</servlet-name>
> </filter-mapping> 
> [/code]
> 
> My page source code look like this:
> [code]
> <input id="frm1:mycal" name="frm1:mycal" type="text" 
> onfocus="selectText('MM/DD/YYYY', 'frm1:mycal')" 
> onclick="selectText('MM/DD/YYYY', 'frm1:mycal')" value="MM/DD/YYYY" 
> /><script type="text/javascript"><!--
> frm1_3AmycalCalendarVar=new org_apache_myfaces_PopupCalendar();
> frm1_3AmycalCalendarVar.initData.themePrefix = "jscalendar-DB";
> frm1_3AmycalCalendarVar.initData.imgDir = 
> "/ewc/faces/myFacesExtensionResource/org.apache.myfaces.renderkit.html.util.MyFacesResourceLoader/12385048/calendar.HtmlCalendarRenderer/DB/";
> frm1_3AmycalCalendarVar.initData.monthName = new 
> Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
> frm1_3AmycalCalendarVar.initData.dayName = new 
> Array("Mo","Di","Mi","Do","Fr","Sa","So");
> frm1_3AmycalCalendarVar.initData.startAt = 1;
> frm1_3AmycalCalendarVar.dateFormatSymbols.weekdays = new 
> Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");
> frm1_3AmycalCalendarVar.dateFormatSymbols.shortWeekdays = new 
> Array("So","Mo","Di","Mi","Do","Fr","Sa");
> frm1_3AmycalCalendarVar.dateFormatSymbols.shortMonths = new 
> Array("Jan","Feb","M\u00E4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");
> frm1_3AmycalCalendarVar.dateFormatSymbols.months = new 
> Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");
> frm1_3AmycalCalendarVar.dateFormatSymbols.eras = new Array("v. Chr.","n. 
> Chr.");
> frm1_3AmycalCalendarVar.dateFormatSymbols.ampms = new Array("AM","PM");
> frm1_3AmycalCalendarVar.initData.todayString = "Heute ist der: ";
> frm1_3AmycalCalendarVar.initData.popupLeft = false;
> 
> frm1_3AmycalCalendarVar.initData.selectMode = "day";
> frm1_3AmycalCalendarVar.init(document.getElementById('frm1:mycalSpan'));
> 
> //--></script><input type="button" 
> onclick="frm1_3AmycalCalendarVar._popUpCalendar(this,document.getElementById('frm1:mycal'),'dd.MM.yy')"

> value="..." class="standard_bold" /></div>
> [/code]
> 
> Is it possible, that there is no path found for creating the instance in 
> the java script:
> [code] 
> frm1_3AmycalCalendarVar=new org_apache_myfaces_PopupCalendar();
> [/code]
> 
> Anyone any idea, why this can't be found?
> Thanks,
> 
> 
> 
> Der Austausch von Nachrichten mit o.a. Absender via e-mail dient
> ausschließlich Informationszwecken. Rechtsgeschäftliche Erklärungen dürfen
> über dieses Medium nicht ausgetauscht werden.
> 
> Correspondence with a.m. sender via e-mail is only for information
> purposes. This medium is not to be used for the exchange of
> legally-binding communications.
> 
> 

-- 
View this message in context: http://old.nabble.com/TOMAHAWK%3C-t%3AinputCalendar-java-script-problem-popup-tp22821461p28143350.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Mime
View raw message