Custom Taglib in liferay using Spring MVC & Maven?

sTg

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:

  1. Do i need to create a hook plugin and override a jsp for acheiving this target?
  2. Do i need to download any jars?
  3. Which all files would require changes?

I didnt find sufficient source for achieving this. Any guidance much appreciated. Thanks.

Olaf Kock

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

Creating a custom taglib in Liferay 7

From Dev

Maven archetype for Liferay Spring MVC portlet

From Dev

Liferay Spring MVC

From Dev

How to include a jsp file using a custom taglib?

From Dev

adding custom tag using tagLib sharp library

From Dev

Issues with Maven jackson dependencies using spring MVC

From Dev

Liferay : Configuring Multiple Spring MVC Portlets in one liferay plugin project

From Dev

Liferay : Configuring Multiple Spring MVC Portlets in one liferay plugin project

From Dev

recommend folder structure for liferay maven project using liferay developer studio

From Dev

Spring MVC & Maven Integration

From Dev

Spring MVC Maven Modules

From Dev

JSP - issue with custom Taglib

From Dev

How to integrate apache solr in spring MVC using maven on tomcat

From Dev

ERROR trying to generate classes from a WSDL using maven in spring mvc

From Dev

Issue in including CSS file in JSP built with maven using spring mvc

From Dev

404 Error - Java Spring MVC using Maven in Eclipse from Tutorial

From Dev

Override liferay-ui navigation taglib

From Dev

Add Spring security Taglib

From Dev

Custom HttpMessageConverter in Spring MVC

From Dev

Spring MVC custom validators

From Dev

How to specify custom validate error message in SimpleDateFormat using Spring MVC

From Dev

Maven dependency for kendo taglib jar

From Dev

How exactky works the Spring MVC form taglib? Is it my reasoning correct related to a specific example

From Dev

Spring mvc maven - adding libraries

From Dev

Spring MVC, Maven, CRUD, MongoDB

From Dev

JDBC dependency for Maven on Spring mvc

From Dev

Calling custom tagLib inside another custom tagLib dynamically

From Dev

Creating custom taglib on JSF 2.1

From Dev

Custom queries in JPA in Spring MVC

Related Related

  1. 1

    Creating a custom taglib in Liferay 7

  2. 2

    Maven archetype for Liferay Spring MVC portlet

  3. 3

    Liferay Spring MVC

  4. 4

    How to include a jsp file using a custom taglib?

  5. 5

    adding custom tag using tagLib sharp library

  6. 6

    Issues with Maven jackson dependencies using spring MVC

  7. 7

    Liferay : Configuring Multiple Spring MVC Portlets in one liferay plugin project

  8. 8

    Liferay : Configuring Multiple Spring MVC Portlets in one liferay plugin project

  9. 9

    recommend folder structure for liferay maven project using liferay developer studio

  10. 10

    Spring MVC & Maven Integration

  11. 11

    Spring MVC Maven Modules

  12. 12

    JSP - issue with custom Taglib

  13. 13

    How to integrate apache solr in spring MVC using maven on tomcat

  14. 14

    ERROR trying to generate classes from a WSDL using maven in spring mvc

  15. 15

    Issue in including CSS file in JSP built with maven using spring mvc

  16. 16

    404 Error - Java Spring MVC using Maven in Eclipse from Tutorial

  17. 17

    Override liferay-ui navigation taglib

  18. 18

    Add Spring security Taglib

  19. 19

    Custom HttpMessageConverter in Spring MVC

  20. 20

    Spring MVC custom validators

  21. 21

    How to specify custom validate error message in SimpleDateFormat using Spring MVC

  22. 22

    Maven dependency for kendo taglib jar

  23. 23

    How exactky works the Spring MVC form taglib? Is it my reasoning correct related to a specific example

  24. 24

    Spring mvc maven - adding libraries

  25. 25

    Spring MVC, Maven, CRUD, MongoDB

  26. 26

    JDBC dependency for Maven on Spring mvc

  27. 27

    Calling custom tagLib inside another custom tagLib dynamically

  28. 28

    Creating custom taglib on JSF 2.1

  29. 29

    Custom queries in JPA in Spring MVC

HotTag

Archive