You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 13 Members of 9400 |
| Forum: Seam Users |
30. Jun 2009, 18:56 America/New_York | Link |
Hello,
I have a rich:combobox with an associated onchange event callback. It works fine if I write into the input, but if I select one item from the suggestion list, the onchange event is never called.
<rich:comboBox id="institution"
value="#{bean.institution}"
suggestionValues="#{institutionConverter.findAll()}"
immediate="true">
<a:support event="onchange" reRender="institutionContactField" BypassUpdates="false" ajaxSingle="true"/>
</rich:comboBox>>
Could any one help me?
Regards, Chiara
I just have seen that this is a bug in version 3.3.2.CR1
https://jira.jboss.org/jira/browse/RF-7286
But i'm using version 3.3.0.GA and it dosen't work.
Coul any one make it work in richfaces 3.3.0.GA¿?
Regards, Chiara
Just out of curiosity, what makes you so sure the event is not firing?
Can you maybe tell us what's supposed to happen? What are you trying to do?
Maybe give us a bit more of the xhtml. What type of form are you in, etc.
I test this with firefox firebug plugin.(http://www.getfirebug.com/), it has a console wich shows every ajax call.
Event fired steps:
Event NO fired steps:
I need two nested combobox, when I select the value of the first combobox, the second is fill with the velues depending on the firs selection:
Here are two nested combobox:
<h:form id="formId"> <s:decorate id="institutionField" template="layout/edit.xhtml"> <ui:define name="label">Institution:</ui:define> <rich:comboBox value="#{bean.institution}" suggestionValues="#{institutionConverter.findAll()}" immediate="true"> <a:support event="onchange" reRender="contactinstitutionField" bypassUpdates="false" ajaxSingle="true"/> </rich:comboBox> </s:decorate> <s:decorate id="contactinstitutionField" template="layout/edit.xhtml"> <ui:define name="label">Sender:</ui:define> <rich:comboBox value="#{copiaNotaSalienteHome.instance.destinatario}" suggestionValues="#{contactinstitutionConverter.findAll(bean.institution)}" immediate="true"/> <a:support event="onblur" reRender="contactinstitutionField" bypassUpdates="true" ajaxSingle="true"/> </s:decorate> </h:form>regards,
I test this with firefox firebug plugin.(http://www.getfirebug.com/), it has a console wich shows every ajax call.
Event fired steps:
Event NO fired steps:
I need two nested combobox, when I select the value of the first combobox, the second is fill with the velues depending on the firs selection:
Here is the xhtml:
<h:form id="formId"> <s:decorate id="institutionField" template="layout/edit.xhtml"> <ui:define name="label">Institution:</ui:define> <rich:comboBox value="#{bean.institution}" suggestionValues="#{institutionBean.findAll()}" immediate="true"> <a:support event="onchange" reRender="contactinstitutionField" bypassUpdates="false" ajaxSingle="true"/> </rich:comboBox> </s:decorate> <s:decorate id="contactinstitutionField" template="layout/edit.xhtml"> <ui:define name="label">Sender:</ui:define> <rich:comboBox value="#{bean.sender}" suggestionValues="#{contactinstitutionBean.findAll(bean.institution)}" immediate="true"/> </s:decorate> </h:form>regards, Chiara
Hello Chiara,
Can you give us source code of institutionConverter class?