<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Answers to: difference between method start and event start</title><link>https://answers.axonivy.com/questions/2212/difference-between-method-start-and-event-start</link><description>&lt;p&gt;Hi, what's the difference between method start and event start in userdialogue, and when we should use one of them instead of the other in perspective of performance ?&lt;/p&gt;
&lt;p&gt;Thank you &lt;/p&gt;</description><atom:link href="https://answers.axonivy.com/questions/2212/difference-between-method-start-and-event-start" rel="self"></atom:link><language>en</language><lastBuildDate>Wed, 23 Nov 2016 10:49:22 -0500</lastBuildDate><item><title>Answer by Reguel Wermelinger</title><link>https://answers.axonivy.com/questions/2212/difference-between-method-start-and-event-start/2215</link><description>&lt;p&gt;In most cases you only use StartEvents to handle UI events. A start event intends do execute simple dialog logic and may returns Ajax content to update the site. StartEvents are the preferred way to implement dialog logic and are simpler to maintain (no interface definition required).&lt;/p&gt;
&lt;p&gt;But there are some JSF components where you only have an interface to use a StartMethod. Like the &lt;code&gt;p:ajax&lt;/code&gt; widget. See the demonstration the &lt;code&gt;HtmlDialogDemos&lt;/code&gt; project that comes with the Designer (under &lt;code&gt;applications/samples&lt;/code&gt;). &lt;img alt="alt text" src="http://answers.axonivy.com/upfiles/ajaxListenerMEthod.PNG"&gt;&lt;/p&gt;
&lt;p&gt;For more information see the various JSF documentations in the net. A StartEvent can be registered as actionListener while a StartMethod is a normal action.
&lt;a href="http://stackoverflow.com/questions/3909267/differences-between-action-and-actionlistener"&gt;http://stackoverflow.com/questions/3909267/differences-between-action-and-actionlistener&lt;/a&gt;&lt;/p&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Reguel Wermelinger</dc:creator><pubDate>Wed, 23 Nov 2016 10:49:22 -0500</pubDate><guid>https://answers.axonivy.com/questions/2212/difference-between-method-start-and-event-start/2215</guid></item></channel></rss>