Questions tagged [tagfile]

A "tagfile" is a JSP/Facelets specific term for a reuseable JSP/Facelets code fragment which is registered as a custom tag and is thus accessible under a custom namespace, such as ``.

51 questions
160
votes
5 answers

What's the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?

It seems that there are two methods for templating with JSP. Including files with one of these statements <%@ include file="foo.html" %> or using JSP tag files // Save this as mytag.tag <%@ tag…
sonicboom
  • 4,928
  • 10
  • 42
  • 60
110
votes
1 answer

When to use , tag files, composite components and/or custom components?

I started using JSF 2.0 with Facelets recently and got puzzled by new composite components knowing existing and other templating techniques offered by Facelets 1.x. What is the difference between those approaches? Functionally they…
mrembisz
  • 12,722
  • 7
  • 36
  • 32
10
votes
1 answer

How to create a custom Facelets tag?

I am using JSF 2.0. I created custom JSTL tags with tagfiles and that were working fine in JSP. But I want to use custom JSTL tags in Facelets too. Is it possible to create tagfiles in Facelets or not?
Nisar
  • 115
  • 1
  • 8
7
votes
1 answer

Proper using of Facelet templates & Composite Components

I'm still not sure about proper using of JSF Templates & Composite Components. I need create an enterprise web applications, which will have a lot of pages. Every page will have the same header, menu, footer and of course different content (= JSF…
sasynkamil
  • 859
  • 2
  • 12
  • 23
6
votes
0 answers

How to access parent component from Facelet tag file in JSF 1.2

I am writing a Facelet tag file in JSF 1.2. I want to be able to reference the parent container. In JSF 2.0 I could make this a composite component and use #{cc.parent}. But is there a JSF 1.2-equivalent way of doing this? taglib.xml
Jason Wheeler
  • 872
  • 1
  • 9
  • 23
6
votes
0 answers

How to package tagfiles in a jar?

How can I package tagfiles in a jar so it can be reused across multiple projects?
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
4
votes
2 answers

Using Doxygen with a manual tag file to generate links to external, online, docs

I have written a library, that uses another 3rd party library. This 3rd party library is provided online at a particular website. I have successfully used DoxyGen to document MY project, but I’m having great difficulty getting it to generate links…
Glurth
  • 290
  • 1
  • 17
4
votes
1 answer

Passing backing bean action to Facelet tag file

In my JSF 1.2 project, I have created a facelet tag file and defined an inputText that has actionListener attribute to which I need to pass the backing bean method name. I tried defining a variable actionListener="#{actionListener}" in the tag file.…
phewataal
  • 1,107
  • 4
  • 12
  • 23
3
votes
2 answers

Embedding Tag Files in a JAR

Is it possible to do this? What I'm trying to accomplish here is the creation of an extensible Struts 2 plugin with customizable screens to avoid code duplication in similar projects.
Thiago Duarte
  • 941
  • 9
  • 21
3
votes
1 answer

Tagfiles (.tag) in JAR (Java App) not picked up in RAD 7

I am using Websphere 6.1.0.23 and RAD7. I have a Java App (SearchJava) which has a tagfile cluster.tag under src/META-INF/tags. I also have search.tld under src/META-INF/tld which has
aos37
  • 101
  • 1
  • 6
3
votes
2 answers

Custom tag attributes are leaking into children

Our application is using Mojarra 2.1.29-03 and we are having a problem with attributes in our custom tags as they are being copied to nested tags as well. For example, given the following tag definition: cc.taglib.xml
haggisandchips
  • 523
  • 2
  • 11
3
votes
3 answers

fragment was not found at expected path (eclipse jsp)

In eclipse, I have a javaproject (not a web project), though it does provide reusable tag files. layout +src +++META-INF ----my.tld +++++++++++tags ---------------include.jsp I keep on getting Fragment "/META-INF/tags/include.jsp" was not be found…
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
2
votes
1 answer

Uploading images from client to server ussing a JSF custom tag

I would like to upload images onto a folder inside the server. For some reason i cant. I don't understand why my filter is not being triggered.And why the file does not get uploaded. Could someone have a look at my code and help me find the reason…
javing
  • 12,307
  • 35
  • 138
  • 211
2
votes
0 answers

JSP Custom Tag File and Dynamic attributes

I have a custom JSP tag tag file, which is a wrapper around HTML input controls - dropdown etc, like so - Here "table" is a declared attribute of the tag where as…
Anupama
  • 167
  • 1
  • 9
2
votes
1 answer

Display a BLOB image using p:graphicImage in a tagfile

Displaying a BLOB image using as follows. Where CategoryBean has been defined as follows. @Named @ApplicationScoped public class…
Tiny
  • 27,221
  • 105
  • 339
  • 599
1
2 3 4