<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to BindingExpression</title><link>https://sourceforge.net/p/pexeso-php/wiki/BindingExpression/</link><description>Recent changes to BindingExpression</description><atom:link href="https://sourceforge.net/p/pexeso-php/wiki/BindingExpression/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/BindingExpression/feed" rel="self" type="application/rss+xml"/><item><title>BindingExpression modified by Jan Volf</title><link>https://sourceforge.net/p/pexeso-php/wiki/BindingExpression/</link><description>&lt;div class="markdown_content"&gt;&lt;h1 id="binding-expression"&gt;Binding Expression&lt;/h1&gt;
&lt;p&gt;Binding expression is &lt;a class="" href="../Expressions"&gt;expression&lt;/a&gt; that evaluates to result. It can be defined as attribute value of the component's element where the attribute name matches property of that component or it can be plainly defined inside the text contents. &lt;/p&gt;
&lt;p&gt;Example: &lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span class="c"&gt;&amp;lt;!-- example of expression inside text contents --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;h:p&amp;gt;&lt;/span&gt;Username: {$this-&amp;gt;username-&amp;gt;value}&lt;span class="nt"&gt;&amp;lt;/h:p&amp;gt;&lt;/span&gt;

&lt;span class="c"&gt;&amp;lt;!-- example of expression as attribute value --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;px:TextField&lt;/span&gt; &lt;span class="na"&gt;px:id=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;random&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;readOnly=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;true&amp;quot;&lt;/span&gt; &lt;span class="na"&gt;value=&lt;/span&gt;&lt;span class="s"&gt;&amp;quot;{rand(0,10)}&amp;quot;&lt;/span&gt;&lt;span class="nt"&gt;/&amp;gt;&lt;/span&gt;
&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;Rules that applies: &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;if attribute value is assigned only to the expression then the property represented by that attribute is assigned to the result of the expression evaluation &lt;/li&gt;
&lt;li&gt;if expression is combined with the string or other expressions the expression in that combined string is replaced by result of the evaluation converted to string &lt;/li&gt;
&lt;li&gt;the variable &lt;strong&gt;&lt;code&gt;$target&lt;/code&gt;&lt;/strong&gt; can be used in scope of the expression to refer the component whose property is being assigned - binding target &lt;/li&gt;
&lt;/ul&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.net45917a96fff35d873f4f4791ebae5e98a1afa3ba</guid></item></channel></rss>