<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 93: Instance instead of code serialization for components</title><link>https://sourceforge.net/p/wact/feature-requests/93/</link><description>Recent changes to 93: Instance instead of code serialization for components</description><atom:link href="https://sourceforge.net/p/wact/feature-requests/93/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 06 Dec 2004 21:50:34 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/wact/feature-requests/93/feed.rss" rel="self" type="application/rss+xml"/><item><title>Instance instead of code serialization for components</title><link>https://sourceforge.net/p/wact/feature-requests/93/</link><description>&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;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Jeff Moore</dc:creator><pubDate>Mon, 06 Dec 2004 21:50:34 -0000</pubDate><guid>https://sourceforge.netbb75a8403b330edc5baaad70250adbbf34498a1b</guid></item></channel></rss>