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> bug with onchange event #203

Closed
PereBG opened this issue Nov 7, 2015 · 3 comments
Closed

<b:selectOneMenu> bug with onchange event #203

PereBG opened this issue Nov 7, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@PereBG
Copy link

PereBG commented Nov 7, 2015

The event onchange is not applied to the rendered component. In the following example another event, for example, onblur is rendered correctly

<b:selectOneMenu value="#{mybean.idMatchDay}" id="matchDays"  onblur="generate();"> 
    <f:selectItems value="#{mybean.matchDays}" var="matchDayVar" 
    itemValue="#{matchDayVar.id}" itemLabel="#{matchDayVar.nom}" />
</b:selectOneMenu>
<select onblur="generate();" class="form-control" name="userPredictionForm:matchDays" id="userPredictionForm:matchDays">
...
</select>

Otherwise with onchange the event is not rendered in the component

<b:selectOneMenu value="#{mybean.idMatchDay}" id="matchDays" onchange="generate();">
    <f:selectItems value="#{mybean.matchDays}" var="matchDayVar" 
    itemValue="#{matchDayVar.id}"  itemLabel="#{matchDayVar.nom}" /> 
</b:selectOneMenu>
<select class="form-control" name="userPredictionForm:matchDays" id="userPredictionForm:matchDays">
...
</select>
@stephanrauh
Copy link
Collaborator

Would you mind to have a look at version 0.8.0? Currently, it's only a developer preview that's available at the Snapshot directory of Maven Central (see #151 on how to get it).

The AJAX demo at http://bootsfaces.net/Staging/forms/ajax.jsf show the blur event, so I'm positive your bug has already been solved. But still, please report back.

@stephanrauh stephanrauh added the bug label Nov 7, 2015
@stephanrauh stephanrauh modified the milestones: v0.8.0, v0.9.0 Nov 7, 2015
@stephanrauh stephanrauh self-assigned this Nov 7, 2015
@PereBG
Copy link
Author

PereBG commented Nov 8, 2015

Hi,
I've tested in version 0.8 and the bug is fixed.
Thanks for your reply.

@stephanrauh
Copy link
Collaborator

Great, thanks!

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

No branches or pull requests

2 participants