Hello I am new at this jsf stuff and I dont know what im doing wronge but it is not running not even connecting with the handler when I do debbug , I post this part of the JSF and the event could say where I am wrong?
<h:outputText value="User: " />
<h:panelGroup id="dynamicUserGroup">
<h:selectOneMenu id="userOptions" style="font-size: 10px;" onchange="this.form.submit();" >
<f:selectItem itemValue="is" />
<f:selectItem itemValue="is not"/>
<f:selectItem itemValue="like" id="like" />
<a4j:support event="onchange" action="#{ticketBeanHandler.userEvent}" reRender="likearg" immediate="true" />
</h:selectOneMenu>
<h:outputText value=" " escape="false"/>
<h:outputText value=" " escape="false"/>
<h:selectManyListbox id="users"
style="font-size: 10px;"
converter="longConverter"
size="3"
>
<f:selectItems value="#{projectBean.users}" />
</h:selectManyListbox>
<h:inputText value="#{searchTicketBean.userLikeArgument}" rendered="#{searchTicketBean.likeSelected}" id="likearg"></h:inputText>
</h:panelGroup>
And this is the event:
public void userEvent(){
String userOption = this.searchTicketBean.getLikeUser();
if (userOption != null){
if ("like".equals(userOption)) {
this.searchTicketBean.setLikeSelected(true);
} else {
this.searchTicketBean.setLikeSelected(false);
}
}
FacesContext.getCurrentInstance().renderResponse();
}
Thank you very much!