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 `
Questions tagged [tagfile]
51 questions
2
votes
1 answer
Conditional render in tagfile depending on whether the attribute is specified or not
I have a Facelet tagfile and need to render different components depending on whether the attribute is specified or not. I tried it as below,

bruno duarte
- 33
- 3
2
votes
0 answers
java.lang.ClassCastException during upgrade of JSF1.2
While upgrading the application from jsf 1.1 to jsf 1.2 i am getting the below error
java.lang.ClassCastException:
Unable to convert "#{TermsOfUseBean.vin}"
to type "javax.el.ValueExpression" for attribute "value"
at…

sai
- 59
- 11
2
votes
0 answers
OmniFaces methodParam check null
Is there any way to know if the action has value?
I have two buttons on my component(custom-tag) . If I fill out the " actionRemove " parameter the Remove button appears. (rendered="#{not empty actionRemove}")
Primefaces: 5.0, Jsf: 2.2, Omnifaces:…

tehackio
- 115
- 1
- 5
2
votes
2 answers
Is including other JSP via the Spring MVC framework a good idea?
This is a vague and grand question but hopefully I can explain it with as little concrete examples as possible.
We recently switched to Spring MVC for our application framework but found one (and really, only one) limiting factor during development:…

Thomas Beauvais
- 1,546
- 2
- 16
- 30
2
votes
1 answer
Pass variable in tag file JSP
I want to pass a variable in tag file. My code here:
layout.tag
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@tag description="My layout" pageEncoding="UTF-8"%>
<%@attribute name="title" type="java.lang.String" required="true"…

ducdhm
- 1,954
- 15
- 26
2
votes
1 answer
How to pass method expression to the Facelets tagfile
I created a tagfile for a confirm dialog with a command button:

EmreAltun
- 393
- 6
- 9
- 19
2
votes
1 answer
Passing an action listener method as tagfile attribute
I am creating a tagfile that contains a primefaces 3.5 dialog. the dialog contains a commandbutton and this button is parameterized with an actionlistener. The question is wether or not i can pass the actionlistener method as an attribute to the…

Matthias
- 43
- 6
2
votes
1 answer
Eclipse cannot find tld inside jar file
I have a jar file that contains some tag-files.
My *.tag files are inside /META-INF/tags/ folder (jar)
I also have a mytags.tld inside /META-INF/ folder (jar)
After pack all war project (with mytags.jar inside WEB-INF/lib folder), it works fine in…

ethanxyz_0
- 713
- 12
- 37
2
votes
1 answer
Passing EL method expression as attribute of custom Facelets tagfile
I created a custom JSF tag:

Federico
- 561
- 2
- 11
- 32
2
votes
1 answer
Passing valueChangeListener method expression into tag file
I have a with an event listener like following:
I would like to put it in a tag file which is to be used as follows:
With inside…

Giant2
- 461
- 1
- 4
- 15
1
vote
1 answer
Why can I output an attribute from inside a JSP tag file but not from the JSP page that calls the tag file?
When I call it from main.jsp, test is printed out as expected:
<%@ tag language="java" pageEncoding="utf-8" isELIgnored="false" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt"…

Brian
- 93
- 1
- 3
- 8
1
vote
1 answer
Trying to create my own image uploader (JSF)
I want to upload images from the client to the server. I already managed to do it using gadgets like primefaces. But this time, i want to try to do it on my own i found information on the web on how to do it, but i am kind of stuck.
My current…

javing
- 12,307
- 35
- 138
- 211
1
vote
1 answer
OmniFaces not working under some circumstances
I have a project where OmniFaces 2.6.8 is used. In this project I have some facelets tag files, which use OmniFaces' . For some of my tagfiles I noticed strange behavior, which means, the seems not to be working and…

Martin Höller
- 2,714
- 26
- 44
1
vote
0 answers
Pass along jsp:param tags from custom tag to a jsp:include tag?
I'm trying to create a tag file that in a way "extends" the tag. Basically I want to add custom logic so that in certain circumstances it will include a different file. I got it working fine for regular tags, but I'm…

j5423951
- 133
- 1
- 12
1
vote
1 answer
EXTJS TagField restrict user to remove item from tagField
How i can achieve this functionality?
- that i want to restrict user to remove item from tag-field base on any condition - user can only insert new item in tag-field

Umair Shahid
- 23
- 1
- 7