jakartaee / jakartaee/faces

Allow a URL target for outputScript and outputStylesheet

Open
#598 16 comments 0 reactions 0 assignees View on GitHub
Component: Resources Priority: Minor Type: Improvement
Dominant language
Java
Stars
127
Forks
59
Avg merge
23h
Merged PRs (30d)
7

Description

both outputStylesheet and outputScript should be able to take a URL instead of a
resource target - there are times when you want to serve things from someone
else's machine, such as Yahoo or Google.

One use case for this change: You are writing a composite component, which uses
Google's service to load CSS (such as when you use the YUI components). This
means that you currently must either require users to put a `` tag in the
header, which is clearly undesirable, or that you need to use only local files,
which can in many cases offer worse performance.

#### Environment
Operating System: All
Platform: All
#### Affected Versions
[2.1]

Contributor guide

Open the contributing guide

Research direction

Start by tracing how outputScript and outputStylesheet currently resolve resource targets. Check how a URL target could be distinguished from an existing resource target, then verify that external script and stylesheet URLs are rendered correctly for the composite-component use case described in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
frontend, web-dev
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
40/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.