2 Replies Latest reply: Jan 30, 2013 10:51 PM by Lovin_JV_941794 RSS

    ADF Mobile alert and message

      can anyone tell me how can i alert validation messages or confirm and any other messages from my java classes in application?????

      Thanks in advance,
        • 1. Re: ADF Mobile alert and message
          Frank Nimphius-Oracle

          my research comes to the conclusion that unfortunately there is no programmatic way to open a popup. The only way to open a popup is via the UI using a showPopupBehavior component. This appears t be planned for a next version of ADF Mobile

          • 2. Re: ADF Mobile alert and message
            JoptionPane is used for default pop up message box but its very slow.
            so use FacesMessage for adf.

            public static void addFacesErrorMessage(String msg) {
            FacesContext ctx = FacesContext.getCurrentInstance();
            FacesMessage fm =new FacesMessage(FacesMessage.SEVERITY_ERROR, msg, "");
            ctx.addMessage(getFacesContext().getViewRoot().getId(), fm);