Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsf a4j:support problem help!

843844Jul 14 2008 — edited Jul 14 2008
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="&nbsp;" escape="false"/>
						<h:outputText value="&nbsp;" 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 11 2008
Added on Jul 14 2008
1 comment
228 views