You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by mun <mu...@gmail.com> on 2009/03/11 19:46:23 UTC

Re: Tomahawk - t:schedule and t:inputCalendar cause js script error

Hi,
  I am facing the exact problem.
  could you please let me know if it is solved.

Thanks in advance


j haley wrote:
> 
> 
> Having a problem that I can recreate on the with the tomahawk sample
> project.  I was getting this with version 1.1.6, and I also get it with
> 1.1.8. On myfaces-example-simple-1.1.8/schedule1.jsf, make the following
> change.Add renderAsPopup="true" to the t:inputCalendar. The page renders
> fine, but when I mouse over the page I get a javascript error.  This error
> prevents t:schedule’s tooltip from working.  The combination that causes
> problems is t:inputCalendar or t:inputDate with a renderAsPopup=”true”
> attribute along with a t:schedule with a tooltip=”true” attribute. Bug
> numbers TOMAHAWK-929 and TOMAHAWK-193 look like they may be related to
> this issues. Is there a work around for this?
> _________________________________________________________________
> Color coding for safety: Windows Live Hotmail alerts you to suspicious
> email.
> http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 
> 

-- 
View this message in context: http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22461924.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Tomahawk - t:schedule and t:inputCalendar cause js script error

Posted by Leonardo Uribe <lu...@gmail.com>.
Hi

Thanks a lot for your detailed description, it helps a lot to track it and
find a solution.

Really this is not an easy problem. It seems to be a problem not related to
the components, rather an incompatibility between javascript libraries.

I receive this error on Firebug:

*"Hash is not a constructor"*

on function:

