<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: How to call a logic process from another logic process within JSF</title><link>https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf</link><description>&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;within ULC we often used the panel api to call some methods with the rdc logic.
Means after pressing a button to save data the save event was triggered. 
In the logic of this save process we called a method on the panel (for example validate some data).&lt;/p&gt;
&lt;p&gt;Within JSF there is no longer a panel api available - but maybe you could give us a hint to solve this issue?&lt;/p&gt;
&lt;p&gt;Thanks for the fish,
Sven&lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf" rel="self"></atom:link><language>en</language><lastBuildDate>Fri, 20 Jun 2014 14:12:24 -0400</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf/803</link><description>&lt;p&gt;It is possible to pass a callable-method reference (of a process) to an ivy component dialog. The component can then call this process method (from the parent dialog) at any time.&lt;/p&gt;
&lt;p&gt;There is a demonstration of this feature in the HtmlDialogDemos project, which is bundled with the Designer in the &lt;em&gt;applications/samples&lt;/em&gt; folder. Check out the implementation of the &lt;em&gt;ch.ivyteam.htmldialog.demo.component.MethodCallbackDialog&lt;/em&gt; and its child &lt;em&gt;ch.ivyteam.htmldialog.demo.component.DetailListComponent&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So to be clear you can not call logic of another process within a component process directly. But the component view can interact which logic from a parent process. Maybe you could simulate the call from the composite process to the parent process by using the &lt;a href="http://www.primefaces.org/showcase/ui/misc/requestContext.xhtml"&gt;Request Context&lt;/a&gt; to fire a hidden view effent that will trigger the parent process.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Fri, 20 Jun 2014 14:12:24 -0400</pubDate><guid>https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf/803</guid></item><item><title>Comment by Daniel Oechslin on skilchenmann's question</title><link>https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf#789</link><description>&lt;p&gt;I don't know the panel API but if you need any feedback, a.e. validation by the bean you can use &lt;a href="http://www.primefaces.org/showcase/ui/message/messages.xhtml"&gt;messages&lt;/a&gt;.&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Daniel Oechslin</dc:creator><pubDate>Fri, 13 Jun 2014 13:08:59 -0400</pubDate><guid>https://answers.axonivy.com/questions/787/how-to-call-a-logic-process-from-another-logic-process-within-jsf#789</guid></item></channel></rss>