<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>Oh cool. Thanks Ramon now I change a bunch of code tonight ;) I always wondered how to do that lol.<br><br>Gracias :)<br><br>RS via G1<br><br>> Date&#58; Wed, 27 Oct 2010 10&#58;49&#58;47 -0700<br>> From&#58; ramon.leon&#64;allresnet.com<br>> To&#58; seaside&#64;lists.squeakfoundation.org<br>> Subject&#58; Re&#58; &#91;Seaside&#93; Problem smalltalk code<br>> <br>> Rather than adding to the list like this and passing around strings...<br>> <br>> html select<br>>    list&#58; &#40;&#40;user organizations collect&#58; &#91;&#58;org &#124; org oName &#93;&#41; addFirst&#58; <br>> &#39;-- Select an organization --&#39;&#59; yourself&#41;&#59;<br>>    on&#58; &#35;selected of&#58; self&#59;<br>> <br>> Just do this to accomplish the same thing, and you don&#39;t really want to <br>> just get org names either, you want the org object, so fix the labels <br>> like this...<br>> <br>> html select<br>>    beOptional&#59;<br>>    optionLabel&#58; &#39;-- Select an organization --&#39;&#59;<br>>    list&#58; user organizations&#59;<br>>    labels&#58; &#91;&#58;org &#124; org oName&#93;&#59;<br>>    on&#58; &#35;selected of&#58; self&#59;<br>> <br>> Now when the user makes a selects, &#35;selected is set to the correct org <br>> object, not just its name.<br>> <br>> -- <br>> Ramon Leon<br>> http&#58;//onsmalltalk.com<br>> _______________________________________________<br>> seaside mailing list<br>> seaside&#64;lists.squeakfoundation.org<br>> http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside<br>                                               </body>
</html>