myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jakob Korherr (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (MFCOMMONS-29) Advanced JSF 2 ResourceHandler
Date Fri, 22 Apr 2011 10:14:05 GMT

    [ https://issues.apache.org/jira/browse/MFCOMMONS-29?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13023180#comment-13023180
] 

Jakob Korherr commented on MFCOMMONS-29:
----------------------------------------

NOTE that URL style was changed in MFCOMMONS-30

> Advanced JSF 2 ResourceHandler
> ------------------------------
>
>                 Key: MFCOMMONS-29
>                 URL: https://issues.apache.org/jira/browse/MFCOMMONS-29
>             Project: MyFaces Commons
>          Issue Type: New Feature
>          Components: myfaces-commons-resourcehandler
>    Affects Versions: 1.0.2-SNAPSHOT
>            Reporter: Jakob Korherr
>            Assignee: Jakob Korherr
>             Fix For: 1.0.2-SNAPSHOT
>
>
> The features of this ResourceHandler include the following:
>  - relative paths between resources (css files referencing images
> without using #resource['..'])
>  - caching resources in the client (disabled if ProjectStage == Development)
>  - GZIP compression and local cache in tmp dir (disabled if
> ProjectStage == Development)
>  - i18n (supporting country code and language).
> In addition, it does NOT support ValueExpressions in resource files
> for performance reasons.
> The most important feature, in my opinion, is how the resource URL is
> built, e.g. /faces/javax.faces.resource/de_AT/$/some/library/$/my/resource.css
> ... because it permits resources referencing other resources without
> #{resource['...']} (e.g. css files referencing images or other css
> files). With the standard ResourceHandler this is 1) annoying if you
> have to change the files you get from your designer and 2) a
> performance bottleneck, because resources with ValueExpressions are
> not cached and also regenerated for each request.
> Furthermore, the resource URL contains the locale and thus you have no
> problems with cached resources if a users changes the locale, because
> he/she will get a new URL and thus a new resource (the right one).

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message