[Seaside] Default value for html select?

Kevin Salvesen kevin.salvesen at gmail.com
Tue Oct 19 10:18:06 UTC 2010


I am currently using a drop-down list in my Seaside application, but it
always takes the first item of the list as default value. Is there a way to
specify which item to take as default value?

For reference here is the code I'm using to display the drop-down list:


html select
        list: MyCoursesModel listOfUsersByEmail;
        selected: [ program manager. ];
        callback: [ :email | program manager: (MyCoursesModel userByEmail:
email). ].



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20101019/ec829612/attachment.htm

More information about the seaside mailing list