commandButton의 쇼케이스에있는 샘플을 사용하려고합니다.RichFaces ajax가 작동하지 않습니다.
하지만이 수행 할 때 그것은 작동하지 않았다
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:f="http://java.sun.com/jsf/core">
<h:head>
<title>Rich Teste</title>
</h:head>
<h:body>
<h:outputStylesheet>
form {
background: #fee3ad
}
</h:outputStylesheet>
<h:form id="iddoform" >
<h:panelGrid columns="3">
<h:outputText value="Nome:" />
<h:inputText value="#{testeBean.nome}"/>
<a4j:commandButton value="Teste" render="iddoform:out" execute="@form" />
</h:panelGrid>
<br />
<a4j:outputPanel id="out">
<h:outputText value="Hello #{testeBean.nome} !"/>
</a4j:outputPanel>
</h:form>
<br />
<a4j:log />
</h:body>
</html>
, 그래서 나는이 변경 :
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:f="http://java.sun.com/jsf/core">
<h:outputStylesheet>
form {
background: #fee3ad
}
</h:outputStylesheet>
<h:form id="iddoform">
<h:panelGrid columns="3">
<h:outputText value="Nome:" />
<h:inputText value="#{testeBean.nome}" />
<a4j:commandButton value="Teste"
render="iddoform:out" execute="@form" />
</h:panelGrid>
<br />
<a4j:outputPanel id="out">
<h:outputText value="Hello #{testeBean.nome} !" />
</a4j:outputPanel>
</h:form>
</html>
enter code here
을 그리고 그것은 작동한다!
변경 사항은 html에서 머리와 본문을 제거하는 것이 었습니다.
내 질문 : '머리 및 신체 태그가 작동하지 않는 이유는 무엇입니까?'
추신 : 나는 render = "iddoform : out"으로 시도하고 있습니다 : iddoform : out 및 out; 그리고 나는 즉각적인 진실을 시도하지만 일하지는 않습니다.
링크가 아닌 여기 코드를 게시하십시오. 링크가 귀하의 질문에 죽으면 쓸모가 없습니다. – Sergio
Sergio, 다음에 코드를 게시 해 주셔서 감사합니다. –
git의 테스트 샘플 : https://github.com/levymoreira/RichTeste/ 모든 사람이 테스트를 원합니다. –