[
https://issues.apache.org/jira/browse/MYFACES-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868477#action_12868477
]
Leonardo Uribe commented on MYFACES-2714:
-----------------------------------------
Hi
I did some tests with firebug, and I notice that if we add resources in this
way:
function oamLoadJavascript(resource)
{
var head = document.getElementsByTagName("head")[0];
if ('undefined' == typeof head || null == head)
{
head = document.createElement("head");
head.appendChild(head);
}
var script = document.createElement("script");
script.type = "text/javascript";
script.src = resource;
head.appendChild(script);
}
It works. Firebug recognize the resource as javascript and we can debug. Is it
possible that someone with better knowledge on javascript refactor this
function properly? After that, I'll update the patch and commit it.
> Include uncompressed jsf.js file and use it when development mode is used
> -------------------------------------------------------------------------
>
> Key: MYFACES-2714
> URL: https://issues.apache.org/jira/browse/MYFACES-2714
> Project: MyFaces Core
> Issue Type: Improvement
> Components: JSR-314
> Affects Versions: 2.0.0
> Reporter: Leonardo Uribe
> Assignee: Leonardo Uribe
> Attachments: MYFACES-2714-2.patch, MYFACES-2714-3.patch,
> MYFACES-2714-4.patch
>
>
> Reading some blogs about jsf 2.0, I notice mojarra include an uncompressed
> jsf.js file and use it when development mode is used. It is difficult to
> debug myfaces javascript for users and I think it is worth to do it too.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.