4

I've tried a few different variations and none of them seem to be working.

Specs:

  • Mojarra 2.2.5

  • Primefaces 6.0

  • JSF 2.2

1.) Passthrough

xmlns:h="http://java.sun.com/jsf/html"
xmlns:ps="http://java.sun.com/jsf/passthrough"

....

<h:inputText id="sign_in_useremail" type="text" class="form-control" ps:placeholder="useremail" />

2.) PassThroughAttribute


xmlns:h="http://java.sun.com/jsf/html"
xmlns:pc="http://xmlns.jcp.org/jsf/core"

...
<h:inputText id="sign_in_useremail" type="text" class="form-control"">
   <pc:passThroughAttribute name="sign_in_useremail" value="useemail" />
</h:inputText>

3.) Long shot with just a label

<h:inputText id="sign_in_useremail" type="text" class="form-control" label="useremail">
Kukeltje
  • 12,223
  • 4
  • 24
  • 47
Fabii
  • 3,820
  • 14
  • 51
  • 92
  • 1
    Start by using the best/right/most recent namespaces for 2.2: http://stackoverflow.com/questions/31068678/which-xml-namespace-to-use-with-jsf-2-2 – Kukeltje Jul 29 '16 at 17:32
  • @Kukeltje Excellent, that solved my problem. You can make this answer and I'll accept it, up to you. – Fabii Aug 02 '16 at 16:30

1 Answers1

3

In 1) you are using pre-2.2 namespaces, in 2) you have a mix of 2.2 and pre-2.2 namespaces. Just make them all 2.2 compliant.

See also

Community
  • 1
  • 1
Kukeltje
  • 12,223
  • 4
  • 24
  • 47