I have such code
<a4j:region>
<h:inputText label="User" id="user" size="30" value="#{bean2.val1}" required="true" >
<a4j:support event="onblur" action="#{bean.action}" reRender="outputName" bypassUpdates="true">
<a4j:actionparam name="user" assignTo="#{bean.user}" value="#{user}" />
</a4j:support>
</h:inputText>
</a4j:region>
<h:message for="user"/>
And my bean class like this :
private String user;
public String getUser() {
System.out.println("user=="+user);
return user;
}
public void setUser(String user) {
this.user = user;
}
public void action(){
getUser();
}
But every time onblur event occurs, the value of user alway null.
I just want to the value of user send to the bean when onblur event occur. So I can get value of user. Anyone can help me ? (I'm sorry for my English)