Questions Tagged With primefaceshttps://answers.axonivy.com/tags/primefaces/?type=rssquestions tagged <span class="tag">primefaces</span>enThu, 16 Jul 2020 06:52:59 -0400Problem with Primefaces SelectCheckboxMenuhttps://answers.axonivy.com/questions/4640/problem-with-primefaces-selectcheckboxmenu<p>Hello, When we use a selectCheckboxMenu and submit it, the pills/selected values change from the label to the value. This has been fixed in primefaces in this issue</p> <p><a href="https://github.com/primefaces/primefaces/issues/3678">https://github.com/primefaces/primefaces/issues/3678</a></p> <p>but the problem is still here on axon ivy <img alt="alt text" src="https://answers.axonivy.com/upfiles/image-2020-07-07-12-52-47-990.png"></p>TareqKThu, 16 Jul 2020 06:52:59 -0400https://answers.axonivy.com/questions/4640/problem-with-primefaces-selectcheckboxmenuhtmluserdialogprimefacesPrimefaces Upload In Dialog Issueshttps://answers.axonivy.com/questions/4544/primefaces-upload-in-dialog-issues<p>Hello, We are trying to use primefaces upload inside a dialog/modal. On chrome, it is asking for a file twice, and on firefox nothing is showing at all. Has this ever happened before?</p> <p><a href="https://stackoverflow.com/questions/61496181/problems-with-primefaces-upload-inside-dialogs">https://stackoverflow.com/questions/61496181/problems-with-primefaces-upload-inside-dialogs</a></p>TareqKWed, 29 Apr 2020 03:18:53 -0400https://answers.axonivy.com/questions/4544/primefaces-upload-in-dialog-issueshtmluserdialogjsfprimefacesFunctionality/design issues while using AXON Ivy v. 8.0.1 mobile APPhttps://answers.axonivy.com/questions/4272/functionality-design-issues-while-using-axon-ivy-v-8-0-1-mobile-app<p>Hello,</p> <p>Following up with this issue: <a href="https://answers.axonivy.com/questions/4197/axon-ivy-mobile-app-design-issues">https://answers.axonivy.com/questions/4197/axon-ivy-mobile-app-design-issues</a></p> <p>I am trying to use AXON Ivy mobile app after upgrade the Designer/Engin to version 8.0.1 since I faced a lot of design issues in version 7.4. Please check the above link.</p> <p>Anyway, my question is the current version of AXON Ivy has a new release for the mobile app? is the left side menu works on mobile? because am facing some issues related to the left side menu and some of the prime-faces component. Also, the movement between the pages and dealing with the component was very slow.</p> <p>I will appreciate any help. Thanks,</p>HazemThu, 12 Dec 2019 02:47:50 -0500https://answers.axonivy.com/questions/4272/functionality-design-issues-while-using-axon-ivy-v-8-0-1-mobile-appiosprimefacesHow to switch off validation for ajax call?https://answers.axonivy.com/questions/4271/how-to-switch-off-validation-for-ajax-call<p>Hi Ivy Team</p> <p>I have a autocomplete. The autocomplete is required field. In autocomplete. I have ajax to handle change event. When autocomplete changes, some fields will be updated below. But When I clear data from autocomplete. The message required is display and some fields are no more update. So I want to do validation only when a button is clicked which submits the form but not when autocomplete changes. How I can do this?</p> <p>Note: I try using "immediate" attribute in ajax to switch off validation but it is not work.</p> <pre><code>&lt;p:autoComplete id="select-vendor" widgetVar="select-vendor" value="#{purchase.vendor}" dropdown="true" scrollHeight="400" completeMethod="#{tenderInformationBean.completeVendor}" var="vendor" itemLabel="#{vendor.vendorName}" itemValue="#{vendor}" maxlength="50" converter="pojoConverter" cache="true" queryDelay="500" rendered="#{!tenderInformationBean.isVendorNotFound}" binding="#{tenderInformationBean.vendorNameAutoComplete}" disabled="#{isReadOnlySupplier}" forceSelection="true" requiredMessage="#{ivy.cms.co('/ch.ivy.addon.portalkit.ui.jsf/common/requiredFieldMessage')}" &gt; &lt;p:ajax event="change" update="vendor-information-fieldset" global="false" listener="#{tenderInformationBean.onSelectVendorName(purchase)}" onstart="if(PF('select-vendor').panel.is(':visible')) return false;" immediate="true"/&gt; &lt;p:ajax event="itemSelect" update="vendor-information-fieldset" global="false" listener="#{tenderInformationBean.onSelectVendorName(purchase)}" /&gt; &lt;f:validator validatorId="awsValidator" /&gt; &lt;/p:autoComplete&gt; </code></pre> <p>Thanks</p>anhleWed, 11 Dec 2019 23:40:42 -0500https://answers.axonivy.com/questions/4271/how-to-switch-off-validation-for-ajax-calljsfajaxprimefaceshow to upgrade primefaces 6.1 to 7.0 in AXON IVY 7.0.2https://answers.axonivy.com/questions/3771/how-to-upgrade-primefaces-6-1-to-7-0-in-axon-ivy-7-0-2<p>i'm using Designer 7.0.2 and primefaces 6.1 . i need to use p:dataview component from primefaces.how can i upgrade primefaces from 6.1 to 7.0?</p>hiba nassarTue, 16 Apr 2019 03:21:05 -0400https://answers.axonivy.com/questions/3771/how-to-upgrade-primefaces-6-1-to-7-0-in-axon-ivy-7-0-2designerjarprimefacesConcurrentModificationException when use asynchttps://answers.axonivy.com/questions/3621/concurrentmodificationexception-when-use-async<p>Dear all, Our team is facing a very strange issue like this: We defined html dialog with 3 p:remotecommands with <strong>async flag is set to true</strong>. And occationally we got the ConcurrentModificationException when access to that page. Till now, we didn't find any effective way to reproduce it. It happens on Ivy Engine version 7.1</p> <p>May you have a look and support us if you find out something from it. Thank you so much.</p> <p>Here is the log. The function loadOpenAmountChart is one of 3 listeners of the remoteCommands</p> <p><code> ERROR [runtimelog.luz.luz_finance.html_dialog] [https-jsse-nio-8443-exec-10] [request=/ivy/faces/instances/luz/luz_finance$2/1685452B4979A3AB/ch.klara.luz.fin.partner.PartnerOverview/PartnerOverview.xhtml, session=41 (diem.nguyen@axonactive.com), task=973532, application=1, requestId=581, executionContext=SYSTEM, pmv=luz$luz_finance$2, hd=ch.klara.luz.fin.partner.PartnerOverview] Error during rendering of html dialog 'ch.klara.luz.fin.partner.PartnerOverview' org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: java.util.ConcurrentModificationException at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:108) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:81) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:48) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:429) at javax.faces.component.UICommand.broadcast(UICommand.java:103) at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:1174) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:365) at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1660) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:864) at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:42) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at io.prismic.servlet.PrismicFilter.doFilter(PrismicFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.dialog.execution.jsf.controller.rest.IvyRestServiceFilter.doFilter(IvyRestServiceFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.restricted.jsf.IvyFacesFilter.chainDialogRequest(IvyFacesFilter.java:100) at ch.ivyteam.ivy.webserver.restricted.jsf.IvyFacesFilter.filter(IvyFacesFilter.java:68) at ch.ivyteam.ivy.webserver.restricted.jsf.IvyFacesFilter.doFilter(IvyFacesFilter.java:54) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.exception.IvyExceptionFilter.doFilter(IvyExceptionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter$1.call(IvyExecuteAsSystemFilter.java:45) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter$1.call(IvyExecuteAsSystemFilter.java:1) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1128) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter.doFilter(IvyExecuteAsSystemFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.IvyCurrentHttpRequestFilter.doFilter(IvyCurrentHttpRequestFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) at com.axonivy.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:35) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: javax.el.ELException: java.util.ConcurrentModificationException at org.apache.el.parser.AstValue.invoke(AstValue.java:260) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.MethodExpressionWraper.invoke(MethodExpressionWraper.java:29) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.CompositeComponentAwareMethodExpression.invoke(CompositeComponentAwareMethodExpression.java:55) at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:96) ... 70 more Caused by: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742) at java.util.AbstractCollection.finishToArray(AbstractCollection.java:232) at java.util.AbstractCollection.toArray(AbstractCollection.java:143) at java.util.ArrayList.&lt;init&gt;(ArrayList.java:177) at ch.ivyteam.ivy.dialog.execution.DialogRuntimeLogicHelper.getMethodSignatures(DialogRuntimeLogicHelper.java:151) at ch.ivyteam.ivy.dialog.execution.DialogRuntimeLogicHelper.findMethodSignature(DialogRuntimeLogicHelper.java:97) at ch.ivyteam.ivy.dialog.execution.DialogRuntime.findMethodSignature(DialogRuntime.java:299) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyLogicBeanCreator$LogicBeanInvocationHandler.invoke(IvyLogicBeanCreator.java:47) at com.sun.proxy.$Proxy178.loadOpenAmountChart(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.el.parser.AstValue.invoke(AstValue.java:247) ... 74 more 02:42:14.618 ERROR [org.primefaces.application.exceptionhandler.PrimeExceptionHandler] [https-jsse-nio-8443-exec-10] [request=/ivy/faces/instances/luz/luz_finance$2/1685452B4979A3AB/ch.klara.luz.fin.partner.PartnerOverview/PartnerOverview.xhtml, session=41 (diem.nguyen@axonactive.com), task=973532, application=1, requestId=581, executionContext=SYSTEM, pmv=luz$luz_finance$2, hd=ch.klara.luz.fin.partner.PartnerOverview] null java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742) at java.util.AbstractCollection.finishToArray(AbstractCollection.java:232) at java.util.AbstractCollection.toArray(AbstractCollection.java:143) at java.util.ArrayList.&lt;init&gt;(ArrayList.java:177) at ch.ivyteam.ivy.dialog.execution.DialogRuntimeLogicHelper.getMethodSignatures(DialogRuntimeLogicHelper.java:151) at ch.ivyteam.ivy.dialog.execution.DialogRuntimeLogicHelper.findMethodSignature(DialogRuntimeLogicHelper.java:97) at ch.ivyteam.ivy.dialog.execution.DialogRuntime.findMethodSignature(DialogRuntime.java:299) at ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyLogicBeanCreator$LogicBeanInvocationHandler.invoke(IvyLogicBeanCreator.java:47) at com.sun.proxy.$Proxy178.loadOpenAmountChart(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.el.parser.AstValue.invoke(AstValue.java:247) at org.apache.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:267) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.MethodExpressionWraper.invoke(MethodExpressionWraper.java:29) at ch.ivyteam.ivy.dialog.execution.jsf.controller.el.CompositeComponentAwareMethodExpression.invoke(CompositeComponentAwareMethodExpression.java:55) at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:96) at javax.faces.event.MethodExpressionActionListener.processAction(MethodExpressionActionListener.java:81) at javax.faces.event.ActionEvent.processListener(ActionEvent.java:48) at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:429) at javax.faces.component.UICommand.broadcast(UICommand.java:103) at javax.faces.component.UIViewRoot._broadcastAll(UIViewRoot.java:1174) at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:365) at javax.faces.component.UIViewRoot._process(UIViewRoot.java:1660) at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:864) at org.apache.myfaces.lifecycle.InvokeApplicationExecutor.execute(InvokeApplicationExecutor.java:42) at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:196) at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:143) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.HttpHeaderSecurityFilter.doFilter(HttpHeaderSecurityFilter.java:124) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at io.prismic.servlet.PrismicFilter.doFilter(PrismicFilter.java:43) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.dialog.execution.jsf.controller.rest.IvyRestServiceFilter.doFilter(IvyRestServiceFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.restricted.jsf.IvyFacesFilter.chainDialogRequest(IvyFacesFilter.java:100) at ch.ivyteam.ivy.webserver.restricted.jsf.IvyFacesFilter.filter(IvyFacesFilter.java:68) at ch.ivyteam.ivy.webserver.restricted.jsf.IvyFacesFilter.doFilter(IvyFacesFilter.java:54) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.filters.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:108) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.exception.IvyExceptionFilter.doFilter(IvyExceptionFilter.java:49) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter$1.call(IvyExecuteAsSystemFilter.java:45) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter$1.call(IvyExecuteAsSystemFilter.java:1) at ch.ivyteam.util.callable.AbstractExecutionContext.callInContext(AbstractExecutionContext.java:16) at ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1128) at ch.ivyteam.ivy.webserver.internal.IvyExecuteAsSystemFilter.doFilter(IvyExecuteAsSystemFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.filter.IvyCurrentHttpRequestFilter.doFilter(IvyCurrentHttpRequestFilter.java:39) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:496) at com.axonivy.auth.valve.AuthenticationValve.invoke(AuthenticationValve.java:35) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:803) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:790) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1459) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) <code></code></code></p>an_nguyenFri, 18 Jan 2019 03:23:02 -0500https://answers.axonivy.com/questions/3621/concurrentmodificationexception-when-use-asyncivyconcurrencyprimefacesCalendar of Primefaces in Ivy 7.1https://answers.axonivy.com/questions/3347/calendar-of-primefaces-in-ivy-7-1<p>Hi Ivy team, I have a question that In Ivy 7.1 when I clear data in calendar, it is automatically refilled into calendar's field but in Ivy 6.2, it doesnt not react like this</p> <p>Here is my code: <img alt="alt text" src="https://answers.axonivy.com/upfiles/calendarhihi.png"></p> <p>and the image below is the result when clearing data of calendar in ivy 6. However, In Ivy 7.1, it still shows a validation message and old data. <img alt="alt text" src="https://answers.axonivy.com/upfiles/calendarValidate.png"></p> <p>Do you have any suggestion for this problem?</p>thminhWed, 04 Jul 2018 06:35:02 -0400https://answers.axonivy.com/questions/3347/calendar-of-primefaces-in-ivy-7-1ivy7xprimefacesMigrate Primface Push from Ivy 6.3 to Ivy 7.0.3https://answers.axonivy.com/questions/3165/migrate-primface-push-from-ivy-6-3-to-ivy-7-0-3<p>Hi all. Currently, we're migrating our projects from Ivy 6.3 to Ivy 7.0.3. One of the problems we're facing is PrimePush doesn't work anymore in Chrome but still works in Internet Explorer and FireFox. Previously this feature works on all browsers<br> We followed this instruction to implement PrimeFacePush for Ivy 6.3: <a href="https://answers.axonivy.com/questions/10/can-i-use-primepush-in-xpert-ivy">https://answers.axonivy.com/questions/10/can-i-use-primepush-in-xpert-ivy</a><br> Error in Chrome when the page is loaded:<img alt="alt text" src="https://answers.axonivy.com/upfiles/Screenshot_6.png"></p> <p>Log file: <code>11:11:51.568 WARN [org.atmosphere.cpr.DefaultBroadcaster] [http-nio-8081-exec-7] [requestId=209574] Duplicate resource 562f3a7e-8900-4c5c-89f7-4689843ccbf2. Could be caused by a dead connection not detected by your server. Replacing the old one with the fresh one 11:11:51.568 WARN [org.apache.catalina.connector.Request] [http-nio-8081-exec-7] [requestId=209574] Unable to start async because the following classes in the processing chain do not support async [org.primefaces.push.PushServlet] java.lang.IllegalStateException: A filter or servlet of the current chain does not support asynchronous operations. at org.apache.catalina.connector.Request.startAsync(Request.java:1665) at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1038) at org.atmosphere.cpr.AtmosphereRequestImpl.startAsync(AtmosphereRequestImpl.java:631) at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:95) at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:70) at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2287) at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:191) at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:177) at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748) 11:11:51.568 ERROR [org.atmosphere.cpr.AtmosphereFramework] [http-nio-8081-exec-7] [requestId=209574] AtmosphereFramework exception java.lang.IllegalStateException: A filter or servlet of the current chain does not support asynchronous operations. at org.apache.catalina.connector.Request.startAsync(Request.java:1665) at org.apache.catalina.connector.RequestFacade.startAsync(RequestFacade.java:1038) at org.atmosphere.cpr.AtmosphereRequestImpl.startAsync(AtmosphereRequestImpl.java:631) at org.atmosphere.container.Servlet30CometSupport.suspend(Servlet30CometSupport.java:95) at org.atmosphere.container.Servlet30CometSupport.service(Servlet30CometSupport.java:70) at org.atmosphere.cpr.AtmosphereFramework.doCometSupport(AtmosphereFramework.java:2287) at org.atmosphere.cpr.AtmosphereServlet.doPost(AtmosphereServlet.java:191) at org.atmosphere.cpr.AtmosphereServlet.doGet(AtmosphereServlet.java:177) at javax.servlet.http.HttpServlet.service(HttpServlet.java:635) at javax.servlet.http.HttpServlet.service(HttpServlet.java:742) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at ch.ivyteam.ivy.webserver.internal.startup.IvyEngineUnavailableFilter.doFilter(IvyEngineUnavailableFilter.java:46) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:89) at com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:120) at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:135) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:478) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:80) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87) at ch.ivyteam.ivy.webserver.internal.PerformanceLogValve.invoke(PerformanceLogValve.java:55) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:799) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1457) at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:748)</code><br> Hope I can get your help!</p>hieulamThu, 29 Mar 2018 23:52:07 -0400https://answers.axonivy.com/questions/3165/migrate-primface-push-from-ivy-6-3-to-ivy-7-0-3primepushivy7xprimefacesdelete current tab and keep the other unsubmited tab data in the formhttps://answers.axonivy.com/questions/2658/delete-current-tab-and-keep-the-other-unsubmited-tab-data-in-the-form<p>I have accordion panel inside a form with tow button one for add tabs ,another for next.</p> <p>each tab have inputtexts and delete button to delete this tab.</p> <p>some of tab fields are required ,and I can not add a new tab if the required not filled but I can delete any tab .</p> <p>the problem : if I have aleady tabs and add a new one with some inputs filled then I want to delete previous tab ,the delete button will update the whole page and remove the last added tab data from the form without processing them.</p> <p>so how can I delete previous tab without validation the current tab and keep the data in current tab.</p> <pre><code>&lt;h:form id="form"&gt; &lt;p:accordionPanel var="job" value="#{data.JobSet.toArray()}"&gt; &lt;p:tab title="title"&gt; &lt;p:outputPanel&gt; &lt;p:panelGrid&gt; &lt;p:outputLabel for="Company" value="Company"&gt;&lt;/p:outputLabel&gt; &lt;p:inputText id="Company" required="true" styleClass="inputFullWidth" value="#{job.name}"&gt;&lt;/p:inputText&gt; &lt;p:outputLabel value="Industry"&gt;&lt;/p:outputLabel&gt; &lt;p:inputText value="#{job.industry}"&gt;&lt;/p:inputText&gt; &lt;/p:panelGrid&gt; &lt;/p:outputPanel&gt; &lt;p:commandButton immediate="true" value="Delete" actionListener="#{logic.deleteJob(job)}" update="#{cc.id}:form" icon="fa fa-trash-o"&gt;&lt;/p:commandButton&gt; &lt;/p:tab&gt; &lt;/p:accordionPanel&gt; &lt;div&gt; &lt;p:commandButton validateClient="true" value="Add" actionListener="#{logic.addPJob}" update="form" &gt; &lt;/p:commandButton&gt; &lt;p:commandButton validateClient="true" value="Next" actionListener="#{logic.send}" update="form" process="form" /&gt; &lt;/div&gt; &lt;/h:form&gt; </code></pre>hibanassarThu, 01 Jun 2017 03:27:46 -0400https://answers.axonivy.com/questions/2658/delete-current-tab-and-keep-the-other-unsubmited-tab-data-in-the-formjsfprimefacespe:gChart browser shows no content until refreshedhttps://answers.axonivy.com/questions/2572/pe-gchart-browser-shows-no-content-until-refreshed<p>Hi</p> <p>when loading a page with a pe:gChart my browser turns white and I get the following browser console error:</p> <p>"Uncaught Error: The container #form:j_id_6c:chartForm:gChart is not defined."</p> <p>After refreshing the page (F5) everything works fine, the chart is displayed correctly etc.</p> <p>Code:</p> <pre><code> &lt;h:form id="chartForm" style="text-align: center;"&gt; &lt;div id="gChartDiv"&gt; &lt;pe:gChart value="#{data.testModel}" title="Test" rendered="#{!data.noDataYet}" id="gChart"&gt; &lt;/pe:gChart&gt; &lt;/div&gt; &lt;/h:form&gt; </code></pre> <p>Already posted on primefaces forums <a title="here" href="https://forum.primefaces.org/viewtopic.php?f=14&amp;t=50285&amp;p=154488#p154488/">here</a>, but since the pfe and pf versions are set in ivy they couldn't really help.</p> <p>Any idea on fixing this?</p> <p>Cheers</p>zenooThu, 06 Apr 2017 09:12:42 -0400https://answers.axonivy.com/questions/2572/pe-gchart-browser-shows-no-content-until-refreshedprimefacesPrimeFaces version in further version of iVYhttps://answers.axonivy.com/questions/2561/primefaces-version-in-further-version-of-ivy<p>Hi ivy.Team,</p> <p>I just want to ask if there is any version upgrading of PrimeFaces in further version of iVY (from 6.5).</p> <p>As we're encountering a bug from PrimeFaces 5.3 and it's fixed in 5.3.1.</p> <p>We prefer not to upgrade by ourselves as it's related to other teams in the same project.</p> <p>So it would be great for us to know this information.</p>ToanLCMon, 03 Apr 2017 09:38:09 -0400https://answers.axonivy.com/questions/2561/primefaces-version-in-further-version-of-ivyivyprimefacesUpgrade Primefaces version in IVY 5.1.xhttps://answers.axonivy.com/questions/2263/upgrade-primefaces-version-in-ivy-5-1-x<p>Hi There</p> <p>We are still using IVY Version 5.1.10. This Ivy version has included Primefaces 5.0.xx (as i guess so far). How can we upgrade yout Server/Designer 5.1.x to a newer Primefaces version e.g. 5.3 ot higher. We 'd like to use some new features like Primesfaces FontAwesome etc.</p> <p>Is it possible to upgrade and which steps are neccessary ?</p> <p>Thanks for help.</p> <p>PS: Upgrade to IVY 6.x is not an option so far ...</p>WanderhirtThu, 08 Dec 2016 14:59:44 -0500https://answers.axonivy.com/questions/2263/upgrade-primefaces-version-in-ivy-5-1-xaxon.ivyprimefacesOutOfScopeException: Cannot access scopedhttps://answers.axonivy.com/questions/2091/outofscopeexception-cannot-access-scoped<p>Hi all I'm using ivy 6.3.0 with JSF + Primefaces, when i test my website with multiple users at the same time, i got this:</p> <pre><code>12:36:49.661 ERROR [ch.ivyteam.ivy.dialog.execution.jsf.error] [http-nio-8443-exec-393] [requestId=2235134] Error during rendering of html dialog com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error in custom provider, com.google.inject.OutOfScopeException: Cannot access scoped [ch.ivyteam.ivy.dialog.execution.DialogRuntimeManager]. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request. </code></pre> <p>We also get this problem when i embed my page to another by using <em>iframe</em> </p> <p>We don't use any api from <em>com.google.inject</em>, it could come from ivy library i guess.</p> <p>Does anyone have any idea why this exception occurred? Thanks all </p>trungdvTue, 11 Oct 2016 04:12:15 -0400https://answers.axonivy.com/questions/2091/outofscopeexception-cannot-access-scopedhtmluserdialogjsfprimefacesHtml Dialog Datatable paginationhttps://answers.axonivy.com/questions/1990/html-dialog-datatable-pagination<p>Is it possible to use Primefaces datatable pagination with IVY SQL Step in a logic process?</p>enricojlThu, 25 Aug 2016 13:27:11 -0400https://answers.axonivy.com/questions/1990/html-dialog-datatable-paginationjsfprimefacesPrimeface Dialog Framework Pathhttps://answers.axonivy.com/questions/1893/primeface-dialog-framework-path<p>Hello,</p> <p>we want to use the Primefaces Dialog Framework in our processes.</p> <p>We have a Html Dialog, let say, TestDialogFramework, which consists of two views: TestDialogFramework.xhtml and viewToShow.xhtml</p> <p>On the TestDialogFramework.xhtml we have a command button. In the actionListener Method we call the Dialog by:</p> <pre><code>RequestContext.getCurrentInstance().openDialog("viewToShow"); </code></pre> <p>In this case, the viewToShow.xhtml opens as dialog as expected. </p> <p>But when we want to call a xhtml which is another Ivy Html Dialog the call:</p> <pre><code> RequestContext.getCurrentInstance().openDialog("otherHtmlDialog); </code></pre> <p>fails. </p> <p>How should we specify the path in openDialog Method?</p> <p>Thank you in advance.</p>Fotini KalantidouFri, 15 Jul 2016 10:53:01 -0400https://answers.axonivy.com/questions/1893/primeface-dialog-framework-pathprimefacesEditable Datatable and Recordsethttps://answers.axonivy.com/questions/1673/editable-datatable-and-recordset<p>Hi, I have a problem with p:datatable which has dynamic number of columns and it is editable. Data source of the table is ivy Recordset. </p> <p>The problem is when a user change some value, this change is not processed into Recordset so the Recordset remains with old values. I have tried to change the datatable to use cell editor - with no effect.</p> <p>Here is the code: <img alt="alt text" src="http://answers.axonivy.com/upfiles/datatable.PNG"></p> <h1>{lgi.prioritizationComposite.getRows()} returns a Recordset</h1> <p>Do you have any idea what is wrong? In HTML dialog demos there is an example of datatable and recordset. But I see nothing special in it.</p> <p>Thanks Matej</p>matej_smetanaWed, 02 Mar 2016 13:35:37 -0500https://answers.axonivy.com/questions/1673/editable-datatable-and-recordsetrecordsetdatabindingprimefacesA form doesn't proceed because of shown values why?https://answers.axonivy.com/questions/1666/a-form-doesn-t-proceed-because-of-shown-values-why<p>I try to show some values from different Primefaces "selectManyCheckbox" in a "inputText" field. The value in the inputText field is shown correctly, but the form doesn't proceed. I get no warnings or errors. For instance:</p> <pre><code>&lt;p:selectManyCheckbox id="motorSonderBox" value="#{data.datenAnfrage.motorSonder}" style="width:400px"&gt; &lt;f:selectItems value="#{data.datenAnfrage.motorSonder}" var="motorSonder" itemLabel="#{motorSonder}" itemValue="#{motorSonder}" /&gt; &lt;/p:selectManyCheckbox&gt; &lt;p:inputText style="width:180px" value="#{data.datenAnfrage.motorSonder}"/&gt; </code></pre> <p>Can you help me?</p>GabrieleTue, 23 Feb 2016 09:47:12 -0500https://answers.axonivy.com/questions/1666/a-form-doesn-t-proceed-because-of-shown-values-whyprimefacesHow to wrap ivy composite component by a outputPanel dynamicallyhttps://answers.axonivy.com/questions/1641/how-to-wrap-ivy-composite-component-by-a-outputpanel-dynamically<p>Hi ivy team,</p> <p>I need to wrap ivy composite component by a outputPanel. So in the event <a href="http://docs.oracle.com/javaee/6/api/javax/faces/event/PostAddToViewEvent.html">postAddToView</a>, i do some thing following:</p> <ol> <li>Scan UI: to get the list of components</li> <li>Update UI: i loop on that list. Then i get the parent of ivy component, replace ivy component by the new outputLabel and assign ivy component to outLabel's children.</li> </ol> <p>It goes wrong when i add event postAddToView to Address component</p> <p>Address xhtml</p> <pre><code>&lt; cc:interface componentType="IvyComponent"&gt; &lt; /cc:interface&gt; &lt; cc:implementation&gt; &lt; h:panelGroup layout="block" styleClass="component-wrapper" id="AddressPanel" &gt; &lt; f:event listener="#{logic.processView}" type="preValidate" &gt;&lt;/f:event&gt; &lt; f:event listener="#{logic.postValidate}" type="postValidate" &gt;&lt;/f:event&gt; &lt; f:event listener="#{logic.initializeView}" type="postAddToView"&gt;&lt;/f:event&gt; &lt; /h:panelGroup&gt; &lt; /cc:implementation&gt; </code></pre> <p>Demo xhtml</p> <pre><code>&lt; h:form id="form"&gt; &lt; f:event listener="#{logic.preValidate}" type="preValidate" &gt;&lt;/f:event&gt; &lt; f:event listener="#{logic.postValidate}" type="postValidate" &gt;&lt;/f:event&gt; &lt; f:event listener="#{logic.postAddToView}" type="postAddToView"&gt;&lt;/f:event&gt; &lt; p:outputLabel for="firstNameDemo" value="First name" title="Fist tooltip"/&gt; &lt; p:inputText id="firstNameDemo" value="#{data.firstNameDemo}"/&gt; &lt; ic:.DemoComponent data="#{data.person}" &gt;&lt;/ic:DemoComponent&gt; &lt; ic:ch.axonivy.fintech.basic.component.AddressComponent startMethod="start" id="abc" value="#{data.address}" &gt;&lt;/ic:.AddressComponent&gt; &lt; /h:form&gt; </code></pre> <p>wrap</p> <pre><code>OutputPanel outputPanel = UIComponentUtil.createOutputPanel(param.getFacesContext()); outputPanel.setId(ivyComponent.getId() + UIComponentUtil.PARENT_SUFFIX); ivyComponent.getParent().getParent().getChildren().set(ivyComponent.getParent().getParent().getChildren().indexOf(ivyComponent.getParent()), outputPanel); outputPanel.getChildren().add(ivyComponent.getParent()); </code></pre> <p>Error</p> <pre><code>PermissionDeniedException: Session 1 (Developer) is not allowed to call method public ch.ivyteam.ivy.cm.IContentManagementSystem ch.ivyteam.ivy.cm.internal.ContentManagement.findCms(ch.ivyteam.ivy.application.IProcessModelVersion). The session does not fulfill the permission rule SESSION IS SYSTEM ProvisionException: Unable to provision, see the following errors: </code></pre> <p>Stack trace</p> <pre><code> org.apache.myfaces.view.facelets.el.ContextAwareELException: javax.el.ELException: ch.ivyteam.ivy.bpm.engine.restricted.error.BpmErrorHandler$UnhandledException: BpmError ivy:error:system Unique ID: 1528153199ECF258 Process Element: postAddToView(PostAddToViewEvent) &lt;1524368C6B07FA9C-f8&gt; at org.apache.myfaces.view.facelets.el.ContextAwareTagMethodExpression.invoke(ContextAwareTagMethodExpression.java:108) at org.apache.myfaces.view.facelets.tag.jsf.core.EventHandler$Listener.processEvent(EventHandler.java:273) at javax.faces.component.UIComponent$EventListenerWrapper.processEvent(UIComponent.java:1624) at javax.faces.event.SystemEvent.processListener(SystemEvent.java:40) at javax.faces.event.ComponentSystemEvent.processListener(ComponentSystemEvent.java:51) at org.apache.myfaces.application.ApplicationImpl._traverseListenerList(ApplicationImpl.java:2595) at org.apache.myfaces.application.ApplicationImpl.publishEvent(ApplicationImpl.java:595) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:328) at javax.faces.application.ApplicationWrapper.publishEvent(ApplicationWrapper.java:328) at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:243) at javax.faces.component.UIComponentBase._publishPostAddToViewEvent(UIComponentBase.java:262) </code></pre> <p>Please give me your feedback. Thanks for your support!</p>Cuong LeTue, 26 Jan 2016 08:29:00 -0500https://answers.axonivy.com/questions/1641/how-to-wrap-ivy-composite-component-by-a-outputpanel-dynamicallyjsfcomponentivyprimefacesPrint jsf tablehttps://answers.axonivy.com/questions/1628/print-jsf-table<p>Hello Support,</p> <p>I am looking for a simple solution to print out the content of a table from a JSF-Dialog. Is there a possibilty to do this with JSF resp. Primefaces?</p> <p>Richard Schmid Azteka </p>Richard SchmidThu, 14 Jan 2016 14:13:14 -0500https://answers.axonivy.com/questions/1628/print-jsf-tablejsfprimefacesAttributes from pe:layoutPane have no effecthttps://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effect<p>I decided to use pe:layout instead of p:layout because i was having problems re-sizing a p:layoutUnit with an iframe. </p> <p>After adding gson-2.2.4.jar to the &lt;designer&gt;\webapps\ivy\WEB-INF\lib folder it started to work. But the attributes size, initClose, closable, minSize, maxSize have no effect.</p> <pre><code>&lt;pe:layout fullPage="true" &gt; &lt;pe:layoutPane size="800" initClosed="true" closable="true" position="north"&gt; &lt;h3&gt;Test&lt;/h3&gt; &lt;/pe:layoutPane&gt; &lt;pe:layoutPane position="center"&gt; &lt;h:form id="form"&gt; &lt;h:panelGrid columns="2" &gt; &lt;f:facet name="header"&gt; &lt;p:messages&gt;&lt;/p:messages&gt; &lt;/f:facet&gt; &lt;p:outputLabel for="description" value="Description"/&gt; &lt;p:inputText id="description" value=""&gt;&lt;/p:inputText&gt; &lt;p:outputLabel for="expire" value="Expire"/&gt; &lt;p:calendar id="expire" value="" pattern="dd.MM.yyyy HH:mm" size="16"&gt; &lt;f:convertDateTime pattern="dd.MM.yyyy HH:mm" /&gt; &lt;/p:calendar&gt; &lt;p:commandButton actionListener="#{logic.close}" value="Proceed" update="form" icon="ui-icon-check" /&gt; &lt;/h:panelGrid&gt; &lt;/h:form&gt; &lt;/pe:layoutPane&gt; &lt;pe:layoutPane position="east" size="50%" closable="true"&gt; &lt;iframe src="http://answers.axonivy.com/" height="100%" width = "100%" /&gt; &lt;/pe:layoutPane&gt; </code></pre> <p>&lt;/pe:layout&gt;</p>tiagoMon, 12 Oct 2015 15:59:04 -0400https://answers.axonivy.com/questions/1510/attributes-from-pe-layoutpane-have-no-effecthtmluserdialogprimefacesGerman p:schedulehttps://answers.axonivy.com/questions/1486/german-p-schedule<p>Hi, do anybody know a js script to transalte a p:schedule into German? I testet this code but it didnt work:</p> <pre><code>&lt;script type="text/javascript"&gt; PrimeFaces.locales['de_CH'] = { closeText : 'Schließen', prevText : 'Zurück', nextText : 'Weiter', currentText : 'Start', monthNames : [ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember' ], monthNamesShort : [ 'Jan', 'Feb', 'Mär', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Okt', 'Nov', 'Dez' ], dayNames : [ 'Sonntag', 'Montag', 'Dienstag', 'Mittwoch', 'Donnerstag', 'Freitag', 'Samstag' ], dayNamesShort : [ 'Son', 'Mon', 'Die', 'Mit', 'Don', 'Fre', 'Sam' ], dayNamesMin : [ 'S', 'M', 'D', 'M ', 'D', 'F ', 'S' ], weekHeader : 'Woche', FirstDay : 1, isRTL : false, showMonthAfterYear : false, yearSuffix : '', timeOnlyTitle : 'Nur Zeit', timeText : 'Zeit', hourText : 'Stunde', minuteText : 'Minute', secondText : 'Sekunde', currentText : 'Aktuelles Datum', ampm : false, month : 'Monat', week : 'Woche', day : 'Tag', allDayText : 'Ganzer Tag' }; &lt;/script&gt; </code></pre> <p>i copied this text into my Template. regards Florian</p>Florian HitzTue, 29 Sep 2015 13:46:33 -0400https://answers.axonivy.com/questions/1486/german-p-scheduleprimefacesHow to set the ID an Ivy Primefaces Component?https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-component<p>I have a form containing a compontent. The form has the html ID "form" and the table in the component has the ID "table". I am not able to set an ID on the component, or to omit the components ID.</p> <p>Therefore, if I want to update the table in the component it does not work. The reason for this is, that the tables ID is not "form:table" as expected, but "form:j_id_1j_1_1_2p:table".</p> <p>How can I set or omit the components ID?</p> <p>Thanks for your inputs.</p>Marcel von WylMon, 17 Aug 2015 15:34:58 -0400https://answers.axonivy.com/questions/1443/how-to-set-the-id-an-ivy-primefaces-componenthtmluserdialogcomponentprimefacesPrimefaces Dialog Framework Dialog funktioniert nichthttps://answers.axonivy.com/questions/1402/primefaces-dialog-framework-dialog-funktioniert-nicht<p>Guten Morgen zusammen, bin langsam am Verzweifeln - im Primefaces Showcase (<a href="http://www.primefaces.org/showcase/ui/df/basic.xhtml)">http://www.primefaces.org/showcase/ui/df/basic.xhtml)</a> wird beschrieben, wie eine XHTML-Datei als Dialog aufgerufen werden kann. In diesem Beispiel wird dieses über den Aufruf:</p> <pre><code> RequestContext.getCurrentInstance().openDialog("viewCars"); </code></pre> <p>durchgeführt. Habe versucht dieses in einem Event (aufgerufen durch eine p:commandbutton) in einem Skriptstep nachzubauen. Code des Skriptsteps:</p> <pre><code>import org.primefaces.context.RequestContext; RequestContext.getCurrentInstance().openDialog("info"); </code></pre> <p>die entsprechende XHTML-Date habe ich über NEW -&gt; HTML DIALOG VIEW erzeugt und liegt im Bereich des Aufrufenden JSF-Dialogs. Der Skriptstep wird ohne Fehlermeldung oder LOG-Eintrag durchlaufen. Auch die Erzeugung einer gleichnamigen XHTML-Datei direkt unter WebContent brachte keinen Erfolg. Was mache ich falsch ?</p> <p>Herzlichen Dank für die Hilfe</p>rschreiterSat, 18 Jul 2015 10:11:02 -0400https://answers.axonivy.com/questions/1402/primefaces-dialog-framework-dialog-funktioniert-nichtjsfprimefacesHow to use dynamic p:graphicImage with StreamedContent?https://answers.axonivy.com/questions/1309/how-to-use-dynamic-p-graphicimage-with-streamedcontent<p>I try to use a dynamic p:graphicImage with a StreamedContent object but nothing is displayed. The img tag is rendered in the html markup but with firebug I can see that the img src attribute is causing a 404 - not found error.</p> <p>I'm using a similar approach as described <a href="http://stackoverflow.com/questions/8304967/how-to-use-pgraphicimage-with-streamedcontent-within-pdatatable">here</a>.</p> <p>In a custom java class I'm generating a StreamedContent object from a previously uploaded image. In an ivy script block I'm assigning the return value to a dataclass attribut of type StreamedContent.</p> <p>Here some code snippets:</p> <pre><code>java class MyImageUtil: public StreamedContent retrieveImageAsSC() { ... StreamedContent sc = new DefaultStreamedContent(inputStream, mimeType, fileName); return sc; } ... ivy script block: in.myDataClass.streamedContent = myImageUtil.retrieveImageAsSC(); ... jsf xhtml: p:graphicImage value="#{data.myDataClass.streamedContent}" /&gt; </code></pre> <p>The following URL is generated for the img src attribute: <a href="http://localhost:8081/ivy/faces/javax.faces.resource/dynamiccontent.properties?ln=primefaces&amp;pfdrid=pfdrid_945697ac-ead2-49e3-af3c-4185184fe927">http://localhost:8081/ivy/faces/javax.faces.resource/dynamiccontent.properties?ln=primefaces&amp;pfdrid=pfdrid_945697ac-ead2-49e3-af3c-4185184fe927</a> which isn't accessible.</p> <hr> <p>After a bit of research and debugging it seems to be an ivy designer bug :).</p> <p>As described over at <a href="http://stackoverflow.com/questions/8304967/how-to-use-pgraphicimage-with-streamedcontent-within-pdatatable">stackoverflow</a> you should use a method expression for the value attribute of the p:graphicImage. This method should be called twice:</p> <ol> <li>while rendering the html markup so the img tag is getting generated</li> <li>when the browser actually requests the image</li> </ol> <p>In ivy this method is only called <strong>once</strong>. I've tested it with v5.0.16 and v5.1.4 to no avail.</p> <p>As the mentioned solution from stackoverflow is working in a standalone jsf web application I assume that this is an ivy designer bug. I'm looking forward to any feedback to solve this issue.</p>OliverWed, 06 May 2015 14:40:43 -0400https://answers.axonivy.com/questions/1309/how-to-use-dynamic-p-graphicimage-with-streamedcontentjsfdesignerprimefaceswhy doesn't support Ivy-JSF the annotation @ManagedProperty within a managedbean?https://answers.axonivy.com/questions/1248/why-doesn-t-support-ivy-jsf-the-annotation-managedproperty-within-a-managedbean<p>@ManagedProperty is not working in a managedbean</p>nwk2TeamWed, 08 Apr 2015 08:57:49 -0400https://answers.axonivy.com/questions/1248/why-doesn-t-support-ivy-jsf-the-annotation-managedproperty-within-a-managedbeanjsfprimefacesHow to dynamically open tab which binds a ivycomponent?https://answers.axonivy.com/questions/1202/how-to-dynamically-open-tab-which-binds-a-ivycomponent<p>My team got some problems with adding a new p:tab which contains ivycomponent. In the first tab of the p:tabview contains a p:datatable. A new p:tab should created/opened each time if the user clicks a row in the datatable. </p> <p>In the new p:tab should include a ivycomponent with 2 parameters, which looks like following: <img alt="alt text" src="http://answers.axonivy.com/upfiles/ScreenHunter_352_Mar._05_10.34.jpg"></p> <p>Has anyone already gained experience with loading ivycomponent(s) within a dynamic p:tab? Thank you for sharing!</p> <p>Kind regards</p> <p>NWK Team</p>nwk2TeamThu, 05 Mar 2015 11:01:22 -0500https://answers.axonivy.com/questions/1202/how-to-dynamically-open-tab-which-binds-a-ivycomponenthtmluserdialogivyscriptprimefacesGenereate Word Document with dynamic contenthttps://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-content<p>How can I generate a Word Document with ivy?</p>Reguel WermelingerTue, 24 Feb 2015 10:06:40 -0500https://answers.axonivy.com/questions/1175/genereate-word-document-with-dynamic-contentasposebirtwordhtmlwebpagesprimefacesdatatable filter primefaceshttps://answers.axonivy.com/questions/1174/datatable-filter-primefaces<p>Hi,</p> <p>i would like to use the "Search all fields" option of axonivy project. <a href="http://www.primefaces.org/showcase/ui/data/datatable/filter.xhtml">http://www.primefaces.org/showcase/ui/data/datatable/filter.xhtml</a></p> <p>My data table is linked with an entity class. Does anyone knows if it is possible to made something like that ?</p>magictotoFri, 20 Feb 2015 21:59:38 -0500https://answers.axonivy.com/questions/1174/datatable-filter-primefacesprimefacesHow to override Primefaces password validation messages?https://answers.axonivy.com/questions/1144/how-to-override-primefaces-password-validation-messages<p>Hallo How can I override the Primefacess password validation messages? or is there already ivy component password setting?</p> <p>Thanks ahead!</p>dongMon, 02 Feb 2015 10:03:29 -0500https://answers.axonivy.com/questions/1144/how-to-override-primefaces-password-validation-messagesprimefacesReal Time Progress bar with a blockUI doesn't work using primefaces with atmospherehttps://answers.axonivy.com/questions/1126/real-time-progress-bar-with-a-blockui-doesn-t-work-using-primefaces-with-atmosphere<p>I have a button and when I press on it, the method obtains data from the data base and show the records in a datatable. The action takes more than 1 minute and I want to show a progress bar (the time is variable)</p> <p>I found the solution in this page: <a href="http://answers.axonivy.com/questions/16/show-a-real-time-progress-bar-in-a-html-user-dialog">Show a real time progress bar in a Html User Dialog</a></p> <p>The problem is that I show the progress bar, but always is "0%". In the javascript function never enter. And I don't know if I'm doing something wrong.</p> <p>This is my XHTML: (I can't write the simbol 'is less than')</p> <pre><code>h:form id="formAllocate"&gt; p:panel id="panel" header="Realtime ProgressBar"&gt; p:commandButton id="btn" value="Start" actionListener="#{scheduleMB.startLongRunningProcess}"&gt; /p:commandButton&gt; /p:panel&gt; p:blockUI block="panel" trigger="btn"&gt; p:progressBar widgetVar="progressBar" style="width:300px" labelTemplate="{value}%"&gt; /p:progressBar&gt; span id="msg"&gt;&lt;/span&gt; /p:blockUI&gt; /h:form&gt; p:socket channel="/realtime" onMessage="handleProgress"&gt;&lt;/p:socket&gt; script type="text/javascript"&gt; function handleProgress(progressJson) { alert('begin'); var progressData = eval("(" + progressJson + ")"); progressBar.setValue(progressData.progress); $("#msg").text(progressData.msg); } /script&gt; </code></pre> <p>This is my Bean:</p> <pre><code>public void startLongRunningProcess(){ EventBus eventBus = EventBusFactory.getDefault().eventBus(); eventBus.publish("/realtime", "{ 'progress' : 10, 'msg' : 'Extract data'}"); list = getAuxService().findList(userSelected, initDate2, endDate2); } </code></pre> <p>In the web.xml:</p> <pre><code>servlet&gt; servlet-name&gt;Push Servlet&lt;/servlet-name&gt; servlet-class&gt;org.primefaces.push.PushServlet&lt;/servlet-class&gt; load-on-startup&gt;1&lt;/load-on-startup&gt; async-supported&gt;true&lt;/async-supported&gt; /servlet&gt; servlet-mapping&gt; servlet-name&gt;Push Servlet&lt;/servlet-name&gt; url-pattern&gt;/primepush/*&lt;/url-pattern&gt; /servlet-mapping&gt; </code></pre> <p>In my pom.xml I have this dependencies:</p> <pre><code>dependency&gt; groupId&gt;org.atmosphere&lt;/groupId&gt; artifactId&gt;atmosphere-runtime&lt;/artifactId&gt; version&gt;2.2.2&lt;/version&gt; /dependency&gt; dependency&gt; groupId&gt;org.roboguice&lt;/groupId&gt; artifactId&gt;roboguice&lt;/artifactId&gt; version&gt;2.0&lt;/version&gt; /dependency&gt; </code></pre> <p>I'm using primefaces 5.1, spring 3.2.5, hibernate 4.2.7, java 1.7, primefaces extension 3.0.0</p> <p>What I'm doing wrong???</p> <p>Thx for the help and answer.</p>cascamorrisWed, 21 Jan 2015 10:44:11 -0500https://answers.axonivy.com/questions/1126/real-time-progress-bar-with-a-blockui-doesn-t-work-using-primefaces-with-atmosphereprimepushjavaprimefaces