ICEfaces
  1. ICEfaces
  2. ICE-5310

MenuBar rendered on page causes JavaScript call in action/actionListener to not be called

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.8.2-EE-GA
    • Fix Version/s: 1.8.3, 1.8.2-EE-GA_P02
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      If a menuBar is rendered on the page it blocks the JavascriptContext.addJavascriptCall() from executing in a backing bean action event. If this component(menuBar) is removed or not rendered then the call works fine. This affects the commandLink and commandButton components. Also it doesn't matter if the component calls an action method or an actionListener method.

        Activity

        Hide
        Adnan Durrani added a comment -

        It came across that its an application level issue. The javascript call should be terminated by a semi colon.

        JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), "alert('Hello!');");

        Show
        Adnan Durrani added a comment - It came across that its an application level issue. The javascript call should be terminated by a semi colon. JavascriptContext.addJavascriptCall(FacesContext.getCurrentInstance(), "alert('Hello!');");

          People

          • Assignee:
            Unassigned
            Reporter:
            Arran Mccullough
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: