Questions tagged [custom-tag]

Custom tags are user defined tags. They eliminate the possibility of scriptlet tag and separates the business logic from JSP page and makes it reusable.Some examples of tasks that can be performed by custom tags include operating on implicit objects, processing forms, accessing databases and other enterprise services such as email and directories, and implementing flow control. Custom tags increase productivity because they can be reused in more than one application.

References:

  1. Custom tags in JSP - Oracle.
  2. IBM tutorial on Custom tag for JSP.
126 questions
3
votes
7 answers

How do you decide what to use: UDF or Custom Tag?

WACK says: If you feel you need to have lots of arguments, consider creating a CT instead. ... CT are significantly more powerful and flexible than custom functions. Try to use UDFs for simple matters... Use CT and Components for more…
Sergey Galashyn
  • 6,946
  • 2
  • 19
  • 39
3
votes
1 answer

using innerHTML at custom tag in IE

I have a problem I just can't solve, and need your advice since I'm out of ideas: Context: I'm using tinyMCE Editor on my website and developed a custom plugin to include external xml files. So far everything works as expected. The links to the…
hreimer
  • 785
  • 8
  • 31
3
votes
4 answers

When should one use Custom Tag in CFML?

What are some common use cases for implementing CFML Custom Tag (not CFX tag)? In 3 yrs of my CF exp I've never written one. Would someone please enlighten me, under which use case / situation would one choose custom tag over cfc / udf?
Henry
  • 32,689
  • 19
  • 120
  • 221
3
votes
4 answers

How to make a browser recognize a custom user-defined tag?

I am trying to develop a plugin/extension for a browser (Firefox or IE or Chrome). The purpose of this is that the plugin/extension should recognize one of my own-custom tags. Eg: ...
3
votes
4 answers

Select the custom tag from button attribute

I have created a button element structure like below Now, whenever the DOM gets ready…
aMoL Thite
  • 951
  • 1
  • 7
  • 18
3
votes
0 answers

Best way to include JavaScript in a JSP taglib jar

I'm building a taglib with a few custom tags. Some of these require a bit of JavaScript to work properly. What would be the best way to add the JavaScript so that it's included in the taglib jar? The most obvious approach to me would be to put it…
icke
  • 1,568
  • 1
  • 19
  • 31
2
votes
2 answers

Custom Tags in IE8

I'm having issues getting my font style to appear correct in IE8. It looks fine in all other browsers. For example, on this page the title "Acai Berry" has a tag: http://www.ultralaboratories.com/Fruitrients/Acai%20Berry/index.php In mys CSS…
2
votes
1 answer

Angular custom tag not rendering and executing function

I have a custom tag in html. In my next.component.ts file I have, @Component({ selector: 'nextbutton', template: ` ` }) export class NextComponent{ nextfunc() { ==>>my app.component.html…
krishna
  • 101
  • 1
  • 11
2
votes
1 answer

How to add custom HTML tag TSX

While trying to render a custom HTML tag in JSX an error displayed Property does not exist on type 'JSX.IntrinsicElements' I've found some examples of how to do that using declare global { interface IntrinsicElements { …
Vasilii P
  • 349
  • 2
  • 10
2
votes
3 answers

Passing a value to a custom tag

I have a custom tag that I'm trying to pass a String to. It was giving me a NullPointerException. After making some edits suggested below, I am getting ${note} instead of the processed output I had intended. Can anyone help me with this? Here is…
user636859
2
votes
1 answer

vue js extend standard input control e.g. textarea

With vue.js: is it possible to simply extend standard HTML-input without putting it in a wrapper element? I'd like to extend textarea like this: Vue.component('custom-textarea', { data () => { return { } }, template:…
LongHike
  • 4,016
  • 4
  • 37
  • 76
2
votes
0 answers

Editing content of custom tags in VisualEditor (MediaWiki)?

is it possible to make custom MediaWiki tags (as described here) edit-able in VisualEditor? When it is (which I guess) - are there any resources on this topic? I know there is no real documentation for VisualEditor, but I guess a lot of people had…
Jdv
  • 962
  • 10
  • 34
2
votes
1 answer

Making sure custom tag does not have subtags

I am building custom tag to wrap around glyphicons. Part of the Glyphicon spec includes: Only for use on empty elements Icon classes should only be used on elements that contain no text content and have no child…
James A Mohler
  • 11,060
  • 15
  • 46
  • 72
2
votes
1 answer

Why should I use "data-" in my attributes or dashes in my tags?

According to many recent HTML specs, when we are using custom attributes (meaning any attributes not defined in the spec), we should prefix them with data-. However, I see no reason to have to do this (unless you require perfectly valid HTML,…
trysis
  • 8,086
  • 17
  • 51
  • 80
2
votes
1 answer

Why doesn't Railo read the 'customtag' path like CFMX 6.1 does?

I am trying to migrate from CFMX 6.1 to Railo 3.1. I have custom tags in this directory for CFMX 6.1 C:\cfusionmx\customtags\myapp I copied the directory to {railo-web}/customtags/ and added this mapping through the Railo administrator and also…
mrt181
  • 5,080
  • 8
  • 66
  • 86
1
2
3
8 9