<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 93: Instance instead of code serialization for components</title><link href="https://sourceforge.net/p/wact/feature-requests/93/" rel="alternate"/><link href="https://sourceforge.net/p/wact/feature-requests/93/feed.atom" rel="self"/><id>https://sourceforge.net/p/wact/feature-requests/93/</id><updated>2004-12-06T21:50:34Z</updated><subtitle>Recent changes to 93: Instance instead of code serialization for components</subtitle><entry><title>Instance instead of code serialization for components</title><link href="https://sourceforge.net/p/wact/feature-requests/93/" rel="alternate"/><published>2004-12-06T21:50:34Z</published><updated>2004-12-06T21:50:34Z</updated><author><name>Jeff Moore</name><uri>https://sourceforge.net/u/jeffmoore/</uri></author><id>https://sourceforge.netbb75a8403b330edc5baaad70250adbbf34498a1b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Right now, the CompilerComponents construct their corresponding &lt;br /&gt;
runtime instance using code generation, with code generated in &lt;br /&gt;
generateConstructor.&lt;/p&gt;
&lt;p&gt;Instead, it would be easier for tag authors if a dummy instance &lt;br /&gt;
was created, which the tag author could modify, and which would &lt;br /&gt;
then be serialized by the compiler.&lt;/p&gt;
&lt;p&gt;This allows for additional future possibilities, is easier to test, is &lt;br /&gt;
simpler for the tag author, and easier to understand.&lt;/p&gt;
&lt;p&gt;An example of how this is done currently:&lt;/p&gt;
&lt;p&gt;function generateConstructor(&amp;amp;$code) {&lt;br /&gt;
parent::generateConstructor($code);&lt;br /&gt;
$code-&amp;gt;writePHP($this-&amp;gt;getComponentRefCode() . &lt;br /&gt;
'-&amp;gt;IsDynamicallyRendered = TRUE;');&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;and with instances instead:&lt;/p&gt;
&lt;p&gt;function configureComponent(&amp;amp;$component) {&lt;br /&gt;
$component-&amp;gt;IsDynamicallyRendered = TRUE;&lt;br /&gt;
}&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>