Questions tagged [taglib]

TagLibs is a shortened form of "Tag Libraries". Tag Libraries are libraries that include "tags". Tags are usually used to address presentation concerns and encapsulate view-specific logic.

TagLibs is a shortened form of Tag Libraries. Tag Libraries are libraries that include tags. Tags are usually used to address presentation concerns and encapsulate view-specific logic.

Taglibs usually contain tags that encapsulate different kinds of view components (for example, data grids or form elements). These tags can also contain view-specific logic that allows for binding of server-side values to client-side form elements. Some taglibs also contain tags that can be used for logging or for security (authentication).

960 questions
9
votes
3 answers

JSTL Expression for test if Not

I am trying to know whether certain text starts with an expression "Service include.." using JSTL condition. However, I see that this expression is incorrect and error some. Can you please identify what is wrong with this. Below is part of JSP…
Umesh Patil
  • 10,475
  • 16
  • 52
  • 80
9
votes
1 answer

Disable TLD scanning at appengine initialization

This thread is similar to: Disable taglib scanning in google app engine (Jetty) The author of that thread accepted a wrong answer. We were trying to reduce the appengine startup time of my instances I've come accross the taglib TLD classpath…
9
votes
5 answers

Failed to load or instantiate TagLibraryValidator class: org.apache.taglibs.standard.tlv.JstlCoreTLV

So I was working with JSTL in OSGi, under Gemini runtime. And I'm getting following exception, when I try to access the url to my servlet: - SEVERE: Servlet.service() for servlet jsp threw exception org.apache.jasper.JasperException:…
Rohit Jain
  • 209,639
  • 45
  • 409
  • 525
9
votes
3 answers

Adding spring library for usage of JSP Taglibs for security in Freemarker

I am using spring with freemarker as the template engine. Freemarker allows to use the Jsp Taglibs, for security for example, by adding <#assign security=JspTaglibs["http://www.springframework.org/security/tags"] /> to the templates, what…
matthaeus
  • 797
  • 2
  • 7
  • 17
9
votes
2 answers

C# mp3 ID tags with taglib - album art

Im making my own mp3 tagger, and everything is fine so far. Although im stuck reading the album art tag. I would like to know how to display the cover in a C#.NET picture box, but everything iv seen about that particular tag is confusing me. I know…
Purplebob
  • 143
  • 1
  • 1
  • 4
8
votes
1 answer

How to reference Facelets taglib in JAR from Facelets and web.xml?

I am using the Apache MyFaces Commons Validator TagLib. How should i add this to my web.xml? The commons JAR is downloaded and resolved through Maven. XHTML (I think this is correct):
Oh Chin Boon
  • 23,028
  • 51
  • 143
  • 215
8
votes
1 answer

How can I use a custom tag library with Thymeleaf and Spring Boot?

I created a custom tag library with Spring MVC, JSP, and Tyles, so I have several .tagx files. With the new project I decided to try Spring Boot and Thymelaf, but I would like to keep my custom library... So do you if is possible to create a custom…
Teo
  • 3,143
  • 2
  • 29
  • 59
8
votes
2 answers

Custom taglib not loaded with Liferay7

I am migrating my Liferay portlets from 6.0 to Liferay 7.0 and one of the many roadblocks that I am hitting is the inclusion of my custom taglib. I followed the advice from: Creating a custom taglib in Liferay 7 but my portlet fails to load the…
user330315
8
votes
3 answers

Custom Facelets components and attributes defined in taglib

Defining custom components in Facelets is easy and quick but there's one thing I can't figure out. Is it possible with Facelets to define what attributes my custom component has? I.e: I've created a component which is used in such a way: …
mgamer
  • 13,580
  • 25
  • 87
  • 145
8
votes
1 answer

Running tag library from older Tomcat version

First some background. I am developing a web application. This application is installed as an extension of a third party commercial web application. The thrid party provides an SDK for our application to interact with the main web application. As…
Dave Rager
  • 8,002
  • 3
  • 33
  • 52
8
votes
1 answer

Guice - Inject dependency into a class with static helper methods

I'm still new to Guice and haven't used any DI frameworks before. After reading the official wiki and many other documents I'm still unable to wrap my head around it completely. In my particular case I want to write a EL taglib function that uses…
Arman
  • 875
  • 2
  • 8
  • 30
8
votes
4 answers

what's the fundamental difference between a jsp taglib vs including a jsp page?

i have several common elements (components), that will generate some html. it seems my options are creating a taglib, or just putting that logic into a jsp page and including the jsp. whats the difference? positives vs negatives?
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
8
votes
4 answers

Is it possible to turn off taglib scanning in Tomcat?

On startup, Tomcat recursively scans the WEB-INF directories for TLD (Tag Library Descriptor) files. As a result, if a webapp has a lot of files under that directory, it slows down the startup process. Does anyone know if there is a way in that…
Matt Passell
  • 4,549
  • 3
  • 24
  • 39
8
votes
1 answer

Can I use an external JSP tag library with XPages?

I would like to use a JSP tag library supplied by a different (not IBM) software company with XPages. Is this possible? If you can, how can I associate the new jar file to the tag library namespace so it would be recognized?
7
votes
1 answer

Testing grails taglib

Grails 1.1. My custom tag: class MyTagLib { static namespace 'ct' def textField = {attrs -> def bean = attrs.remove('bean') def field = attrs.remove('field') attrs.name = field out << render(template:"/templates/textField",…
Stewie
1 2
3
63 64