<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to EventExpression</title><link>https://sourceforge.net/p/pexeso-php/wiki/EventExpression/</link><description>Recent changes to EventExpression</description><atom:link href="https://sourceforge.net/p/pexeso-php/wiki/EventExpression/feed" rel="self"/><language>en</language><lastBuildDate>Tue, 20 May 2014 18:10:40 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/pexeso-php/wiki/EventExpression/feed" rel="self" type="application/rss+xml"/><item><title>EventExpression modified by Jan Volf</title><link>https://sourceforge.net/p/pexeso-php/wiki/EventExpression/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="event-expression"&gt;Event Expression&lt;/h1&gt;
&lt;p&gt;PXML event expressions are &lt;a class="" href="../Expressions"&gt;expressions&lt;/a&gt; defined as attribute value for component's element in PXML, where the attribute name matches to any of the event type of events dispatched by the component. &lt;/p&gt;
&lt;p&gt;Example: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="o"&gt;&amp;lt;&lt;/span&gt;&lt;span class="n"&gt;px&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;component&lt;/span&gt; &lt;span class="n"&gt;xmlns&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;h&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;http://www.w3.org/1999/xhtml&amp;quot;&lt;/span&gt; &lt;span class="n"&gt;xmlns&lt;/span&gt;&lt;span class="o"&gt;:&lt;/span&gt;&lt;span class="n"&gt;px&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;http://pexeso-php.sourceforge.net/1.0&amp;quot;&lt;/span&gt;
    &lt;span class="n"&gt;viewCreated&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{$this-&amp;gt;viewCreatedHandler($event)}&amp;quot;&lt;/span&gt;&lt;span class="o"&gt;&amp;gt;&lt;/span&gt;
&lt;span class="p"&gt;...&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;These rules applies to event expressions: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;they are evaluated at the moment the event is dispatched &lt;/li&gt;
&lt;li&gt;the value returned by the expression is ignored &lt;/li&gt;
&lt;li&gt;the variable &lt;code&gt;$event&lt;/code&gt; in the scope of the expression holds reference to event object dispatched by the component &lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;Note:&lt;/em&gt; Binding other events that do not inherit from &lt;code&gt;px\events\ExecuteEvent&lt;/code&gt; may result in unexpected behavior as only events inheriting from &lt;code&gt;ExecuteEvent&lt;/code&gt; are dispatched in execute stage of the view (asynchronously). The other events are dispatched synchronously (at the moment the cause of event occurred) and if it happens in the aother stages of the view some components or properties may not be created or initialized or may not have expected value. &lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jan Volf</dc:creator><pubDate>Tue, 20 May 2014 18:10:40 -0000</pubDate><guid>https://sourceforge.net1e85a8659c33275f3b95f4687319dd419c0f5a05</guid></item></channel></rss>