myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Kienenberger <>
Subject Re: SelectManyListBox not working with aj4
Date Fri, 11 Jun 2010 18:52:56 GMT
I think the problem is that your valueChangeListener is not getting
called as it's not an ajax call.   Can you try changing it to an
actionListener and putting the actionListener tag on your a4j:support?

Also, I don't think you need to have immediate specified if you are
using ajaxSingle="true"

Other than that, what you are doing looks similar to an
h:selectOneListbox I have.

On Fri, Jun 11, 2010 at 2:43 PM, sudeivas <> wrote:
> Hi,
>  below is my JSF code,
> <h:column>
> <h:selectManyListbox size="3" rendered="true" id="serviceTypes"
> immediate="true" valueChangeListener="#{hostInfoBean.changeServiceTypes}">
>                <f:selectItems value="#{hostInfoBean.serviceTypeItems}" />
>                <a4j:support event="onchange"
> reRender="hostInfo:gateKeeperendPointReference" ajaxSingle="true"/>
> </h:selectManyListbox>
> </h:column>
> instead of form.submit(), i am using a4j to listen to the 'onchange' event.
> I am not getting any errors during the execution of the program. But when
> 'onchange' event occurs, its not calling the appropriate bean method.
> Instead I am getting an warning in the console,
> WARNING: There are some unhandled FacesMessages, this means not every
> FacesMessage had a chance to be rendered.
> These unhandled FacesMessages are:
> - hostInfo:serviceTypes: Validation Error: Value is not valid
> I am not sure may be because of this it's not calling the bean method.
> Please advise.
> regards,
> Suresh
> --
> View this message in context:
> Sent from the MyFaces - Users mailing list archive at

View raw message