function domLib_getEventPosition(in_eventObj){
   var eventPosition = new Hash('x', 0, 'y', 0, 'scrollX', 0, 'scrollY', 0);

It is possible that some object is overwritten by two different javascript
libraries.

 The javascript libraries of schedule component are:

schedule.HtmlSchedule/javascript/schedule.js
schedule.HtmlSchedule/javascript/alphaAPI.js
schedule.HtmlSchedule/javascript/domLib.js
schedule.HtmlSchedule/javascript/domTT.js
schedule.HtmlSchedule/javascript/fadomatic.js

and inputCalendar

prototype.PrototypeResourceLoader/prototype.js
calendar.HtmlCalendarRenderer/date.js
calendar.HtmlCalendarRenderer/popcalendar.js
inputTextHelp.HtmlTextHelpRenderer/inputTextHelp.js

In this case the problem is between domLib.js and prototype.js (both
javascript libraries use Hash name as variable).

The solution is change in my opinion domLib.js, domTT.js and domTT_drag.js
"Hash" name to DomHash or something more unique (since schedule component is
the only one that use these javascript files). I'll try it to see what
happens.

regards

Leonardo Uribe

On Wed, Mar 11, 2009 at 8:51 PM, j haley <jh...@hotmail.com> wrote:

>  I never got a resolution to this problem.  I'm surprised that this has not
> been more of an issue.  Especially since the example I provided is only a
> small deviation from the sample project.
>
>
>
> > Date: Wed, 11 Mar 2009 11:46:23 -0700
> > From: munny79@gmail.com
> > To: users@myfaces.apache.org
> > Subject: Re: Tomahawk - t:schedule and t:inputCalendar cause js script
> error
> >
> >
> > Hi,
> > I am facing the exact problem.
> > could you please let me know if it is solved.
> >
> > Thanks in advance
> >
> >
> > j haley wrote:
> > >
> > >
> > > Having a problem that I can recreate on the with the tomahawk sample
> > > project. I was getting this with version 1.1.6, and I also get it with
> > > 1.1.8. On myfaces-example-simple-1.1.8/schedule1.jsf, make the
> following
> > > change.Add renderAsPopup="true" to the t:inputCalendar. The page
> renders
> > > fine, but when I mouse over the page I get a javascript error. This
> error
> > > prevents t:schedule’s tooltip from working. The combination that causes
> > > problems is t:inputCalendar or t:inputDate with a renderAsPopup=”true”
> > > attribute along with a t:schedule with a tooltip=”true” attribute. Bug
> > > numbers TOMAHAWK-929 and TOMAHAWK-193 look like they may be related to
> > > this issues. Is there a work around for this?
> > > _________________________________________________________________
> > > Color coding for safety: Windows Live Hotmail alerts you to suspicious
> > > email.
> > >
> http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008
> > >
> >
> > --
> > View this message in context:
> http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22461924.html
> > Sent from the MyFaces - Users mailing list archive at Nabble.com.
> >
>
> ------------------------------
> Windows Live™ Contacts: Organize your contact list. Check it out.<http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns%21503D1D86EBB2B53C%212285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009>
>

RE: Tomahawk - t:schedule and t:inputCalendar cause js script error

Posted by mun <mu...@gmail.com>.

I found temporary solution, if I declare t:InputCalendar before t:schedule
it is working fine.

Thanks




j haley wrote:
> 
> 
> I never got a resolution to this problem.  I'm surprised that this has not
> been more of an issue.  Especially since the example I provided is only a
> small deviation from the sample project.
> 
>  
> 
>  
> 
>  
>> Date: Wed, 11 Mar 2009 11:46:23 -0700
>> From: munny79@gmail.com
>> To: users@myfaces.apache.org
>> Subject: Re: Tomahawk - t:schedule and t:inputCalendar cause js script
>> error
>> 
>> 
>> Hi,
>> I am facing the exact problem.
>> could you please let me know if it is solved.
>> 
>> Thanks in advance
>> 
>> 
>> j haley wrote:
>> > 
>> > 
>> > Having a problem that I can recreate on the with the tomahawk sample
>> > project. I was getting this with version 1.1.6, and I also get it with
>> > 1.1.8. On myfaces-example-simple-1.1.8/schedule1.jsf, make the
>> following
>> > change.Add renderAsPopup="true" to the t:inputCalendar. The page
>> renders
>> > fine, but when I mouse over the page I get a javascript error. This
>> error
>> > prevents t:schedule’s tooltip from working. The combination that causes
>> > problems is t:inputCalendar or t:inputDate with a renderAsPopup=”true”
>> > attribute along with a t:schedule with a tooltip=”true” attribute. Bug
>> > numbers TOMAHAWK-929 and TOMAHAWK-193 look like they may be related to
>> > this issues. Is there a work around for this?
>> > _________________________________________________________________
>> > Color coding for safety: Windows Live Hotmail alerts you to suspicious
>> > email.
>> >
>> http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 
>> > 
>> 
>> -- 
>> View this message in context:
>> http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22461924.html
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>> 
> 
> _________________________________________________________________
> Windows Live™ Contacts: Organize your contact list. 
> http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009
> 

-- 
View this message in context: http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22477658.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


RE: Tomahawk - t:schedule and t:inputCalendar cause js script error

Posted by j haley <jh...@hotmail.com>.
I never got a resolution to this problem.  I'm surprised that this has not been more of an issue.  Especially since the example I provided is only a small deviation from the sample project.

 

 

 
> Date: Wed, 11 Mar 2009 11:46:23 -0700
> From: munny79@gmail.com
> To: users@myfaces.apache.org
> Subject: Re: Tomahawk - t:schedule and t:inputCalendar cause js script error
> 
> 
> Hi,
> I am facing the exact problem.
> could you please let me know if it is solved.
> 
> Thanks in advance
> 
> 
> j haley wrote:
> > 
> > 
> > Having a problem that I can recreate on the with the tomahawk sample
> > project. I was getting this with version 1.1.6, and I also get it with
> > 1.1.8. On myfaces-example-simple-1.1.8/schedule1.jsf, make the following
> > change.Add renderAsPopup="true" to the t:inputCalendar. The page renders
> > fine, but when I mouse over the page I get a javascript error. This error
> > prevents t:schedule’s tooltip from working. The combination that causes
> > problems is t:inputCalendar or t:inputDate with a renderAsPopup=”true”
> > attribute along with a t:schedule with a tooltip=”true” attribute. Bug
> > numbers TOMAHAWK-929 and TOMAHAWK-193 look like they may be related to
> > this issues. Is there a work around for this?
> > _________________________________________________________________
> > Color coding for safety: Windows Live Hotmail alerts you to suspicious
> > email.
> > http://windowslive.com/Explore/Hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_safety_112008 
> > 
> 
> -- 
> View this message in context: http://www.nabble.com/Tomahawk---t%3Aschedule-and-t%3AinputCalendar-cause-js-script-error-tp20661957p22461924.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
> 

_________________________________________________________________
Windows Live™ Contacts: Organize your contact list. 
http://windowslive.com/connect/post/marcusatmicrosoft.spaces.live.com-Blog-cns!503D1D86EBB2B53C!2285.entry?ocid=TXT_TAGLM_WL_UGC_Contacts_032009