Hi,
What's the best way to get the list of jetspeed's users in a template (but
not using any portlet).
I tried to use a VelocityScreen. I've defined a class which extend the
VelocityScreen class (org.apache.turbine.modules.screens.VelocityScreen).
In this class, I wrote a doBuildTemplate( RunData data, Context context )
method in which I perform this :
Iterator users = JetspeedSecurity.getUsers();
List userList = new ArrayList();
while (users.hasNext()){
JetspeedUser user = (JetspeedUser) users.next();
userList.add(user);
}
context.put("users", userList);
Then I've defined a new .vm template of the same name as my class (as
mentionned here :
http://jakarta.apache.org/turbine/turbine-2.2.0/howto/velocity-site-howto.htm
)
However my class seems never be executed when I load the template.
Any idea?
Thx
Simon.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]