안녕 commandLink
에 actionListner
을 사용하고 싶습니다.a4j : commandLink 및 attribute actionListener를 사용할 때 bean에 대한 호출이 없음
<ui:define name="content">
<a4j:log/>
<a4j:form id="home">
<h:commandLink value="bla" actionListener="#{SearchBean.search }">
<f:param name="keyWord" value="hello"></f:param>
</h:commandLink>
//some more JSF
</a4j:form>
</ui:define>
내 searchBean 코드 :
public class SearchBean {
public void search(ActionEvent e)
{
String myAttribute = FacesContext.getCurrentInstance().getExternalContext().getRequestParameterMap().get("keyWord").toString();
System.out.println(myAttribute);
}
}
그러나 콩에는 전화가 없습니다. a4j 대신 f:attribute
및 h:commandLink
을 사용해 보았지만 제대로 작동하지 않았습니다.
이상한 일이 있다는의 actionListener 함수 이름의 끝에서 빈 공간을 제거합니다 검색 방법을 호출 ... – akub