New Component: CookiePolicy
See original GitHub issueWithin our project we created a cookiePolicy component to be able to handle acceptance of cookie policies. Example usage:
<pe:cookiePolicy>
Do you agree with our cookie policy?
<p:commandButton value="Only essential cookies">
<pe:saveCookiePolicy policy="essential" retention="#{60*60*24*30}"/>
</p:commandButton>
<p:commandButton value="Accept all">
<pe:saveCookiePolicy policy="essential, statistics" retention="#{60*60*24*30}"/>
</p:commandButton>
</pe:cookiePolicy>
Here pe:cookiePolicy
will only render its children when no cookie policy has been accepted before. Accepted cookie policies are stored within a cookie itself.
Via the pe:saveCookiePolicy
action one can save the preferred cookie policy.
If there is interest in such component as part of primefaces-extensions
, please make some noise here.
Issue Analytics
- State:
- Created a year ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
New Component: Cookie Policy - Prime Community Forum
Coming soon in PFE 11.0.3 for those that need GDPR cookie compliance: https://github.com/primefaces-extension ... issues/771.
Read more >CookiePolicy - Android Developers
Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device. Updated Nov 9, 2022 ...
Read more >Cookie Policy Widget - Overview - OutSystems
Provides a widget with a placeholder for cookie policy control, allowing all the text, styles, links and buttons according to needs.
Read more >Cookie Policy - Component Sense
If you create an account with us then we will use cookies for the management of the signup process and general administration. These...
Read more >The WDS Components Cookie Policy
Essential cookies ; basketid. uCommerce. 30 days. Stores a reference to the user's basket, primarily when the user is not logged in ;...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@melloware Tested out 11.0.3-SNAPSHOT
pe:cookiePolicy
andpe:saveCookiePolicy
. All seems OK. Started to look at the construction of a showcase, but give me some time here to dig in…@melloware How it looks like completely depends on the content of
pe:cookiePolicy
. It’s up to the application to define how to present this cookie policy acceptance. Could be a panel, or a dialog, or some flippy-from-the-bottom thingy. The given example is just to demonstrate the functionality ofpe:cookiePolicy
. Of course in a real-work app you would make this a bit more sexy I guess.