그림과 같이 양식과 두 개의 명령 단추가 포함되어 있습니다.h : 명령 단추가 양식을 제출하지 못하도록
<h:commandButton label="Submit" type="button"
image="resources/images/Save4.jpg"
actionListener="#{userController.createNewUser()}" />
<h:commandButton label="Home"
image="resources/images/Save4.jpg"
action="/index.jsf?faces-redirect=true" />
홈 버튼을 클릭하면 index.jsf로 리디렉션되지만 양식 제출이 발생합니다. 나는 UI Distortion을 일으키기 때문에 홈 명령을 다른 폼 태그에 넣고 싶지 않습니다. 탈퇴를 제안하십시오.
이렇게하려면 또는 을 사용해야합니다. –
Ioan