You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Lisaa <li...@yahoo.com> on 2006/04/07 17:27:06 UTC

inputdate popup problem

Hi.,
  I added the following code
<t:inputDate value="#{date}" type="date"  popupCalendar="true" />
 inorder to use the input date functionality (with "date" in request scope). 

  The drop down looks fine but when I click the button there is no popup. I
saw in the js console ("..not defined") errors. 
 I'm using Facelets with integrated Tomahawk taglib.

Any help is highly appreciated.

Thanks.,
Prem
--
View this message in context: http://www.nabble.com/inputdate-popup-problem-t1412693.html#a3805743
Sent from the MyFaces - Users forum at Nabble.com.


Re: inputdate popup problem

Posted by Lisaa <li...@yahoo.com>.
Thanks for your reply. 

I don't have the popcalendar_init.js. I searched on net to get that file but
no success. Could you please send me that file. 

Here's the rendered js on my HTML page..

<span id="login:_id20"><input id="login:_id20.day" name="login:_id20.day"
size="2" maxlength="2" value="08" /><select id="login:_id20.month"
name="login:_id20.month" size="1">		<option value="1">Januar</option>	
<option value="2">Februar</option>		<option value="3">M&auml;rz</option>	
<option value="4" selected="selected">April</option>		<option
value="5">Mai</option>		<option value="6">Juni</option>		<option
value="7">Juli</option>		<option value="8">August</option>		<option
value="9">September</option>		<option value="10">Oktober</option>		<option
value="11">November</option>		<option
value="12">Dezember</option></select><input id="login:_id20.year"
name="login:_id20.year" size="4" maxlength="4" value="2006" />

<script type="text/javascript"><!--
loadPopupScript();jscalendarSetImageDirectory('/ald2/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11295181/DB/');
//--></script>

<script type="text/javascript"><!--
jscalendarMonthName = new
Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");jscalendarMonthName2
= new
Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");jscalendarDayName
= new Array("Mo","Di","Mi","Do","Fr","Sa","So");jscalendarStartAt = 1;
jscalendarDateFormatSymbols = new DateFormatSymbols();
jscalendarDateFormatSymbols.weekdays = new
Array("Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag");jscalendarDateFormatSymbols.shortWeekdays
= new
Array("So","Mo","Di","Mi","Do","Fr","Sa");jscalendarDateFormatSymbols.shortMonths
= new
Array("Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez");jscalendarDateFormatSymbols.months
= new
Array("Januar","Februar","M\u00E4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember");jscalendarDateFormatSymbols.eras
= new Array("v. Chr.","n. Chr.");jscalendarDateFormatSymbols.ampms = new
Array("AM","PM");
//--></script><input type="button"
onclick="jscalendarPopUpCalendarForInputDate('login:_id20','dd.MM.yy')"
value="..." /></span>

sorry a bit large...

 
--
View this message in context: http://www.nabble.com/inputdate-popup-problem-t1412693.html#a3816849
Sent from the MyFaces - Users forum at Nabble.com.


Re: inputdate popup problem

Posted by Rogerio Pereira <ro...@gmail.com>.
in my case i can't see the popup button

--
Yours truly (Atenciosamente),

Rogério

Re: inputdate popup problem

Posted by CD <dc...@gmail.com>.
Lisaa,

Did you include the popcalendar_init.js (included *before* popcalendar.js)
on the page?

I had a similar problem previously with that being the case but that could
have been unique to my situation.  popcalendar_init.js sets up some
functions/properties that are used by popcalendar.js.  Do you have a more
verbose description of the javascript error you are getting?


On 4/7/06, Lisaa <li...@yahoo.com> wrote:
>
>
> Thanks for your replies.
>
> I manually added (date.js and popcalendar.js) to the head of my page but
> no
> change.. same js error as quoted below..
>
>
> loadPopupScript();jscalendarSetImageDirectory('/ald2/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11295181/DB/');
>
> Tomahawk Extensions is already active and I am using with Facelets without
> any conflicts. see the entry below..
> <filter-name>MyFacesExtensionsFilter</filter-name>
>
> <filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter
> </filter-class>
>
> and even I added an new entry like..
> <filter-mapping>
>             <filter-name>MyFacesExtensionsFilter</filter-name>
>             <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
>    </filter-mapping>
>
> but no success yet.
>
> Or is it anything because of Facelets?
> Any more suggestions?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/inputdate-popup-problem-t1412693.html#a3807634
> Sent from the MyFaces - Users forum at Nabble.com.
>
>

Re: inputdate popup problem

Posted by Lisaa <li...@yahoo.com>.
Thanks for your replies.

I manually added (date.js and popcalendar.js) to the head of my page but no
change.. same js error as quoted below..

loadPopupScript();jscalendarSetImageDirectory('/ald2/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11295181/DB/');

Tomahawk Extensions is already active and I am using with Facelets without
any conflicts. see the entry below..
<filter-name>MyFacesExtensionsFilter</filter-name>
   
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>

and even I added a new entry like..
 <filter-mapping>
	     <filter-name>MyFacesExtensionsFilter</filter-name>
	     <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    </filter-mapping>

but no success yet.

Or is it anything because of Facelets? 
Any more suggestions?

Thanks
--
View this message in context: http://www.nabble.com/inputdate-popup-problem-t1412693.html#a3807634
Sent from the MyFaces - Users forum at Nabble.com.


Re: inputdate popup problem

Posted by Joey Geiger <jo...@staff.onmilwaukee.com>.
make sure the tomahawk extensions filter is active as well.




Re: inputdate popup problem

Posted by Lisaa <li...@yahoo.com>.
Thanks for your replies.

I manually added (date.js and popcalendar.js) to the head of my page but no
change.. same js error as quoted below..

loadPopupScript();jscalendarSetImageDirectory('/ald2/faces/myFacesExtensionResource/calendar.HtmlCalendarRenderer/11295181/DB/');

Tomahawk Extensions is already active and I am using with Facelets without
any conflicts. see the entry below..
<filter-name>MyFacesExtensionsFilter</filter-name>
   
<filter-class>org.apache.myfaces.component.html.util.ExtensionsFilter</filter-class>

and even I added an new entry like..
 <filter-mapping>
	     <filter-name>MyFacesExtensionsFilter</filter-name>
	     <url-pattern>/faces/myFacesExtensionResource/*</url-pattern>
    </filter-mapping>

but no success yet.

Or is it anything because of Facelets? 
Any more suggestions?

Thanks
--
View this message in context: http://www.nabble.com/inputdate-popup-problem-t1412693.html#a3807634
Sent from the MyFaces - Users forum at Nabble.com.


Re: inputdate popup problem

Posted by CD <dc...@gmail.com>.
Hi Lisaa,

Have you ensured that the proper js files (date.js, popcalendar_init.js and
popcalendar.js) have been included in your page?

Regards,
CD


On 4/7/06, Lisaa <li...@yahoo.com> wrote:
>
>
> Hi.,
> I added the following code
> <t:inputDate value="#{date}" type="date"  popupCalendar="true" />
> inorder to use the input date functionality (with "date" in request
> scope).
>
> The drop down looks fine but when I click the button there is no popup. I
> saw in the js console ("..not defined") errors.
> I'm using Facelets with integrated Tomahawk taglib.
>
> Any help is highly appreciated.
>
> Thanks.,
> Prem
> --
> View this message in context:
> http://www.nabble.com/inputdate-popup-problem-t1412693.html#a3805743
> Sent from the MyFaces - Users forum at Nabble.com.
>
>