-
Notifications
You must be signed in to change notification settings - Fork 101
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> Ajax response issue #900
Comments
My gut feeling tells me that's probably not a BootsFaces bug. In particular, the multiple selected options indicate your Category objects don't implement the equals method correctly (or something like that). I suggest you debug the method BTW, if I get you right, you expect the second combobox to show the empty default item after selecting a different item in the first combobox. However, I don't see why the second combobox should display something else. Is there some code you didn't show us? In particular, does For the sake of convenience, this is the method I suggested to debug: private boolean isSelected(FacesContext context, SelectOneMenu menu, Object value, Object itemValue,
Converter converter) {
if (itemValue == null && value == null) {
return true;
}
if (value != null) {
Object compareValue;
if (converter == null) {
compareValue = coerceToModelType(context, itemValue, value.getClass());
} else {
compareValue = itemValue;
if (compareValue instanceof String && !(value instanceof String)) {
compareValue = converter.getAsObject(context, menu, (String) compareValue);
}
}
if (value.equals(compareValue)) {
return true;
}
}
return false;
} |
You are right, there were small invisible character entered in equals method. Thanks. |
I suppose that means I can safely close the issue? |
View has three
<b:selectOneMenu>
componets.Each updates next one's
options
through Ajax, initially it works as expected and i can chooseoptions
as normally. issue raises if i want to change first or secondoption
, i.e., if i change first#pc
option
, second one#bc
value is not settingdefault
.Browser's response shows there are more than one
options
having attributeselected="true"
in ajax response (file attached issue_selectone.txt).
The text was updated successfully, but these errors were encountered: