Hi Joakim, Thanks for the screen shot. Seems to be pretty close to exactly what I was looking for. I have a few questions which I hope you'll be able to answer. I'd like to pass an object into the component rather than a string and define it by it's entity label which would make updates a breeze. When using a string it also causes an issue when using greater than less than signs. example "Your Name <yourem...@domain.com>. The String gets split on commit due to the < sign ending up with a comma. See code below.
I'd also like to limit the total number of results which could be used within the input field. Example, I might use this where only a single result would be allowed. Lastly, when updating a page, I'd like the component to populate from the database, is that possible? public void onPrepare() { if (this.authorizers == null) { this.authorizers = new ArrayList<String>(); } } SelectModel onProvideCompletionsFromAuthorizers(String partial) { HashSet<ApplicationUser> hashset = new HashSet<ApplicationUser>(); partial = partial.toUpperCase(); for (ApplicationUser applicationUser : applicationUsers) { if (applicationUser.getName().toUpperCase().startsWith(partial)) { hashset.add(applicationUser); } if (applicationUser.getEmail().toUpperCase().startsWith(partial)) { hashset.add(applicationUser); } } return selectModelFactory.create(new ArrayList<ApplicationUser>(hashset), "Label"); } -- View this message in context: http://tapestry.1045711.n5.nabble.com/ANN-Tapestry-tagselect-version-1-0-released-tp4639340p4682764.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org