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
1
vote
1 answer

Conditionally passing backing bean action to Facelet tag file

In my JSF 2.1 project, I have a custom facelet tag file that defines an actionListener using the solution provided in Passing backing bean action to Facelet tag file . The problem is, I'd like to have the option of not having the actionListener when…
1
vote
0 answers

Pass method expression as tagfile attribute

I've the below tagfile:
wish79
  • 101
  • 1
  • 3
1
vote
1 answer

How do I include a body into a tagfile

I have a tagfile I intend to use as an input template:
Mark W
  • 5,824
  • 15
  • 59
  • 97
1
vote
1 answer

jetty - reload tag file in jar

I have my main web project and a common project which houses my tag files. Currently I use jetty in exploded structure and I jar up my common project with my tag files and place into web-inf/lib. When I make a change to my tag file, I can rejar and…
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
1
vote
1 answer

How can you specify allowed values for a tagfile attribute?

In a JSP tag file you get to specify what attributes the tag supports. For a particular attribute, can you specify what are the legal options for that attribute (and have the page throw an error if you specify something other than a legal option…
jwl
  • 10,268
  • 14
  • 53
  • 91
1
vote
3 answers

How to get a variable from scriplet in tag file

These are my first steps in tag file. Maybe this question is very simple. But I can't solve it. I have the following tag file <% Foo foo=new Foo(); %> It seems to me that jasper doesn't see foo variable.…
user2022068
1
vote
1 answer

FileNotFoundException when using Facelets tagfile

I'm trying to run the example ch05 from the "Core JavaServer Faces" Book (http://horstmann.com/corejsf/) After logging in I get the following message: /sections/planetarium/sidebarLeft.xhtml @12,72 null planet is a composition,…
user2706510
  • 141
  • 1
  • 9
1
vote
2 answers

jsp create scripting variable like jsp:usebean does

I would like to do something like <% someService.methodCall(); %> where
joshjdevl
  • 7,092
  • 12
  • 45
  • 57
1
vote
0 answers

Weblogic10.3, packaging tagfile in jar got tag handler class was not found

My war is working on Tomcat6, but got error on Weblogic10.3: The tag handler class was not found "jsp_servlet.tags.__tag" Here is the situation: I have developed 5 tag files, and define these 5 tag file in one tld, and package them into nnn.jar with…
TheEdge
  • 11
  • 1
1
vote
1 answer

Eclipse Ganymede not validating tag files properly

When editing foo.tag with a line like:

Header

it says on the

: "Unknown tag (h1)" it says on the

: "Error" This only happens in tag files, not JSPs. Ayudame?
dfrankow
  • 20,191
  • 41
  • 152
  • 214
1
vote
1 answer

Multiple JSF components inside a PanelGrid

I am trying to get the reusable group of jsf 1.2 components inside a panelgrid using Facelet tag file with @Balusc's previous answer at How to make a grid of JSF composite component? as a reference. I have copied /WEB-INF/tags/input.xhtml and…
phewataal
  • 1,107
  • 4
  • 12
  • 23
0
votes
1 answer

Conditional binding attribute in Facelet tag file/JSF

In my JSF 2.1 project i defined a custom tag file which includes a h:inputText element. This element may or may not include a binding attribute – depending on the passed parameters of the custom element. Example formInput.xhtml…
Francis
  • 244
  • 1
  • 4
  • 14
0
votes
1 answer

How to pass an attribute from JSP to tag file. Override the value in tag, and get the updated value in JSP

I have a JSP where I am declaring an integer value I am trying to use it inside several tags
Ricardo Machado
  • 784
  • 6
  • 22
0
votes
1 answer

How to show default message in extJS tagfield

I want to place one default message just below to my tagfield. My code : - { xtype: 'tagfield', fieldLabel: 'Select a Show', store: shows, displayField: 'show', valueField: 'id', queryMode:…
David
  • 4,266
  • 8
  • 34
  • 69
0
votes
0 answers

pass bean action as attribute in custom tag inside ui:repeat

Is there a way to pass an bean action as attribute of a custom tag which is inside ui:repeat of my JSF 2.2 page? and then inside of…
Ced
  • 15,847
  • 14
  • 87
  • 146