This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes JSF and the fly likes at Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "at" Watch "at" New topic


Srinivas Kasani

Joined: Sep 26, 2008
Posts: 22
I have a requirement where I need to populate the drop down content after user interaction. I'm populating the drop down using a4j, but again when I submit this form, for some reason, it seems it cannot read the or identity the data present inside the drop down....

<h:selectOneMenu value="#{coreServices.selectSomething}" id="list" rendered="true">
<f:selectItems value="#{coreServices.selectListOfValues}" />
<a4j:commandButton action="#{coreServices.ListOfValues}" value="Get Values" reRender="list"/>

The above code it working as expected, like when I click on action "Get Values" it is populating the drop down menu.

But again, when I select one of the values from the drop down and submit the page, I get following error. Can someone suggest, what I'm missing or doing wrong ?

at javax.faces.component.UISelectOne.matchValue(
at javax.faces.component.UISelectOne.validateValue(
at javax.faces.component.UIInput.validate(
at javax.faces.component.UIInput.executeValidate(
at javax.faces.component.UIInput.processValidators(
at javax.faces.component.UIComponentBase.processValidators(
at javax.faces.component.UIForm.processValidators(
at javax.faces.component.UIComponentBase.processValidators(
at javax.faces.component.UIComponentBase.processValidators(
at javax.faces.component.UIViewRoot.processValidators(
at org.ajax4jsf.component.AjaxViewRoot.access$201(
at org.ajax4jsf.component.AjaxViewRoot$3.invokeRoot(
at org.ajax4jsf.context.JsfOneOneInvoker.invokeOnRegionOrRoot(
at org.ajax4jsf.context.AjaxContextImpl.invokeOnRegionOrRoot(
at org.ajax4jsf.component.AjaxViewRoot.processValidators(
at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(
at com.sun.faces.lifecycle.LifecycleImpl.phase(
at com.sun.faces.lifecycle.LifecycleImpl.execute(
at javax.faces.webapp.FacesServlet.service(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(
at org.ajax4jsf.webapp.BaseFilter.doFilter(
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
at org.apache.catalina.core.ApplicationFilterChain.doFilter(
at org.apache.catalina.core.StandardWrapperValve.invoke(
at org.apache.catalina.core.StandardContextValve.invoke(
at org.apache.catalina.core.StandardHostValve.invoke(
at org.apache.catalina.valves.ErrorReportValve.invoke(
at org.apache.catalina.core.StandardEngineValve.invoke(
at org.apache.catalina.connector.CoyoteAdapter.service(
at org.apache.coyote.http11.Http11Processor.process(
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(
I agree. Here's the link:
subject: at
jQuery in Action, 3rd edition