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.

New Component: CookiePolicy

See original GitHub issue

Within 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:closed
  • Created a year ago
  • Comments:14 (14 by maintainers)

github_iconTop GitHub Comments

1reaction
fcornelicommented, Mar 25, 2022

@melloware Tested out 11.0.3-SNAPSHOT pe:cookiePolicy and pe:saveCookiePolicy. All seems OK. Started to look at the construction of a showcase, but give me some time here to dig in…

1reaction
fcornelicommented, Mar 24, 2022

@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 of pe:cookiePolicy. Of course in a real-work app you would make this a bit more sexy I guess.

Read more comments on GitHub >

github_iconTop 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 >

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