views:

116

answers:

0

I have a scenario in which, given an object, I'd like to be able to provide a suggestion box where users can enter the keywords that apply to that object (very similar to the 'tags' feature here on stackoverflow). My keywords are entities themselves, and maintained in their own table. I do a many-to-many join on the objects and the keywords. My question is, is it possible to use the Seam s:convertEntity tag on the rich:suggestionBox component and select multiple Keywords for an object? So, can I have something like this in my JSF:

<rich:suggestionBox var="result" suggestionAction="#{myAction.getKeywordList()}" tokens=",">
     <s:convertEntity />
</rich:suggestionBox>

Will something like this work? Is there anything additional I need to do or things I need to keep in mind? Thanks!