Skip to main content

Why does a valueChangeListener cause a commandButton to be clicked twice?

1 reply [Last post]
jtp51
Offline
Joined: 2003-10-25
Points: 0

I have a page with a backing bean in session scope. When I add a valueChangeListener to the page, the user has to click the commandButton twice to run the actionListener.

Why does adding a valueChangeListener cause a commandButton to be clicked twice in order to run the actionListener?

Is there a better way or a way to solve this?

Thanks,

--Todd

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Ryan Lubke

webtier@javadesktop.org wrote:
> I have a page with a backing bean in session scope. When I add a valueChangeListener to the page, the user has to click the commandButton twice to run the actionListener.
>
> Why does adding a valueChangeListener cause a commandButton to be clicked twice in order to run the actionListener?
>
> Is there a better way or a way to solve this?
>
> Thanks,
>
> --Todd
> [Message sent by forum member 'jtp51' (jtp51)]
>
> http://forums.java.net/jive/thread.jspa?messageID=295442
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
> For additional commands, e-mail: webtier-help@glassfish.dev.java.net
>
>
Can you send an example of the view you're having trouble with?

---------------------------------------------------------------------
To unsubscribe, e-mail: webtier-unsubscribe@glassfish.dev.java.net
For additional commands, e-mail: webtier-help@glassfish.dev.java.net