[
https://issues.apache.org/jira/browse/MYFACES-2714?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12868182#action_12868182
]
Werner Punz commented on MYFACES-2714:
--------------------------------------
Ok I did a quick mockup of the loading mechanism
it mostly works fine however firebug after the internal eval drops all carriage
returns so that the scripts
which are loaded that way are impossible to debug.
So for now until I know the cause of this, I would recommend leos original
approach
of loading one big js file or making a set of direct include links.
Nevertheless for testing here is my testcase
<script type="text/javascript"
src="#{resource['scripts:/myfaces/_impl/core/_Runtime.js']}"></script>
<script type="text/javascript">
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/_util/_Lang.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/_util/_Queue.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/_util/_ListenerQueue.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/_util/_Dom.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/_util/_UnitTest.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/_util/_HtmlStripper.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/xhrCore/_AjaxUtils.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/xhrCore/_AjaxRequestQueue.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/xhrCore/_AjaxRequest.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/xhrCore/_AjaxResponse.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/xhrCore/_Transports.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/_impl/core/Impl.js']}",
null, null, "UTF-8");
myfaces._impl.core._Runtime.loadScript("#{resource['scripts:/myfaces/api/jsf.js']}",
null, null, "UTF-8");
</script>
Anyway unless I can resolve that carriage return issue, this approach at least
for debugging porposes is not possible to use.
> 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
>
>
> 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.