-
1. Re: Problem with reRender in dataTable
mdmaurer Jun 8, 2007 10:41 AM (in response to hasc)I am having a very similar problem with checkboxes in a datatable. Each row has a checkbox in it, and when I check the "Toggle All" checkbox (not in the datatable) I want it to toggle the checkbox value on every row. It does change the values in the backing bean, but I can't get it to visually reRender the checkboxes in the table rows.
-
2. Re: Problem with reRender in dataTable
hasc Jun 8, 2007 11:59 AM (in response to hasc)can you also verify that the boolean method is executed?
-
3. Re: Problem with reRender in dataTable
hasc Jun 9, 2007 9:31 AM (in response to hasc)I also tried it with the ajax4jsf1.1.1 release without success.
It would be great if someone from the developing team could comfirm if this is a bug in the release or a mistake in my/our implementation.
the problem is the following:
reRender a component within a row of a dataTable doesnt work.
In my case i want to disable or enable an inputText field depending on an onchange event executed by another component in the same row.
the isDisabled() method of the object is executet whenever the onchange event occurs, but the component doest seem to be rerenderd.
when i reRender the whole dataTable it works.
thanks and regards
hasc -
4. Re: Problem with reRender in dataTable
hasc Jun 9, 2007 10:06 AM (in response to hasc)a little more research did help.
http://livedemo.exadel.com/a4j-repeat-rerender/
so the code looks like that now (and works):<h:selectOneRadio id="engineType" value="#{allocatedArea.engineType}"> <s:convertEnum/> <s:enumItem enumValue="NONE" label=""/> <s:enumItem enumValue="EXHAUST" label=""/> <a4j:support event="onchange" reRender="thisshouldbereRendered"> <a4j:ajaxListener type="org.ajax4jsf.ajax.ForceRender"/> </a4j:support> </h:selectOneRadio>
i had to remove the region tags around the selectOneRadio, because it threw and exception when i changed the value more than one time.