Richfaces SuggestionBox as a combobox doesn't disappear - combobox

I am using Richfaces suggestionBox as a combobox. You can see this usage in the second example of livedemo: http://livedemo.exadel.com/richfaces-demo/richfaces/suggestionBox.jsf?c=suggestionBox
The problem is that if I double click on the arrow icon, the suggestion box will not disappear after that. In fact, we just need to repeatedly click on the icon, the issue will occurs.
Thanks!

A work-around here:
http://community.jboss.org/thread/164345?tstart=0

Related

uib-typeahead dropdown doesn't disappear when focus shifts?

I've got a dropdown in this spreadsheet-like UI which provides a list of names as possible valid entries for the cell. When I tab or return out of the cell, it disappears as it should, but when I click away, to a different cell, the dropdown list isn't dismissed. Any thoughts on how to get that to work? (Theres a lot going on in the code, including ng-keydown and ng-blur directives, too involved to show here, but any pointers what to look for would be appreciated.)
Here are some pictures:
Works properly as I start typing -- but when I click to another cell:
Drop down still remains...
Found the problem, there was an 'event.preventDefault' in the blur event in certain circumstances which is responsible for the box not dismissing.

Custom OSD Keyboard suggestion

I tryed this example with two type of fields with style MaterialDesignFloatingHintTextBox and MaterialDesignFloatingHintPasswordBox, but I noticed that when the event get is triggered the popup is showed correctly but when I go to the popup to press one of the button, the lost focus event of the text field is triggered and the popup is closed :/
My question is that do you know some solutions? Or do you know some osd keyboard that works with the materialdesignxamltoolkit?
Finally I solved the problem:
is not a problem of user controls or xamltoolkit, but only a focus problem, so setting property Focusable = false in the button and other controls in the old keyboard works very well.
I hope that this post can be useful to someone that have my same problem.
Cheers
Franco

ui.bootstrap.dropdown keeps focus when other controls are clicked

I am trying to use Angular UI's ui.bootstrap.dropdown directive where I am facing a problem. After I cilck on the caret of the dropdown and then click on anywhere in the body, then if I try to click on a text field the text field immediately looses focus and the focus goes back to the caret of the dropdown button. I am however unable to produce this behavior in a plunker. But this behavior can be produced in the Angular UI demo page. To produce this behavior -
goto https://angular-ui.github.io/bootstrap/#/dropdown
click on one of the caret button to bring up the menu
click anywhere on the body to dismiss the menu
scroll up to datepicker popup demo section
try to place cursor in one of the text field
the text field will immediately loose focus and the page will scroll down to the dropdown button caret which was initially clicked.
I am unsure on how to stop this from happening. Any help would be highly appreciated.
Update
It seems this behavior only exists in version 2.3.1. If I use 2.3.0 this doesn't happen. Here is a plunker which produces the same behavior - http://plnkr.co/edit/c4EGyxQD1vbksFWjnIGb
Update
This is a bug in version 2.3.1 and has been raised in AngularUI Github.
Links to the issues given for reference -
https://github.com/angular-ui/bootstrap/issues/6364
https://github.com/angular-ui/bootstrap/issues/6372
This bug has been fixed in version 2.3.2

Is it possible to prevent userclick on a deactivated window but allow tooltips?

I have two windows open at a time, Suppose I click one button on a deactivated(non focused) window, I dont want the code behind the button to work, unless the user click the button again. At the same time, I want to show the tooltip when the user place the cursor on it.
you can use following property to show tool tips on disabled state
ToolTipService.ShowOnDisabled="True"
I put IsHitTestVisible = false in the grid of the window where I want the above behaviour and I get the expected behaviour
Thanks

Google like SearchBox in Silverlight

I've created a Google like SearchBox control in Silverlight. That means, as I type in the box, a DropDownListBox appears just below the SearchBox, showing all the items that match with the text I've typed in searchbox so far (i.e AutoComplete feature), exactly like this:
Now, I want to add a functionality to it : I want to make the DropDownListBox to disappear, as soon as user clicks outside it, or anywhere on the screen. I cannot handle MouseLeftButtonDown (or any such event) in other controls, to accomplish this, because users can click anywhere, including non-silverlight region. Can anybody suggest me what should I do to achieve this?
So my question basically is:
How to know if user has just clicked and the click event occurred outside a particular control?
Please note that AutoCompleteBox doesn't serve my purpose. So I cannot use it.
I have a feeling that working with LostFocus event can solve your problem.
I guess this question is a bit old, but i just stumble upon trying to do the same and finding a solution. This is what i did
Created a Border with All Margins -500, this will cover the full screen essentially.
On Click Behaviour of this Border, the dropdown section of SearchBox
is collapsed.
Adjust z-Index of Border just below the SearchBox and DropDown
section, so clicking on SearchBox or DropDown wouldn't close it.
Set Border Visibility Collapsed, and make it visible when DropDown is Visible.
I hope it helps someone who is looking for the similar problem.

Resources