Page 1 of 1

primefaces 10

Posted: 23 Apr 2021, 19:14
by jaimeann
Hi, I would like to update my application to primefaces 10. Is this possible with the apollo theme?

Re: primefaces 10

Posted: 04 May 2021, 12:38
by siris
Hi,

Yes you can update your applications with new version. But before update, please make sure you download latest 4.0.0 version from store.

Best Regards,

Re: primefaces 10

Posted: 18 May 2021, 17:27
by jaimeann
Hi,

After updating i get an error in ApolloMenuRenderer. The following method gives me an error:

ERROR: The method form(AjaxSource, UIComponent) in the type AjaxRequestBuilder is not applicable for the arguments (String)


protected String createAjaxRequest(FacesContext context, AjaxSource source, UIComponent form) {
UIComponent component = (UIComponent) source;
String clientId = component.getClientId(context);

AjaxRequestBuilder builder = getAjaxRequestBuilder();

builder.init()
.source(clientId)
.form(SearchExpressionFacade.resolveClientId(context, component, source.getForm()))
.process(component, source.getProcess())
.update(component, source.getUpdate())
.async(source.isAsync())
.global(source.isGlobal())
.delay(source.getDelay())
.timeout(source.getTimeout())
.partialSubmit(source.isPartialSubmit(), source.isPartialSubmitSet(), source.getPartialSubmitFilter())
.resetValues(source.isResetValues(), source.isResetValuesSet())
.ignoreAutoUpdate(source.isIgnoreAutoUpdate())
.onstart(source.getOnstart())
.onerror(source.getOnerror())
.onsuccess(source.getOnsuccess())
.oncomplete(source.getOncomplete())
.params(component);

if (form != null) {
builder.form(form.getClientId(context));
}

builder.preventDefault();

return builder.build();
}

Re: primefaces 10

Posted: 20 May 2021, 13:29
by siris
Hi,

Which version of PrimeFaces have you tried with? And if you ran it in your own project, could you please check that you have updated the menu files?