You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org> on 2009/03/12 07:10:50 UTC

[jira] Commented: (TOMAHAWK-929) Error javascript with

    [ https://issues.apache.org/jira/browse/TOMAHAWK-929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12681173#action_12681173 ] 

Leonardo Uribe commented on TOMAHAWK-929:
-----------------------------------------


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). 

> Error javascript with <t:inputDate< and <t:schedule>
> ----------------------------------------------------
>
>                 Key: TOMAHAWK-929
>                 URL: https://issues.apache.org/jira/browse/TOMAHAWK-929
>             Project: MyFaces Tomahawk
>          Issue Type: Bug
>          Components: Date, Schedule
>    Affects Versions: 1.1.5-SNAPSHOT
>         Environment: IE 7
>            Reporter: Auger François
>            Priority: Minor
>
> If <t:inputDate> and <t:schedule> exist in the same jsp page, an javascipt error appears

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.