Hi all,
I've got a problem with richfaces select input:
<rich:select id="mySelect" immediate="true" defaultLabel="#{myBean.currentType}" enableManualInput="false" value="#{myBean.currentType}" valueChangeListener="#{myBean.listener()}"> <f:selectItems value="#{myBean.typesList}" /> <a4j:ajax immediate="true" event="selectitem" render="sth_else, mySelect" execute="@this" limitRender="true" /> </rich:select>
it's all working here, but when accidentally user makes actions like
(sorry, i am not sure how to explain this so i'll try to do it with steps)
-> when u click on current label many times, u select one part or a whole [common use]
->clicking more should repeat this -unselected/part/whole and again
->here is a problem - by doing this fast u can clear the field (even with enableManualInput is false)
it generates a problem ->now my value got nothing, currentType in my list is null then and some actions [of course] goes wrong.
I can check if currentType or event.getNewValue() is null but is there any way to solve this without tricks or workarounds?
Any help will be appreciated.
Thanks,
Radek