Package com.esri.gpt.framework.jsf

Examples of com.esri.gpt.framework.jsf.MessageBroker.retrieveMessage()


    }

    // next and last pages
    if (cursor.getHasNextPage()) {
      nPage = cursor.getNextPage();
      sMsg = msgBroker.retrieveMessage(sKeyPfx + "next");
      cmdLink = makePageLink(facesContext, nPage, sMsg, isBottom, ++linkCount);
      navigationPanelGroup.getChildren().add(cmdLink);
      if (nEndPage != nTotalPageCount) {
        sMsg = msgBroker.retrieveMessage(sKeyPfx + "last");
        cmdLink = makePageLink(facesContext, nTotalPageCount, sMsg, isBottom, ++linkCount);
View Full Code Here


      nPage = cursor.getNextPage();
      sMsg = msgBroker.retrieveMessage(sKeyPfx + "next");
      cmdLink = makePageLink(facesContext, nPage, sMsg, isBottom, ++linkCount);
      navigationPanelGroup.getChildren().add(cmdLink);
      if (nEndPage != nTotalPageCount) {
        sMsg = msgBroker.retrieveMessage(sKeyPfx + "last");
        cmdLink = makePageLink(facesContext, nTotalPageCount, sMsg, isBottom, ++linkCount);
        navigationPanelGroup.getChildren().add(cmdLink);
      }
    }
  }
View Full Code Here

    Map<String, String> params = new TreeMap<String, String>();

    MessageBroker mb = PageContext.extractMessageBroker();
    for (Map.Entry<String, String> e : _paramToResourceMap.entrySet()) {
      String key = e.getKey();
      String value = mb.retrieveMessage(e.getValue());
      params.put(key, value);
    }

    return params;
  }
View Full Code Here

     
      // send mail with the new password
      String[] args = new String[2];
      args[0] = sUsername;
      args[1] = sPassword;
      String sSubject = msgBroker.retrieveMessage("identity.forgotPassword.email.subject");
      String sBody = msgBroker.retrieveMessage("identity.forgotPassword.email.body",args);
      ApplicationConfiguration appConfig = context.getApplicationConfiguration();
      MailRequest mailReq = appConfig.getMailConfiguration().newOutboundRequest();
      mailReq.setToAddress(sEmail);
      mailReq.setSubject(sSubject);
View Full Code Here

      // send mail with the new password
      String[] args = new String[2];
      args[0] = sUsername;
      args[1] = sPassword;
      String sSubject = msgBroker.retrieveMessage("identity.forgotPassword.email.subject");
      String sBody = msgBroker.retrieveMessage("identity.forgotPassword.email.body",args);
      ApplicationConfiguration appConfig = context.getApplicationConfiguration();
      MailRequest mailReq = appConfig.getMailConfiguration().newOutboundRequest();
      mailReq.setToAddress(sEmail);
      mailReq.setSubject(sSubject);
      mailReq.setBody(sBody);
View Full Code Here

   
    // make the label
    String sLabel = sKey;
    String sResKey = code.getResourceKey();
    if (sResKey.length() > 0) {
      sLabel = msgBroker.retrieveMessage(sResKey);
    }
    HtmlOutputLabel outLabel = new HtmlOutputLabel();
    // even label has to have unique id (for GlassFish)
    outLabel.setId(sId+"label");
    outLabel.setFor(sId);
View Full Code Here

    // build the message subject and body
    String[] args = new String[3];
    args[0] = sSender;
    args[1] = sBody;
    args[2] = RequestContext.resolveBaseContextPath((HttpServletRequest) context.getServletRequest());
    String sSubject = msgBroker.retrieveMessage("identity.feedback.email.subject");
    sBody = msgBroker.retrieveMessage("identity.feedback.email.body",args);
   
    // send the message to the site
    MailRequest mailReq = appConfig.getMailConfiguration().newInboundRequest();
    mailReq.setFromAddress(sEmail);
View Full Code Here

    String[] args = new String[3];
    args[0] = sSender;
    args[1] = sBody;
    args[2] = RequestContext.resolveBaseContextPath((HttpServletRequest) context.getServletRequest());
    String sSubject = msgBroker.retrieveMessage("identity.feedback.email.subject");
    sBody = msgBroker.retrieveMessage("identity.feedback.email.body",args);
   
    // send the message to the site
    MailRequest mailReq = appConfig.getMailConfiguration().newInboundRequest();
    mailReq.setFromAddress(sEmail);
    mailReq.setSubject(sSubject);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.