question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Configuration: primefaces.HIDE_RESOURCE_VERSION and updating PrimeFaces

See original GitHub issue

Description

#8752 -this is a nice feature, because it is bad practice to have that much visible library version for everyone, but it is problematic when you update Primeface and people have cached version of old scripts.

Describe the solution you would like

Maybe instead of boolean, there can be configuration that could accept custom String, for example:

<context-param>
    <param-name>primefaces.RESOURCE_VERSION</param-name>
    <param-value></param-value>
</context-param>

<context-param>
    <param-name>primefaces.RESOURCE_VERSION</param-name>
    <param-value>49827659</param-value>
</context-param>

Additional context

No response

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:14 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mellowarecommented, Aug 29, 2022

Yep I will add an example in the docu how to override and set this yourself. I am changing this ticket to documentation.

1reaction
tandraschkocommented, Aug 26, 2022

everyone can simple overwrite the ResourceHandler and append such a UID i wouldnt add this to PF.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding PrimeFaces process/update and JSF f:ajax ...
The process attribute tells JSF, using a space-separated list of client IDs, which components exactly must be processed through the entire JSF ......
Read more >
update="@all" is not working with "<ui:include ..."
When you use update="@all" in PrimeFaces ajax response does contain page code but it's not applied. I mean it is not refreshed in...
Read more >
PrimeFaces Elite 3.5.9 Released
PrimeFaces Team is pleased to announce a new Elite release. 3.5.9 is an important upgrade featuring 35 improvements making close 200 ...
Read more >
p:poll seems to update full view - Prime Community Forum
When using p:poll with a specific component in the "update" attribute, it still seems to refresh the full view. Indeed, I have, on...
Read more >
primefaces-p:poll - Tag Documentation
Description: Poll is an ajax component that has the ability to send periodical ajax requests and execute listeners on JSF backing beans.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found