From: "Diez B. Roggisch" <de...@web.de>
Date: Tue, 13 May 2008 16:00:29 +0200
Local: Tues, May 13 2008 10:00 am
Subject: Re: [TurboGears] Re: SingleSelectField of WidgetsList not properly updated
On Tuesday 13 May 2008 13:20:57 Cecil Westerhof wrote:
> 2008/5/13 Diez B. Roggisch <de...@web.de>: I'm not sure, but to me that looks buttugly. If you want that, instead create > > > I only have one minor problem left. The other fields are filled > > > correctly for an edit. But for the owner field I have to set the > > > selected value with some javascript at the client side, because it is > > > not set. Is there a way to get the selected value rightly set? > > Yes - you can directly set values on forms by passing a proper > I found the solution. It was something completly different as where I > In my model I have: > In my WidgetsList class I had: > I'll change the other definitions also and then I can get rid of the > Maybe good to document this somewhere? To prevent other people a ModelValidator attached to SingleSelectField that will lookup a certain owner-instance. I did that for myself, and maybe I'll get around to implement that for TG11. But that depends on somebody testing/implementing it with SA, as I solely use SO. Diez You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||