How do i proceed with creating a custom Taglib
in a liferay
.For now i have a portlet
created in place. My obvious questions are:
hook plugin
and override a jsp
for acheiving this target?jars
?I didnt find sufficient source for achieving this. Any guidance much appreciated. Thanks.
You're using a custom taglib in your own portlet just like you'd use it in any other web application: Include the TLD and the jar with the taglib's implementation, then include it in the JSPs that you're using in your portlets.
If you want to override Liferay's JSPs with your own JSP implementations (in a hook), you're typically limited to Liferay's own JSPs: A hook can't introduce a new Taglibrary to Liferay. However, if absolutely necessary you can add a custom taglib to Liferay with an ext plugin and use it from a hook.
But note that this has nothing to do with what's available to a portlet plugin: Portlet plugins are completely self-contained and can introduce whatever taglib they want with no need to customize Liferay itself.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments