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

    ADF Mobile alert and message

    945552
      hi,
      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
          Hi,

          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

          Frank
          • 2. Re: ADF Mobile alert and message
            Lovin_JV_941794
            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);
            }