I found some other advice that I tried. If adding a <a4j:region> around each check box element I get the effect that I want
I think the documentation should state this. (Or make ajaxSingle do what you expect it to do - submit only a single value).
I used this form in combination with a rich:modalPanel which led to more confusion, because there the documentation says something like ... in order to submit you must have a form in your panel... - the effect of adding a second form is quite confusing - things are cleared, and it is not behaving as you would expect (unless you are an expert I guess).
Anyway - to help others searching for a solution to this - here is my working example:
Ooops... all those "ahaxSingle" were obviously wrong...
But I was wrong - that example does not work at all. It always sets the boolean values to FALSE !!!
(...trying something else...)
about to give up - It works fine if it is not in a modalPanel.
When in a modal panel - I can get it to set the values to false (but not to true even if checkboxes flip) if the modalPanel does not have a form inside it, or to not set values at all (but still change checkboxes) if it has a form inside (as documentation states is needed for correct operation on IE).
I am using FF, and get the same behavior in IE.
Both richfaces and ajax4jsf are May 01 snapshots
modal panel should always have an own form. It is true for both - FF and IE.
I don't understand what you mean. There is only one form in the example !
The form must be INSIDE the rich:modalPanel
Thanks Sergey, with only a single form inside the ModalPanel my code works.
I think the documentation should be changed. The section for modalPanel has examples that has a form around (outside) the modalPanel. This is misleading.
It should state that the form should be inside and that the entire construct in turn should not be nested inside an outer form (which also does not work).
3.0.0 does not required the form inside. 3.0.1 does.
What the example you mean?
Here for instance: http://labs.jboss.com/file-access/default/members/jbossrichfaces/freezone/docs/devguide/index.html
It only says "3.0" (something like 3.0.1 is not supposed to break the API right :)
Look at "Detail of Usage" for Modal panel. The code has the form outside of the modalPanel.
Ok, you mean the documentation, not examples. The documentation must be corrected. It takes time and resources. So, I cannot guaranty the documentation text will updated instantly.
Hi, I understand that documentation can not be updated instantly - no problem.
What is the best way I can help?
Here is an attempt to write a text that would be helpful in the documentation:
"In versions > 3.0.0 - the <rich:modalPanel> should no longer be contained in a form. A form should instead be placed inside the modal panel if submits are wanted of input elements in the modalPanel. No form is required if you do not need submits (ajax or regular)."
Yes, you are correct.