JSF 2 resources with CDN?

前端 未结 1 1503
误落风尘
误落风尘 2021-01-05 23:08

As i understand it, the needs for JSF 2 resources is to help organizing resources directories, and add some versioning and localization.

But is it possible to combin

1条回答
  •  余生分开走
    2021-01-05 23:46

    This is not possible with and yet, as they can only point to webapp's own resources, not to an external URL. This feature has already been requested to the JSF guys. See also JSF spec issue 598. Right now it's scheduled for 2.2, but I don't expect it to be already implemented then as it's currently at 0 votes.

    Until then, you'd need to specify them yourself using plain HTML and


    Update the JSF utility library OmniFaces has since version 1.2 a CDNResourceHandler available which could be used to automatically replace JSF resources by CDN resources when running in production stage. See also the CDNResourceHandler showcase page.

    0 讨论(0)
提交回复
热议问题