Skip to content

Upgrade to PrimeFaces 7 #5975

@mheppler

Description

@mheppler

Saw this warning in my server log today while on the create dataset form, and it reminded me to create this placeholder issue for the eventual move to PrimeFaces 7 (released Mar '19).

Info:   autoUpdate attribute is deprecated and will be removed in a future version, use p:autoUpdate component instead.

For a background on this component, see my comment on the PrimeFaces 6.2 Upgrade issue

Accessibility improvements are also a big selling point for the upgrade.

Various components have been enhanced for accessibility related to keyboard support and screen readers.

From the PrimeFaces upgrade guide:

https://github.com/primefaces/primefaces/wiki/Migration-Guide

6.2 to 7.0

Breaking Changes

  • Push has been removed. Please use the JSF2.3 socket or OmniFaces now.
  • Mobile has been removed in favor of responsive features.
  • RequestContext has been replaced by PrimeFaces.current(). RequestContext is still available as PrimeRequestContext but it's internal PrimeFaces API and should therefore be avoided to use.
  • autoUpdate attribute of outputPanel, fragment, messages and growl has been removed. Use p:autoUpdate instead.
  • OverlayPanel: appendToBody has been removed. Use appendTo="@(body)" instead.
  • Button/Link/MenuItem: The url/href attribute isn't automatically prepended by contextPath anymore. Use the outcome attribute for referencing JSF views in the same application or manually prepend url/href with #{request.contextPath}. See OutcomeTargetRenderer: unwarranted and possibly erroneous inclusion of the context path primefaces/primefaces#3506.

Others

  • Schedule: Schedule was updated to the newest FullCalender version and therefore some attributes are deprecated.
    • Instead of slotMinutes, use slotDuration now (format: 12:30:00).
    • Instead of firstHour, use scrollTime now (format 12:30:00).
    • Instead of ignoreTimezone, use clientTimezone='local'
    • Instead of axisFormat, use slotLabelFormat

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions