You were probably just mislead by how things work for pages and compoenents,
tapestry does much more to pages and components, like parameter injection
for example.
however for services there are (as I'm aware) two ways only to inject,
via constructor for autobuilt services, and via builderMethod
Hi Davor,
This works, kind of amazing, I read that section about service, but can't
find info about this, maybe I'm not reading enough? Thanks,
A.C.
Davor Hrg wrote:
>
> declare Session as parameter in you service constructor
> you dont even need to call any inject annotation ...
>
>
> MySer
declare Session as parameter in you service constructor
you dont even need to call any inject annotation ...
MyServiceImpl(Session session){
this.session=session;
}
in your module use:
public static void bind(ServiceBinder binder)
{
binder.bind(MyService.class, MyServiceImpl.class);
Hi,
I need to use Tapestry-Hibernate in a service, what is the correct way of
calling the Session? following construct does not compile:
@InjectService("Session") Session _session;
public List members() {
List lst = _session.createQuery("from MemberNew m order by name