Questions tagged [passthrough-elements]

"Passthrough elements" is a JSF 2.2 specific term for declaring JSF components as "plain" HTML5 elements which should be automatically converted to real JSF components during view build time, when an "identifying attribute" is present in the plain HTML5 markup.

See also Java EE 7 tutorial - HTML5 friendly markup.

20 questions
5
votes
1 answer

Parent is not of type ActionSource, type is: com.sun.faces.component.PassthroughElement

I'm using Passthrough elements in my JSF project, and need to do something similar to this:
4
votes
1 answer

is not interpreted as passthrough element

I don't understand why this piece of code is working: and this piece of code is not working: Login
Gavi
  • 1,300
  • 1
  • 19
  • 39
3
votes
1 answer

HTML5 Pass-Through element causes Eclipse warning 'Unknown tag'

My JSF template.xhtml file looks something like:
Jens Piegsa
  • 7,399
  • 5
  • 58
  • 106
2
votes
1 answer

Control generated ID of ui:repeat

Sorry for the simple question. I am learning to use JSF 2.2 to create a form and trying to keep it close to plain HTML5 as possible. I have an ui:repeat generated list that goes like this:
2
votes
2 answers

name attribute overriden when specifying input type="radio" as JSF passthrough element

When using plain HTML radio buttons bound to a bean using the jsf: attributes added in JSF 2.2, I run into an issue where the generated names of the radio inputs don't match:
2
votes
1 answer

Converter for JSF passthrough input element ("HTML5 friendly markup")

I'm using a passthrough element inside Facelet page like this: And I'd like to attach a Converter to it. How can I achieve this?
ravshansbox
  • 748
  • 11
  • 21
1
vote
0 answers

How to use HTML tags as passthrough elements instead of JSF tags?

I use JSF 2.0 and the Apache Tomcat Server version 8. I have a simple JSF program that consists of two pages. In the first one the user enters his name and click a button which takes the user to the second page which displays "welcome" and the name…
1
vote
1 answer

Cannot access f:selectItems variable for passthrough attribute

I am using JSF 2.2 and I want to display a title attribute on each option element generated by h:selectOneMenu with passthrough by using an attribute of the f:selectItems variable. It seems that I cannot access the f:selectItems variable to…
tfosra
  • 581
  • 5
  • 12
1
vote
1 answer

Preset checked state of h:selectOneRadio with passthrough elements

I am trying to implement the solution described in renders table element, how to avoid this?
Selected…
Fabien Roussel
  • 225
  • 1
  • 4
  • 10
1
vote
1 answer

jsf:rendered in passthrough
  • has no effect, it still renders its output
  • I am doing a page that will show some components if the Staff is an Admin. I am using html5 with bootstrap with primefaces 5.0 Based on what I know in JSF, you can control whether to render a component by using the rendered attribute. Since my…
    Lawrence Wong
    • 1,129
    • 4
    • 24
    • 40
    0
    votes
    0 answers

    SAS - SQL ODBC connection - converts date type to text

    I have connected to a sql database using sql pass-through in base SAS 9.4. I pulled the table schema and can clearly see that 'filedate' variable is date type. However, when i pull a subset of the table in via SAS it converts 'filedate' to the text…
    Tammboy
    • 321
    • 4
    • 14
    0
    votes
    0 answers

    I want to display a div, if a boolean is false. This is my Bean: @Named @RequestScoped public class NewUserBean implements Serializable { private static final long serialVersionUID = 1L; private boolean bool = false; public boolean…
    0
    votes
    1 answer

    JSF pass through elements can't send objects

    I'm using JSF pass through element, and i want to send to my Bean an entire object, but when i do i get null. I'm doing something like this:
    prabello
    • 556
    • 2
    • 14
    • 31
    0
    votes
    1 answer

    Using f:selectOneRadio var in passtrough attribute

    selectOneMenu with forEach as described here (https://stackoverflow.com/a/29676353/1521710) does the job but when trying to use selectOneRadio in same case passthrough is ignored. Is there any quick way to fix this.
    0
    votes
    0 answers
    1
    2