-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I've already posted a bug here about the difference in behaviour between FF and IE when you use a bandbox - I can sort of overcome that with programming (detecting which browser) but I now come up against a really annoying problem that in a "real world" application annoys users -
The problem is, a user cannot select a listbox item if it has already been selected.
Why would they want to you ask? Well as an example, they open the dropdown by mistake. There are many other reasons aswell.
The user has to close the window by navigating away or clicking the button - all non-intuitive and not their normal behaviour.
Well as an example, they open the dropdown by mistake
Are they dropping the list down with the down arrow button? Why can't they just click it again to close it?
They can do that but it is not intuitive - they are not all computer wiskids like me and you (:-) - this is an actual complain from "real" users I'm dealing with.
"normal" browser select drop downs DO ALLOW selection of the already selected item - the bandbox/listbox behaviour is not the same.
Think also for example a created/dynamic list - enter "B" and all items with beginning "B" are shown (say 3 items). User selects one (the only one) beginning "BE" - a few mins later user enter "BE" again (don't ask why) - this time only one item is shown (the one beginning "BE") - users thinks great, tries to select it - can't of course. Then has to realise it is already selected and click the arrow.
I'm not saying it is not possible - just that it is not intuitive or the same as normal select drop downs.
I can attempt to program around it. I can attempt to change the user interface. My point is, I don't think we should have to. There should be an option on the bandbox/listbox to allow select of already selected item.
But perhaps that is simply my "opinion" and I'm being too fussy/helpful on behalf of my users.
caclark, by the way your response was the same as mine originally (and of most other computer people I talked to), so I'm not criticising you. Just that after talking to users, I came to the opinion that they were right and we were wrong.
Perhaps what is required here (to keep compatibility with existing applications) is a "clickOnSelected="true/false" (that defaults to false) on the ZUL.
Listbox selection would (if clickOnSelected="true") be consistent with existing HTML selectbox behaviour.
Have you tried register "onClick" on the listitem, rather than "onSelect" on Listbox?
I'm not sure, but maybe this will solve the problem.
Thanks Iantsai,
In fact that is what I do now. I don't use onSelect at all. Do things via onChanging, onOpen, onClose and (as you say) onClick.
We shouldn't have to go thru hoops to work around features but sometimes it is the quickest way.
Only thing I would mention is if you use onClick, the paging box also generates a click, so you have to work around this as well if you use mold="paging".
In the end I got it all working. On select is 9and should be) the obvious way but if it doesn't work, we have to work around it.
Asked: 2010-10-04 08:20:40 +0800
Seen: 372 times
Last updated: Oct 11 '10