Questions asked by Daniel Oechslinhttps://answers.axonivy.com/questions/asked-by/36/daniel-oechslin/?type=rssQuestions asked by <a href="/users/36/daniel-oechslin" >Daniel Oechslin</a>enTue, 07 Oct 2014 15:28:24 -0400Transport Layer security for webserviceshttps://answers.axonivy.com/questions/991/transport-layer-security-for-webservices<p>Is it possible to use client certs for SOAP- calls as authentication? Can someone point me in the right direction?</p> <p>thanks in advance Daniel</p>Daniel OechslinTue, 07 Oct 2014 15:28:24 -0400https://answers.axonivy.com/questions/991/transport-layer-security-for-webservicesws-securityHow to enable use of properties fileshttps://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-files<p>For my solution i need .properties-Files. I already implemented what I need in another Eclipse. There it works. Now the actual problem: When I deploy my Ivy solution the files stay in the classes folder (thats ok though) but doesn't appear in the WEB-INF/classes/. The second problem is that the faces-config.xml gets overwritten during the deployment. this as well I need for the internationalization.</p> <p>Thanks for hints and ideas! Daniel</p>Daniel OechslinTue, 11 Feb 2014 16:30:36 -0500https://answers.axonivy.com/questions/517/how-to-enable-use-of-properties-filesfaces-config.xmlpropertiesdeploymentSolution: How to Unit-Testhttps://answers.axonivy.com/questions/166/solution-how-to-unit-test<p>Hi there</p> <p>I twiddled a bit and found a solution how to unit-test. It is not the fancy graphical way but there is all you need and it is fairly customizable.</p> <ol> <li>Create a new business-process </li> </ol> <p><img alt="Workflow" src="http://s24.postimg.org/58g8l9gn9/Workflow.jpg"></p> <ol> <li>Create a execution listener <br> Download: <a href="http://www.file-upload.net/download-8362431/ExecutionListener.java.html">ExecutionListener</a></li> <li>Create the Testrunner class <br> Download: <a href="http://www.file-upload.net/download-8362430/UnitTestRunner.java.html">UnitTestRunner</a></li> </ol> <p>How the result may look like: </p> <p><img alt="alt text" src="http://s8.postimg.org/752yicuph/Output.jpg"></p> <p>Resources:</p> <pre><code> [1]: http://s24.postimg.org/58g8l9gn9/Workflow.jpg [2]: http://www.file-upload.net/download-8362431/ExecutionListener.java.html [3]: http://www.file-upload.net/download-8362430/UnitTestRunner.java.html [4]: http://s8.postimg.org/752yicuph/Output.jpg </code></pre>Daniel OechslinWed, 04 Dec 2013 09:07:18 -0500https://answers.axonivy.com/questions/166/solution-how-to-unit-testunit-testNested JSF ELhttps://answers.axonivy.com/questions/139/nested-jsf-el<p>Hi there! Another fun JSF related question.</p> <p><strong>I want a nested el:</strong> </p> <pre><code>&lt;ui:param name="sma" value="#{data.sma}/dialog/lblInputtext')}" /&gt; &lt;ui:param name="smalbl" value="#{sma}" /&gt; &lt;h:outputText value="#{smalbl}" style="height: 300px; width:450px"/&gt; </code></pre> <p>The <strong>output</strong> is the following:</p> <pre><code>#{ivy.cms.co('/sma25/dialog/lblInputtext')} </code></pre> <p>I want exactly this output evaluated by jsf. It doesn't work when I put the result in #{} one more time. JSF prints out a warning due to wrong syntax.</p> <p>Has anyone else tried to nest el's?</p> <p>thx for help!</p>Daniel OechslinTue, 26 Nov 2013 16:53:27 -0500https://answers.axonivy.com/questions/139/nested-jsf-eljsfBest way to read values from the CMS in a JSF dialoghttps://answers.axonivy.com/questions/118/best-way-to-read-values-from-the-cms-in-a-jsf-dialog<p>Hi there I wonder what is the best way to get a CMS value in a value-field of a JSF/HMTL dialog.</p> <p>My first Approach was: </p> <pre><code>&lt;h:outputText value="&lt;%=ivy.cms.co('/#{data.type}/dialog/infoText')%&gt;" &lt;/h:outputText&gt; </code></pre> <p>But this wont work due to the '&lt;' in front of the '%'. My current apporach now is to read the CMS values in the dialog-bean by a scriptstep. Then accessing them by </p> <pre><code>&lt;h:outputText value="&lt;%=ivy.cms.co('/#{data.lblInfoText')%&gt;" &lt;/h:outputText&gt; </code></pre> <p>but this can't be the best solution. Does anyone knows the proper way to add CMS values in a jsf value-field?</p> <p>thx in advance!</p> <p>EDIT:</p> <p>This is the exact line I use in the code.</p> <pre><code>&lt;h:outputText value="#{ivy.cms.co('/#{data.sma}/dialog/lblInputtext')}" style="height: 300px; width:450px"/&gt; </code></pre> <p>In this line i eliminated the dynamic sma #{data.sma}.</p> <pre><code>&lt;h:outputText value="#{ivy.cms.co('/sma25/dialog/lblInputtext')}" style="height: 300px; width:450px"/&gt; </code></pre> <p>Neither of these lines work. They do compile but when I press on the link in the engine-browser i get the following exception still:</p> <p>HTTP Status 500 - javax.el.PropertyNotFoundException: Property 'co' not found on type ch.ivyteam.ivy.page.engine.jsp.JspCms</p> <hr> <p>type Exception report</p> <pre><code>message javax.el.PropertyNotFoundException: Property 'co' not found on type ch.ivyteam.ivy.page.engine.jsp.JspCms description The server encountered an internal error that prevented it from fulfilling this request. exception javax.servlet.ServletException: javax.el.PropertyNotFoundException: Property 'co' not found on type ch.ivyteam.ivy.page.engine.jsp.JspCms javax.faces.webapp.FacesServlet.service(FacesServlet.java:229) org.primefaces.webapp.filter.FileUploadFilter.doFilter(FileUploadFilter.java:79) ch.ivyteam.ivy.dialog.execution.jsf.controller.rest.IvyRestServiceFilter.doFilter(IvyRestServiceFilter.java:54) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.filterAsSystem(IvyFacesInstanceFilter.java:104) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.access$0(IvyFacesInstanceFilter.java:79) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:55) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter$1.call(IvyFacesInstanceFilter.java:1) ch.ivyteam.ivy.security.internal.SecurityManager.executeAsSystem(SecurityManager.java:1425) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.filter(IvyFacesInstanceFilter.java:49) ch.ivyteam.ivy.dialog.execution.jsf.controller.IvyFacesInstanceFilter.doFilter(IvyFacesInstanceFilter.java:37) com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:66) com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:118) com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:113) </code></pre>Daniel OechslinMon, 25 Nov 2013 11:50:06 -0500https://answers.axonivy.com/questions/118/best-way-to-read-values-from-the-cms-in-a-jsf-dialogjsf