[Zope3-Users] Select Field with Widget
Stephan Richter
srichter at cosmos.phy.tufts.edu
Mon Jan 8 03:29:46 EST 2007
On Tuesday 28 November 2006 07:57, Dennis Schulz wrote:
> Here is the interface:
>
> countrySelect = Choice(
> title=u"countrySelect",
> description=u"countrySelect",
> values=vocabulary)
This should be vocabulary=vocabulary.
> I think there should not be any problems on vocabulary etc since the add
> form can render without any problems and custom widgets.
>
> Maybe there is a problem with default values? How is it possible to set
> the selected value in a SelectWidget?
Your error seems to be that your content component does not have
the "countrySelect" attribute. Make sure it does have this attribute.
Regards,
Stephan
--
Stephan Richter
CBU Physics & Chemistry (B.S.) / Tufts Physics (Ph.D. student)
Web2k - Web Software Design, Development and Training
More information about the Zope3-users
mailing list