ICEfaces
  1. ICEfaces
  2. ICE-9611

ace:checkboxButton value is not updated on the server-side DOM

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 4.0.BETA
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      Windows, Jboss AS 5.1 (I know it doesn't support JSF 2.0 by default, but I make it work).
    • Workaround Exists:
      Yes
    • Workaround Description:
      Hide
      Add ace:ajax with render="@this" to the checkbox:
      <ace:ajax execute="@this" event="activate" render="@this"/>

      But if I don't need any form update depending on the checkbox state this gives an extra overhead.
      Show
      Add ace:ajax with render="@this" to the checkbox: <ace:ajax execute="@this" event="activate" render="@this"/> But if I don't need any form update depending on the checkbox state this gives an extra overhead.

      Description

      I have a form containing ace:checkboxButton:
      <ace:checkboxButton id="myFlag" binding="#{backBean.binding}" value="#{action.myFlag}"/>

      and a Clear button:
      <h:commandButton id="clearButton" action="#{backBean.clear}" value="Clear"/>

      in clear() function I set myFlag to false and reset the binding submitted value:
      myFlag = false;
      binding.setValue(null);
      binding.setSubmittedValue(null);
      binding.setLocalValueSet(false);
      binding.setValid(true);

      In the browser I check the checkbox and press the Clear button. I'm expecting, that the checkbox will be unchecked, but it's not.
      ice:selectBooleanCheckbox is unchecked as expected.

      I think the issue is in the DOMPartialViewContext.applyBrowserChanges() method, it updates all inputs with id's, but ace:checkboxButton has hidden input with no id.
      DOMPartialViewContext compares the old DOM and the new DOM, and in both of them the checkbox is unchecked, so DOMPartialViewContext doesn't genereate update for it.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Denis Utkin
          • Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: