What about these?

return F.flow(ldapCache.findAllLDAPUsers(keyword)).map(new
Mapper<LDAPProfile,String>() {
    public String map(LDAPProfile element) {
        return element.getName();
    }
}).toList();


On Wed, Oct 16, 2013 at 8:49 PM, George Christman
<gchrist...@cardaddy.com>wrote:

> I'm wondering if there is already a tapestry service available for creating
> a string array from an object list similar to the
> SelectModelFactory.createSelectModel.
>
> I find myself creating similar code to below in my autocompletes.
>
> public List<String> onProvideCompletionsFromSupervisor(String keyword) {
>     List<LDAPProfile> ldapProfiles = ldapCache.findAllLDAPUsers(keyword);
>
>     List<String> results = new ArrayList<>()';
>
>     for(LDAPProfile ldapProfile : ldapProfiles) {
>         results.add(ldapProfile.getName);
>     }
>
> return results;
>

Reply via email to