You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@beehive.apache.org by Pietro Di Bello <pi...@gmail.com> on 2005/02/01 17:41:47 UTC
Problem with declarative instantiation of a Control from a POJO
Hi all,
I'm using Beehive taken from SVN two days ago and have a problem
instantiating a Control within a POJO (I'm following the v1Beta docs,
chapter 'Control Programming', 6.1 Declarative Instantiation).
I've already used (successfully) the same beehive control from a
page-flow and also with a programmatic instantiation.
This is the code of the POJO, which uses an LdapAccess Control we developed:
*******************
public class LdapAccessClient
{
@Control @LdapAccess.LdapServer(
userManagerName = "xxx",
userManagerPassword = "yyy",
serviceUrl = "zzz",
searchDatabase = "ttt")
private LdapAccessBean itsLdapAccess;
....
...
}
*******************
Do you have any idea?
Thanks a lot!
Piero
Fwd: Problem with declarative instantiation of a Control from a POJO
Posted by Pietro Di Bello <pi...@gmail.com>.
Sorry!
I forgot to tell you that the error I got trying to use the control
from that pojo was a NullPointerException (it seems that the control
has not been initialized somehow...)
Thanks
Piero
---------- Forwarded message ----------
From: Pietro Di Bello <pi...@gmail.com>
Date: Tue, 1 Feb 2005 17:41:47 +0100
Subject: Problem with declarative instantiation of a Control from a POJO
To: Beehive Users <be...@incubator.apache.org>
Hi all,
I'm using Beehive taken from SVN two days ago and have a problem
instantiating a Control within a POJO (I'm following the v1Beta docs,
chapter 'Control Programming', 6.1 Declarative Instantiation).
I've already used (successfully) the same beehive control from a
page-flow and also with a programmatic instantiation.
This is the code of the POJO, which uses an LdapAccess Control we developed:
*******************
public class LdapAccessClient
{
@Control @LdapAccess.LdapServer(
userManagerName = "xxx",
userManagerPassword = "yyy",
serviceUrl = "zzz",
searchDatabase = "ttt")
private LdapAccessBean itsLdapAccess;
....
...
}
*******************
Do you have any idea?
Thanks a lot!
Piero