-
1. Re: Comboxbox: read only behaviour
nbelaevski Jun 4, 2009 5:31 AM (in response to vrelits)Hi,
1) You can use JavaScript API to show list
2) Works ok for me -
2. Re: Comboxbox: read only behaviour
vrelits Jun 4, 2009 6:54 AM (in response to vrelits)Do u have an example of this. Would be very appreciated as I'm pretty new to Richfaces.
-
3. Re: Comboxbox: read only behaviour
vrelits Jun 4, 2009 7:15 AM (in response to vrelits)Never mind. Got it working. Thanks.
-
4. Re: Comboxbox: read only behaviour
vrelits Jun 4, 2009 7:22 AM (in response to vrelits)Well, almost got it working: Got:
<rich:comboBox value="#{lbopl_opkraevningcontroller.moraForm.searchejendomsnr}" enableManualInput="false" listWidth="300" width="300" onclick="$('moraFormId:moraFormEjendomsnrId').component.showList();" id="moraFormEjendomsnrId">
but now I don't get the drop down when I click on the DOWN ARROW box. -
5. Re: Comboxbox: read only behaviour
ilya_shaikovsky Jun 4, 2009 7:28 AM (in response to vrelits)try this
onclick="$('moraFormId:moraFormEjendomsnrId').component.showList();return false;"
-
6. Re: Comboxbox: read only behaviour
vrelits Jun 4, 2009 7:35 AM (in response to vrelits)Doesn't work. Still not getting drop-down on the down arrow.
-
7. Re: Comboxbox: read only behaviour
ilya_shaikovsky Jun 4, 2009 8:23 AM (in response to vrelits)This happens because after you clicking button - internal handler processed and opens the list and then your handler called and close the list(reverts its state).
https://jira.jboss.org/jira/browse/RF-7325 this ideally required to do this without workarounds.
currently I have workaround like this<rich:comboBox defaultLabel="Enter some value" enableManualInput="false" onclick="if (!#{rich:component('combo')}.comboList.visible()) {#{rich:component('combo')}.showList();}" id="combo">
-
8. Re: Comboxbox: read only behaviour
vrelits Jun 8, 2009 2:09 AM (in response to vrelits)Yes, that worked. However, it killed the toggle effect, but it is acceptable. I hope that u will work more on this case and also enable up/down arrows to select when input is disabled.
-
9. Re: Comboxbox: read only behaviour
vrelits Jun 8, 2009 3:14 AM (in response to vrelits)Oh, and by the way: Thanks for your help. The support here is outstanding.....