Forums de discussion
Tokenfield input support
Panagiotis Nikolakeas, modifié il y a 7 années.
Tokenfield input support
New Member Publications: 3 Date d'inscription: 05/03/17 Publications récentes
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, modifié il y a 7 années.
RE: Tokenfield input support
Liferay Legend Publications: 2655 Date d'inscription: 27/07/05 Publications récentes
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.