Hi,
Thanks for the note. You're right, should have tried UserPeer.USERNAME.
Tried again, still gave the same error. Possible bug?
Criteria crit2 = new Criteria();
crit2.addAscendingOrderByColumn(UserPeer.USERNAME);
User[] UserList = TurbineSecurity.getUsers(crit2);
context.put("UserList",UserList);
Thanks.
WILL
-----Original Message-----
From: Colm McCartan [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 18, 2002 10:22 AM
To: Turbine Users List
Subject: Re: Sorting a list of users -- exception
Will Glass-Husain wrote:
> Hi,
>
> I tried to put a sorted list of users in my Velocity context, and got an
> exception
>
> Criteria crit2 = new Criteria();
> crit2.addAscendingOrderByColumn(User.USERNAME);
Are you sure you meant this and not UserPeer.USERNAME?
colm
--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>