Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature: String to collection converter #327
We need to mass input some comma separated data, which can be copied from other sources. For this reason i created a generic string to collection converter for JSF. If you think it solves a general problem, you can add it to omnifaces if you want.
The converter itself requires a converter to convert a single element unless its targeted type is string. Apache StringUtils is used.
Properties delimiter and space could also be passed via f:attribute in case it shall be a constant.
I dont know right now if its a good idea to return a HashSet. I already had a use case where i needed a LinkedHashSet and another use case, where i bound the same value to a p:autoComplete which just supports List.
So for now i just do: