Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't throw event "blur" with b:selectMultiMenu #584

Closed
danysion opened this issue Dec 13, 2016 · 6 comments
Closed

Can't throw event "blur" with b:selectMultiMenu #584

danysion opened this issue Dec 13, 2016 · 6 comments
Assignees
Milestone

Comments

@danysion
Copy link

danysion commented Dec 13, 2016

Good morning, I am having problems with the component b:selectMultiMenu and ajax events.
I only need that when I lose focus ( onBlur event or onChange) throw a simple call of my bean method, but when I try the code this doesn't work.
I saw that b:selectMultiMenu dont have property "ajax" and "onBlur" and finally the property "onChange" dont call my method.
This is part of my code:

<b:selectMultiMenu id="version" enable-filtering="true"
						styleClass="versiones"
						nonSelectedText="#{gecohMsg['container.combo.select']}"
						value="#{Expedients.facadeTableSelect.listVats}"
						nSelectedText="Seleccionados" numberDisplayed="1"
						includeSelectAllOption="true"
						enableCaseInsensitiveFiltering="true" lang="es"
						disabled="#{Expedients.versiones}" onchange="ajax:Expedients.showSua()">
						<f:selectItems value="#{Expedients.multiComboVat}" var="multiVat"
							itemLabel="#{multiVat.value}" itemValue="#{multiVat.code}" />
					</b:selectMultiMenu>

Thanks for all.

@stephanrauh
Copy link
Collaborator

Fun fact: our documentation even says that AJAX is broken since BootsFaces 0.7. It's high time to change that!

@stephanrauh
Copy link
Collaborator

stephanrauh commented Dec 13, 2016

Obviously we've forgotten to implement AJAX support. Actually, AJAX support seems to be difficult. The underlying JavaScript widget only supports a few jQuery events. onblur is not among them.

  • onSelectAll
  • onDropdownShow
  • onDropdownHidden
  • onSelectAll
  • onChange
  • onDropdownHide
  • onDeselectAll
  • onDropdownShown
  • onInitialized

@stephanrauh
Copy link
Collaborator

The underlying JS widget doesn't support onblur, so we can't provide that, either. However, the events listed above should already be supported by the current developer snapshot. I've uploaded it to Maven Central a couple of minutes ago.

@stephanrauh
Copy link
Collaborator

stephanrauh commented Dec 14, 2016

To dos left:

  • testing
  • testing
  • testing

@stephanrauh
Copy link
Collaborator

I didn't test every event, but I've added and tested an example of AJAX with ondropdownhidden in our showcase.

@stephanrauh
Copy link
Collaborator

You can run a test using the BootsFaces-1.1.0-SNAPSHOT on Maven Central. See #369 on how to get it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants