I'm using a p:chips
-component in my JSF-based application.
I was researching, if it is possible to modify the behavior of this component in such a way, that leaving the input
-element would add any remaining text content as a new chip for pretty much the same reasons that are given in this issue, that requested the same functionality for the corresponding for primeng-component:
What is the motivation / use case for changing the behavior?
Easier for the users to use when they're only entering a single value and it may be the first time using the control. Reduces the possibility of unexpected behavior as the control then will effectively behave like an input text box.
Seeing that the issue has been resolved for primeng, it stands to reason, that it was a valid request.
Can the same result be achieved for PrimeFaces?
I've found a workaround and will post it as my own answer, because
- it may help someone else who wants the same feature and
- it may be considered to be a bit of a botch and someone might find a better solution.