2016-07-29 14 views
1

몇 가지 변형을 시도했지만 그 중 아무 것도 작동하지 않는 것 같습니다.패스 스루가 작동하지 않습니다.

사양 :

  • 인 Mojarra 2.2.5

  • Primefaces 6.0

  • JSF 2.2

1) 패스 스루

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 당신이 2 년 전 2.2 네임 스페이스를 사용하는

1에서
<h:inputText id="sign_in_useremail" type="text" class="form-control" label="useremail"> 
+1

시작을 참조하십시오 http://stackoverflow.com/questions/31068678/which-xml- 네임 스페이스 - 사용 - jsf - 2-2 – Kukeltje

+0

@ Kukeltje 훌륭해, 내 문제를 해결. 당신은이 대답을 할 수 있으며, 당신까지 그것을 받아 들일 것입니다. – Fabii

답변

2

)


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) 단지 레이블이 긴 샷)에는 2.2와 2.2 이전 네임 스페이스가 혼합되어 있습니다. 그냥 모두 2.2 호환.

2.2 최선의/좌/가장 최근의 네임 스페이스를 사용하여도