Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3419

AjaxBehavior.isImmediateSet(): information allows an associated client behavior renderer to fall back on the parent component's immediate status

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.5, 2.0.11
    • Fix Version/s: 2.0.13, 2.1.7
    • Component/s: JSR-314
    • Labels:
      None
    • Environment:
      myfaces trunk

      Description

      1) JavaDoc AjaxBehavior.isImmediateSet():
      Tests whether the immediate attribute is specified. Returns true if the immediate attribute is specified, either as a locally set property or as a value expression. This information allows an associated client behavior renderer to fall back on the parent component's immediate status when immediate is not explicitly specified on the AjaxBehavior.

      myfaces don't implement this feature in HtmlAjaxBehaviorRenderer

      2) isComponentImmediate use introspection for evaluation of isImmediate - that is unefficient (Contains code comment: Currently implemented by ActionSource and EditableValueHolder but we cannot be sure about both interfaces so lets make introspection calls here - but what means "we cannot be sure about both interfaces" ?)

        Activity

        Hide
        lu4242 Leonardo Uribe added a comment -

        I just fix isImmediateSet() logic to check for the value stored on map or if a ValueExpression is set. Thanks to Martin Koci for provide this patch.

        Show
        lu4242 Leonardo Uribe added a comment - I just fix isImmediateSet() logic to check for the value stored on map or if a ValueExpression is set. Thanks to Martin Koci for provide this patch.

          People

          • Assignee:
            markoc50 Martin Kočí
            Reporter:
            markoc50 Martin Kočí
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development