<p>Here are a few things you could try.</p>
<p>1. Move the select outside the form. Because it is serialized with ajax it should be fine.<br>
2. Remove the select using javascript in a onClick event on the submit button, something like onClick: ((html jQuery id: selectId) remove; return: true)<br>
3. Use ajax to serialize the form elements by giving them a common class and using a standard button with a <br>
onClick: ((html jQuery ajax<br>
    serialize: (html jQuery: &#39;.commonCssClass&#39;);<br>
    Script: [:s | s callback: [current callback on submit button]</p>
<div class="gmail_quote">On Dec 2, 2011 7:36 PM, &quot;Norbert Hartl&quot; &lt;<a href="mailto:norbert@hartl.name">norbert@hartl.name</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Am 02.12.2011 um 18:25 schrieb Paul DeBruicker:<br>
<br>
&gt; On 11-12-02 09:21 AM, Norbert Hartl wrote:<br>
&gt;&gt; Ok, I&#39;ve found the problem. As it is all the same form I submit it twice. Once for the transfer of the select value and the second time when using the submit button. The select callback is triggered a second time and the magritte component gets resetted and that is the reason I can&#39;t see the value. I&#39;m not sure what is the best solution to it. Is it possible to submit only a subset of the form fields? Otherwise I need to detect this case somehow.<br>

&gt;&gt;<br>
&gt;&gt; Norbert<br>
&gt;<br>
&gt;<br>
&gt; Could you just make a generic textInput that stores into an inst var in the component whatever value you want in the class the select chooses, then do the instance creation and set the value once the form is submitted?<br>

<br>
That wouldn&#39;t work. I need only one text input because the selected class is the simplest one of all possible. For every other case there will be multiple form elements that form a new instance. So the delegating component needs to be agnostic of the selected instance. As it is a select I just switch cases and there is no need to reset the child component unless the selection has changed. This way it works quite ok.<br>

<br>
thanks,<br>
<br>
Norbert<br>
<br>
_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
</blockquote></div>