no problem, i like the past :)
why can't it cope with the enum parameter constructor? it works fine
with the String parameter type. itself tapestry should know how to build
an enum instance (for displaying the combo-box it does correctly).
Or is there a finite list which "parameter-types" can be injected
automatically (I guess all primitive types and String), which does not
include enum-types?
nillehammer schrieb:
Sorry to have messed up the thread. My local clock was wrong
nillehammer schrieb:
When the BeanEditForm instantiates a new Model instance, it now uses the
same code that instantiates service implementations (and injects
dependencies). By default, Tapestry will find the constructor with the
most parameters for this purpose, and will attempt to match each
parameter to a service. That's why you get the Exception "No service
matches..."
In this case, you don't want that behavior. You surely want BeanEditForm
to instantiate via the public no-arguments constructor.
By placing an @Inject annotation on the public no-arguments constructor,
you can direct BeanEditForm to use that constructor instead.
Regards, nillehammer
--
manuel aldana
ald...@gmx.de
software-engineering blog: http://www.aldana-online.de
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org