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

b:SelectOneMenu Converter #480

Closed
bernardomk opened this issue Jul 29, 2016 · 3 comments
Closed

b:SelectOneMenu Converter #480

bernardomk opened this issue Jul 29, 2016 · 3 comments
Assignees
Milestone

Comments

@bernardomk
Copy link

Hi,

I have a SelectOneMenu with filled with a Collection using f:selectItems. I added a single f:selectItem to have a message: "Please Select One" as this is gonna be a master / detail cascade.

The problem is that it is passing a String or Integer or whatever and I have not been able to set a converter to the b:SelectOneMenu.

Is this a bug or am I doing something wrong?

Thanks in advance!

@stephanrauh
Copy link
Collaborator

Your bug might be solved by the pull request I've accepted yesterday. I didn't test it yet as thoroughly as I wanted to, but the first impression is positive. Do you want to give it a try yourself? Grab BootsFaces-0.9.2-SNAPSHOT from Maven Central (see #369 on how to get it).

@stephanrauh stephanrauh added this to the v1.0.0 milestone Jul 29, 2016
@stephanrauh stephanrauh self-assigned this Jul 29, 2016
@bernardomk
Copy link
Author

bernardomk commented Jul 30, 2016

Hey,

Don't think it's a bug, look:

<f:selectItem itemLabel="Select One" itemValue="" noSelectionOption="true" />

Setting noSelectionOption to true solved the problem! Still no converter needed!

@stephanrauh
Copy link
Collaborator

I've used both f:selectItem and f:selectItems in a single radio button (see http://www3.bootsfaces.net/Showcase/forms/RadioButton.jsf). That's a different component, but it uses the same method to collect the selectItems, so this should also work with comboboxes. However, I didn't try converters yet.

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

2 participants