Primefaces 4.0 및 jsf 2.0을 사용하고 있습니다.Primefaces commandButton이 회전 장치 내부에서 작동하지 않습니다.
캐 러셀 내부의 Primefaces 명령 단추에서 내 관리 Bean의 메소드를 호출하려고하는데 작동하지 않습니다. 단추가 메서드를 호출 할 수없는 것 같습니다. 아무 반응이 없습니다 ...
그래서 찾아 보았지만이 문제를 해결하는 데 도움이되는 내용을 찾을 수 없습니다. 내 코드를 넣고
:
Page.xhtml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:p="http://primefaces.org/ui">
<h:head>
</h:head>
<h:body>
<h:form id="form">
<p:carousel id="tabsCarousel" numVisible="1" itemStyle="height:500px;width:800px;" effect="easeInStrong">
<p:tab title="Godfather Part I">
<h:panelGrid columns="2" cellpadding="10">
<p:graphicImage value="/images/godfather/godfather1.jpg" />
<h:outputText value="Some text" />
<p:commandButton value="ok" action="#{bean.test}" />
</h:panelGrid>
</p:tab>
</p:carousel>
</h:form>
</h:body>
</html>
그리고 관리 빈의 방법
public void test(){
System.out.print("Here!");
}
OBS : 5 월 빈의 범위는 ViewScoped입니다.
제발!
감사합니다 !!!!!
'process = "@ this"'를 버튼에 추가 해 주실 수 있습니까? –
예, 명령 단추에 넣었지만 작동하지 않았습니다 .. 감사합니다! – AmorimRob