-
Notifications
You must be signed in to change notification settings - Fork 102
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:radioButton doesn't change value in composite components (Version 1.0.2) #616
Comments
Hi, I tested it again and assert, that the bug only occurs when I put the b:radiobutton into a composite component! Then the radioButton doesn't change the value in Version 1.0.2! Outside a composite component it also works in Version 1.0.2! Here my code (radioButtonBean identical like showcase)! example.xhtml: <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:stala="http://xmlns.jcp.org/jsf/composite/component">
<body>
<h:form id="form">
<stala:editPanel />
</h:form>
</body>
</html> editPanel.xhtml: <ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:composite="http://xmlns.jcp.org/jsf/composite"
xmlns:b="http://bootsfaces.net/ui"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<composite:interface>
</composite:interface>
<composite:implementation>
<b:panel title="Survey" look="primary">
<p>What's your favorite band?</p>
<b:radiobutton value="#{benutzerController.favoriteBand}">
<f:selectItems value="#{benutzerController.bands}" />
<f:selectItem itemValue="" itemLabel="None of the above" />
</b:radiobutton>
<b:commandButton value="submit your choice"
action="#{benutzerController.submitBand}" look="primary"
update="@form" />
<b:message for="@form:@property(benutzerController.favoriteBand)" />
</b:panel>
</composite:implementation>
</ui:composition> Thanks in advance, |
The h:form is the party pooper! When I put the h:form into the composite component it works! Best regards, knoppT |
Might be an id resolution problem. Just a wild shot: try to add an id to |
I added id to stala:editPanel, but same result! |
Sigh... well, it was worth a try. I'll debug your code later. |
…ent and if the form is outside the custom component
Oh. It was something unexpected. The child elements of a custom component are not stored in the |
Hi,
I changed Bootsfaces Version from 1.0.1 to 1.0.2!
Now b:radioButton doesn't change value when submit @Form!
I use Bootsfaces showcase http://showcase.bootsfaces.net/forms/RadioButton.jsf
The setter favouriteband was not invoked!
In Version 1.0.1 it worked fine!
Thanks, best regards!
knoppT
The text was updated successfully, but these errors were encountered: