Skip to main content

Attach a JSF 2 AJAX Tag to a HtmlSelectManyCheckbox

2 replies [Last post]
dperriero
Offline
Joined: 2010-03-23

I've been trying to attach an AJAX tag to a selectManyCheckbox component and I am not having the best of luck.

Template:

Backing Bean:
public class TestController {
private HtmlSelectManyCheckbox testListInput;
private Integer count = 0;

public Integer getCount() {
return count;
}

public void updateFoo(AjaxBehaviorEvent e) {
count++;
}

public HtmlSelectManyCheckbox getTestListInput() {
return testListInput;
}

public void setTestListInput(HtmlSelectManyCheckbox i) {
this.testListInput = i;
}
...
}

When my html is rendered and I click on the check boxes they turn gray and don't stay selected or checked, but when I refresh the page they are selected. No AJAX behavior event occurs either when the checkboxes are clicked.

Thanks,
Derek

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
dperriero
Offline
Joined: 2010-03-23

To my dismay, this is a current bug within Mojarra 2.0.2.

The bug and related issue can be found at:
https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1533

Thanks,
Derek

rogerk
Offline
Joined: 2004-05-06

per this issue:

https://javaserverfaces.dev.java.net/issues/show_bug.cgi?id=1533

have you verified that it is working with the latest mojarra nightly build?