-
1. Re: RF4.1 rich:select and valueChangeListener issue
undermanager Dec 28, 2011 12:34 AM (in response to undermanager)UPDATE: FYI - By adapting the work-around given in this JIRA ticket...
https://issues.jboss.org/browse/RF-11617
...I was able to get the required functionality.
-
2. Re: RF4.1 rich:select and valueChangeListener issue
kh.ramana Dec 28, 2011 2:49 AM (in response to undermanager)Instead of using event="change" use the event as "selectItem". It will work fine without any isses.
<a4j:ajax event="selectItem" render="target" execute="@this" />
The problem for event="change" is the focus of the pointer is on the selected field only. once u click on the outside the focus has been changed the event is firing.
So u can use the event as "selectItem" to full fill ur requirement.
Or u can go for h:selectOneMenu with event="valueChange".
-
3. Re: RF4.1 rich:select and valueChangeListener issue
pvito Dec 28, 2011 3:09 AM (in response to kh.ramana)Hi, undermanager
Try this solution:
<a4j:ajax event="valueChange" render="target" execute="@this" />
Regards, Vitaliy
-
4. Re: RF4.1 rich:select and valueChangeListener issue
undermanager Dec 28, 2011 1:58 PM (in response to undermanager)Thank you @Venkataramana and @Vitaliy. In the end, I followed @Venkataramana's advice and reverted from rich:select back to h:selectOneMenu, with an ajax event of "valueChange". That worked.
I was not able to apply "valueChange" to rich:select. It threw a tag library error at run time.
I'm still curious, for the other issue, why NetBeans gives an IDE warning if I use "valueChangeListener" in rich:select.