<div dir="ltr"><font color="#330033"><font size="2"><font face="tahoma,sans-serif">Bob,<br>Looks like it&#39;s a browser issue, </font></font></font><font color="#330033"><font size="2"><font face="tahoma,sans-serif">since the actual HTML is updated. This is sometimes caused by browsers that do not update the display regardless of the actual markup (they assume it&#39;s the same). Internet Explorer may do this from time to time.<br>
<br>You should create a Javascript code that updates the select element.<br><br><br>Regards,<br>Avi.<br></font></font></font><br><div style="margin: 0pt;" name="sig_83fa755cf9"></div><div class="gmail_quote">On Mon, Jan 31, 2011 at 3:07 PM, Bob N. <span dir="ltr">&lt;<a href="mailto:bobn@rogers.com">bobn@rogers.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div>Hello,</div><div>How do I get the rendered display of a drop-down select list to show an updated selection from another session?</div>
<div><br></div><div>Here is the scenario: I have a domain object with an attribute displayed in a drop-down list.  Some other session updates the attribute.  I refresh my display, but the rendered selection does not change.  Using Firebug, the generated html shows the updated selection.  This may be basic HTML knowledge, but should the displayed value not update to show the changed &#39;selected&#39; option?  Or is the value intended to be set only on the initial page display and then only by a user action?</div>

<div><br></div><div>Here is an example.  I have a demo Seaside component with a class variable #testStateListSelection which is selected to &#39;one&#39; in a Seaside session.  If I change the value to &#39;three&#39;  in another Seaside session, the displayed value stays as &#39;one&#39; in the original session after rendering again, even though the &quot;selected&quot; in the generated HTML shows &quot;three&quot;.</div>

<div><br></div><div>renderSelectionListOn: html</div><div><span style="white-space: pre-wrap;">        </span>html form: [</div><div><span style="white-space: pre-wrap;">                </span>html select </div>
<div><span style="white-space: pre-wrap;">                        </span>list: #(&#39;one&#39; &#39;two&#39; &#39;three&#39; &#39;four&#39; &#39;five&#39;); </div><div><span style="white-space: pre-wrap;">                        </span>selected: self class testStateListSelection; </div>

<div><span style="white-space: pre-wrap;">                        </span>callback: [:value | self class testStateListSelection: value].</div><div><span style="white-space: pre-wrap;">                </span>html break.</div><div>
<span style="white-space: pre-wrap;">                </span>html submitButton</div><div><span style="white-space: pre-wrap;">                        </span>callback: [Transcript cr; show: self class testStateListSelection];</div>
<div><span style="white-space: pre-wrap;">                        </span>with: &#39;Save&#39;]</div><div><br></div><div>...the displayed value shows &#39;one&#39;, even though the HTML is...</div><div><br></div><div>&lt;select name=&quot;1&quot;&gt;</div>

<div>  &lt;option value=&quot;1&quot;&gt;one&lt;/option&gt;</div><div>  &lt;option value=&quot;2&quot;&gt;two&lt;/option&gt;</div><div>  &lt;option value=&quot;3&quot; selected=&quot;selected&quot;&gt;three&lt;/option&gt;</div>

<div>  &lt;option value=&quot;4&quot;&gt;four&lt;/option&gt;</div><div>  &lt;option value=&quot;5&quot;&gt;five&lt;/option&gt;</div><div>&lt;/select&gt;&lt;br&gt;</div><div><br></div><div>How do I get the drop-down selected value to show &#39;three&#39;? </div>

<div><br></div><div>BTW: all I know about HTML &amp; browser behaviour I&#39;ve learned from coding Seaside, so I may have a skewed perspective ;-)  </div><div><br></div><div>Thanks for any help,</div><div>Bob Nemec</div>

<div><br></div>
<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>
<br></blockquote></div><br></div>