myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Uribe (JIRA)" <...@myfaces.apache.org>
Subject [jira] Commented: (TOMAHAWK-929) Error javascript with <t:inputDate< and <t:schedule>
Date Thu, 12 Mar 2009 06:10:50 GMT

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


Mime
View raw message