we are migrating prime faces from 3.5 to 6.2. As per guide we have done the below changes
- If manually included, the primefaces.js include must be changed to include core.js and components.js
- The same also applies for the MenuRenderers of all PrimeFaces Layouts (before new layout versions will be released). Please change
@ResourceDependency(library="primefaces", name="primefaces.js")
to
@ResourceDependency(library="primefaces", name="core.js"), @ResourceDependency(library="primefaces", name="components.js")
like this https://localhost:8181/applicationName/ ... e.js&v=6.2
as this url is not available we get a 404
for 3.5 we
used to get url like this without any version appended and it used to work
https://localhost:8181/applicationName/ ... mefaces.js
we use a viewHandler to extend ViewHandlerWrapper and override getResourceURL(FacesContext context, String path) method.
in this method we search for javax.faces.resource and remove the String pattern = "?ln=primefaces";
how ever after url modification some how even the version number is appended in 6.2
we are not sure which component appends version number &v=6.2 ...this breaks all our urls
we have included the 6.2 primefaces jar and also the core js and jquery js are there in the jar.
our question is are we missing any configuration to make this 6.2 url with version number appended to it work.
please help us out on the same.