Questions tagged [passthrough-attributes]

"Passthrough attributes" is a JSF 2.2 specific term for declaring component attributes which should be passed through into the HTML output during render response. By default, unregistered component attributes are namely ignored during render response. This is designed with HTML5 data-* support in mind.

See also Java EE 7 tutorial - HTML5 friendly markup.

9 questions
6
votes
1 answer

Using f:selectItems var in passtrough attribute

can I pass expressions to JSF 2 passthrough-attributes? the following code is not working. expression #{country.isoCode} is not evaluated.
Steve
  • 384
  • 1
  • 7
  • 17
2
votes
1 answer

Attribute name "p:autofocus" associated with an element type "h:inputText" must be followed by the ' = ' character

Seems that there is an bug using some HTML 5 attributes using the passthrough namespace, i.e: When I try to run the page in Glassfish I get this…
CIOC
  • 1,385
  • 3
  • 19
  • 48
1
vote
1 answer

JSF passthrough radio button selection resets on form validation errors

I have a JSF 2.2 form comprised of an input text field and a pair of radio buttons displayed inline. Given the known limitations on radio button groups in JSF 2.2, I'm using the technique outlined by BalusC in this blog post. We cannot upgrade to…
Kevin Swan
  • 147
  • 12
1
vote
1 answer

How do I set the min attribute for via h:inputText?

I have the following HTML calendar: How can I add the min attribute for this? t refers to…
tano9321
  • 31
  • 7
1
vote
2 answers

java.lang.NullPointerException: at com.sun.faces.renderkit.html_basic.HtmlResponseWriter.getAttributeValue

I'm trying to use the new passthrough attribute feature in my web application, however i'm having problems with nullable attributes. This is the code:
cocorossello
  • 1,289
  • 1
  • 17
  • 30