myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Werner Punz (JIRA)" <>
Subject [jira] Commented: (MYFACES-2714) Include uncompressed jsf.js file and use it when development mode is used
Date Fri, 14 May 2010 22:36:43 GMT


Werner Punz commented on MYFACES-2714:

No Objections from my side, but I would prefer an even better solution, since we are highly
modular we could use
the included xhr load functinality to load the scripts in dev mode one by one.

The function which could be used theoretically would be 
myfaces._impl.core._Runtime.loadScript = function(src, type, defer, charSet):

That however means that the myfaces._impl.core._Runtime must be loaded upfrond and then a
of myfaces._impl.core._Runtime.loadScript must be issued like following

myfaces._impl.core._Runtime.loadScript("./myfaces/_util/_Lang.js", "text/javascript", false,
myfaces._impl.core._Runtime.loadScript("./myfaces/_util/_Dom.js", "text/javascript", false,

Not sure how the correct syntax for jsf resource requests is in that case

So in the end a debug build just has to include the core and a loader file which issues the
loadScript commands 
on the fly.

That way we would not have a full single huge file which is hard to debug, but instead single
files loaded dynamically.

The other way would be to render the jsf.js files one by one in dev mode as separate includes.
I would prefer a multi file include solution for dev purposes over the single file one, because
it is easier to debug that way.

Mojarra just includes one file because they are not modular (which if the codebase in this
area grows will become a maintenance nightmare),
since we do not have this nightmare why not be more modular in our includes as well?

> Include uncompressed jsf.js file and use it when development mode is used
> -------------------------------------------------------------------------
>                 Key: MYFACES-2714
>                 URL:
>             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
> 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.

View raw message