This content has been marked as final.
Show 5 replies
-
1. Re: Combobox & onselect / onchange action
ilya_shaikovsky Jun 26, 2009 8:14 AM (in response to pbosman)onchange - is a client side event handler and you seems just need a4j:support.
check basic samples. -
2. Re: Combobox & onselect / onchange action
pbosman Jun 26, 2009 8:19 AM (in response to pbosman)"ilya_shaikovsky" wrote:
onchange - is a client side event handler and you seems just need a4j:support.
check basic samples.
Hey Ilya,
thanks for really fast response! Much appreciated!
Haven't checked the 'basic examples' you mentioned to be honest (you do mean anything I find using google I hope)
But I did try to add the <a4j:support ... /> thingie though:... <rich:comboBox directInputSuggestions="true" id="addSkillList" defaultLabel="Selecteer Vaardigheid..." value="#{sessionManager.toBeAddedVaardigheid}" required="true" width="250" onchange="#{sessionManager.toBeAddedVaardigheid}"> <a4j:support action="onchange" ajaxSingle="true"/> <f:selectItems value="#{sessionManager.availableVaardighedenTable}" /> </rich:comboBox> ...
Yet this doesn't resolve anything.
Care to elaborate please?
Thanks in advance!
regards,
Pieter -
3. Re: Combobox & onselect / onchange action
stefanorg Jun 26, 2009 9:48 AM (in response to pbosman)Hi,
i think you have to replace:
<a4j:support action="onchange" ajaxSingle="true"/>
with
<a4j:support event="onselect" ajaxSingle="true"/>
Sure you can find usefull this page:
http://livedemo.exadel.com/richfaces-demo/richfaces/support.jsf?tab=selects&cid=818128"pbosman" wrote:
"ilya_shaikovsky" wrote:
onchange - is a client side event handler and you seems just need a4j:support.
check basic samples.
Hey Ilya,
thanks for really fast response! Much appreciated!
Haven't checked the 'basic examples' you mentioned to be honest (you do mean anything I find using google I hope)
But I did try to add the <a4j:support ... /> thingie though:... <rich:comboBox directInputSuggestions="true" id="addSkillList" defaultLabel="Selecteer Vaardigheid..." value="#{sessionManager.toBeAddedVaardigheid}" required="true" width="250" onchange="#{sessionManager.toBeAddedVaardigheid}"> <a4j:support action="onchange" ajaxSingle="true"/> <f:selectItems value="#{sessionManager.availableVaardighedenTable}" /> </rich:comboBox> ...
Yet this doesn't resolve anything.
Care to elaborate please?
Thanks in advance!
regards,
Pieter -
4. Re: Combobox & onselect / onchange action
pbosman Jun 26, 2009 10:29 AM (in response to pbosman)"stefanorg" wrote:
Hi,
i think you have to replace:
<a4j:support action="onchange" ajaxSingle="true"/>
with
<a4j:support event="onselect" ajaxSingle="true"/>
Sure you can find usefull this page:
http://livedemo.exadel.com/richfaces-demo/richfaces/support.jsf?tab=selects&cid=818128
Gawd... 340 times I've read my code and 340 times I missed it completely... action instead of event...
Thanks a million Stefano! -
5. Re: Combobox & onselect / onchange action
stefanorg Jun 26, 2009 7:23 PM (in response to pbosman)Your welcome :D
"pbosman" wrote:
Gawd... 340 times I've read my code and 340 times I missed it completely... action instead of event...
Thanks a million Stefano!