Foren
Tokenfield input support
Panagiotis Nikolakeas, geändert vor 7 Jahren.
Tokenfield input support
New Member Beiträge: 3 Beitrittsdatum: 05.03.17 Neueste Beiträge
Hello everyone,
Does liferay faces framework provide a component with tagging/tokenizing input support?
I mean something like this, Component with tokenizing support
In case of a negative answer, could you please recommend the best way of implementing this special requirement?
Thanks in advance,
King Regards,
Panagiotis
Does liferay faces framework provide a component with tagging/tokenizing input support?
I mean something like this, Component with tokenizing support
In case of a negative answer, could you please recommend the best way of implementing this special requirement?
Thanks in advance,
King Regards,
Panagiotis
Neil Griffin, geändert vor 7 Jahren.
RE: Tokenfield input support
Liferay Legend Beiträge: 2655 Beitrittsdatum: 27.07.05 Neueste Beiträge
For plain JSP portlets, Liferay Portal comes with the out-of-the-box liferay-ui:asset-tags-selector JSP tag. However, we have not yet created a JSF/Facelet tag equivalent for the Liferay Faces Portal project.
So for now, I can recommend three options:
1. Create a Facelet composite component that encapsulates the div/ul/li type markup that liferay-ui:asset-tags-selector generates. You can view the HTML for this by using your browser to inspect a the Web Content editor (click on the "Categories" feature). The ul/li markup could be generated using the alloy:dataList component.
2. Create a Facelet composite component that utilizes the tokenizing example you mentioned.
3. Use the PrimeFaces p:chips component.
So for now, I can recommend three options:
1. Create a Facelet composite component that encapsulates the div/ul/li type markup that liferay-ui:asset-tags-selector generates. You can view the HTML for this by using your browser to inspect a the Web Content editor (click on the "Categories" feature). The ul/li markup could be generated using the alloy:dataList component.
2. Create a Facelet composite component that utilizes the tokenizing example you mentioned.
3. Use the PrimeFaces p:chips component.