Foros de discusión
Tokenfield input support
Panagiotis Nikolakeas, modificado hace 7 años.
Tokenfield input support
New Member Mensajes: 3 Fecha de incorporación: 5/03/17 Mensajes recientes
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, modificado hace 7 años.
RE: Tokenfield input support
Liferay Legend Mensajes: 2655 Fecha de incorporación: 27/07/05 Mensajes recientes
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.