ICEfaces
  1. ICEfaces
  2. ICE-8243

Error in method "evaluate" of org.icefaces.ace.model.table.RowStateMap.EditingPredicate

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1.0.BETA2
    • Fix Version/s: None
    • Component/s: ACE-Components
    • Labels:
      None
    • Environment:
      All
    • Workaround Exists:
      Yes
    • Workaround Description:
      Extend RowStateMap and overwrite the method.

      Description

      In method (of RowStateMap):

      private class EditingPredicate implements Predicate {
              String id;
              
              public EditingPredicate(UIComponent editor) {
                  id = editor.getId();
              }

              public boolean evaluate(Object object) {
                  if (object instanceof Entry)
                      if (((RowState)((Entry)object).getValue()).activeCellEditorIds.contains(object))
                          return true;

                  return false;
              }
          }

      the parameter "object" in if (((RowState)((Entry)object).getValue()).activeCellEditorIds.contains(object))
      must be "id"

      The right code should be:

       if (((RowState)((Entry)object).getValue()).activeCellEditorIds.contains(id))

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            Karina Alvarez
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: