Questions Tagged With jsfhttps://answers.axonivy.com/tags/jsf/?type=rss&user=dbalassequestions tagged <span class="tag">jsf</span>enTue, 09 Jun 2015 16:57:36 -0400Sort Task by CASE_NAMEhttps://answers.axonivy.com/questions/1355/sort-task-by-case_name<p>Hello,</p> <p>in one of our HTML Dialog, we use a datatable with Ivy Tasks in it. For that we use the ch.ivyteam.wf.common.TaskLazyDataModel as done in the jsfWFUI in the TaskList View. One of our column is #{task.case.name} and I really would like to be able to sort that column. Unfortunately, there CASE_NAME is not present in the TaskProperty Enum and if i figure how it work correctly, it must be there to be able to use sortBy="#{CASE_NAME}". Is there some way to do this ?</p> <p>FTM I see two options :</p> <ol> <li>In the TaskProperty Enum I saw CUSTOM_VARCHAR_FIELD_1. Would it do the job ? If yes how does it work ? Do you have example(s - one would be enough) ?</li> <li>Making a table without the lazy part but that would be a problem if the app is heavily used.</li> </ol> <p>Thank you for your answer Denis</p>dbalasseTue, 09 Jun 2015 16:57:36 -0400https://answers.axonivy.com/questions/1355/sort-task-by-case_namecasejsftasksjsfwfuiInclude a xhtml from webcontent in a HTML Dialog viewhttps://answers.axonivy.com/questions/1290/include-a-xhtml-from-webcontent-in-a-html-dialog-view<p>In the view of a HTML dialog, I am trying to include footer that is located in the webcontent. Like this :</p> <pre><code>&lt; ui:include src="#{resource['ivy-webcontent:layouts/includes/Footer.xhtml']}" /&gt; </code></pre> <p>doing this i have this error </p> <pre><code> java.io.FileNotFoundException: /ivy/faces/javax.faces.resource/layouts/includes/Footer.xhtml?ln=xpertivy-5-webContent Not Found in ExternalContext as a Resource </code></pre> <p>I've tried to access the file directly :</p> <pre><code><a href="http://localhost:8081/ivy/faces/javax.faces.resource/layouts/includes/Footer.xhtml?ln=xpertivy-5-webContent">http://localhost:8081/ivy/faces/javax.faces.resource/layouts/includes/Footer.xhtml?ln=xpertivy-5-webContent</a> </code></pre> <p>and i got 404. But when i try to access an image that is also in the webcontent, it works fine.</p> <pre><code><a href="http://localhost:8081/ivy/faces/javax.faces.resource/images/actions/add.png?ln=xpertivy-5-webContent">http://localhost:8081/ivy/faces/javax.faces.resource/images/actions/add.png?ln=xpertivy-5-webContent</a> </code></pre> <p>What am i doing wrong ?</p>dbalasseFri, 24 Apr 2015 20:01:12 -0400https://answers.axonivy.com/questions/1290/include-a-xhtml-from-webcontent-in-a-html-dialog-viewhtmluserdialogjsfHow to use < ic:xxx/> tags with parameters and resulthttps://answers.axonivy.com/questions/1288/how-to-use-ic-xxx-tags-with-parameters-and-result<p>I saw in the JSF WorkflowUI that this tag is used :</p> <pre><code>&lt; ic:ch.ivyteam.wf.login.Login id="loginPageComponent" /&gt; </code></pre> <p>In the interface of the login html dialog, the start method is</p> <pre><code>start():void </code></pre> <p>with no parameter or return. Is it possible to use this tag while passing parameters and retrieving a result by calling this start method ?</p> <pre><code>start(String):String </code></pre>dbalasseThu, 23 Apr 2015 22:37:29 -0400https://answers.axonivy.com/questions/1288/how-to-use-ic-xxx-tags-with-parameters-and-resultjsftagsjsfwfuiHow to implement a PostProcessorhttps://answers.axonivy.com/questions/1194/how-to-implement-a-postprocessor<p>Hello,</p> <p>i've export some data from a datatable in csv. Now i would like to apply a post processor at the created file (<a href="http://www.primefaces.org/showcase/ui/data/dataexporter/basic.xhtml)">http://www.primefaces.org/showcase/ui/data/dataexporter/basic.xhtml)</a></p> <pre><code>&lt; p:dataExporter type="csv" target="tbl" fileName="cars" postProcessor="???"/&gt; </code></pre> <p>What must I in place of the ??? ? Where can I define the bean ? How can I refer to this bean ?</p>dbalasseTue, 03 Mar 2015 17:23:09 -0500https://answers.axonivy.com/questions/1194/how-to-implement-a-postprocessorhtmluserdialogjsfJSF HTML Dialog - Exit End not closing the Dialoghttps://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialog<p>Hello, I have a problem closing a JSF HTML Dialog.</p> <p>A start process is launching a JSF HTML Dialog (consultation List Demande) with a list of demands (some data). In this list of demand each demand can be displayed by cliking on a button. This button launches another JSF HTML Dialog (open selected demand) which displays the details of this demand.</p> <p>When finished, the user click on the exit button. A <code>ExitEnd</code> is used to get back to the first HTML Dialog. I want to display the list of demands again so i close the "selectDemande" to get back to the Start Process and if a boolean is false i restart the first HTML dialog (with the list).</p> <p><img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend1.jpg"><img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend2.jpg"><img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend3.jpg"></p> <p>The problem is that when i try to finish the first HTML dialog (the one with the list) it starts a loop as shown here : <img alt="alt text" src="http://answers.axonivy.com/upfiles/exitend4.jpg"></p> <p>It's like the <code>ExitEnd</code> closes the second HTML Dialog (the one with the detail) again and not the one with the list.</p> <p>There is obviously something I do wrong but I can't see what.</p>dbalasseMon, 09 Feb 2015 17:36:50 -0500https://answers.axonivy.com/questions/1150/jsf-html-dialog-exit-end-not-closing-the-dialogjsfdesignerINotes Managment in 5.1.2 JSFhttps://answers.axonivy.com/questions/1133/inotes-managment-in-5-1-2-jsf<p>Hello,</p> <p>As for my previous question, i am actually migration a 4.3 RIA application (which i didn't wrote) to a 5.1.2 JSF application.</p> <p>In the 4.3 app ch.ivyteam.ivy.workflow.INote were used. Is there something that manage those INote ? Can I put those as Persistent in my DataClass ?</p> <p>Regards Denis</p>dbalasseMon, 26 Jan 2015 18:18:37 -0500https://answers.axonivy.com/questions/1133/inotes-managment-in-5-1-2-jsfjsfFile management in 5.1.2 jSFhttps://answers.axonivy.com/questions/1120/file-management-in-5-1-2-jsf<p>Hello,</p> <p>i am actually migration a 4.3 RIA application (which i didn't wrote) to a 5.1.2 JSF application.</p> <p>In the old application we were using the workflowUI and something called DocumentWrapper to take care of the Files linked to a case. Does something similar exist in 5.1.2 JSF ? I've found in the addOns the whole ch.ivyteam.ivy.addons.filemanager package. It is used for RIA but could we reuse something ? Or do we have to develop the whole thing ?</p> <p>Is storing files in a CMS an option ?</p>dbalasseThu, 15 Jan 2015 17:15:29 -0500https://answers.axonivy.com/questions/1120/file-management-in-5-1-2-jsfjsffileuploadfile