Examples of extractMessageBroker()


Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

  try{
    dirContext.modifyAttributes(objectDN,operation,attributes);
  }catch(javax.naming.directory.InvalidAttributeValueException iave){
    LogUtil.getLogger().severe(iave.getMessage());
    FacesContextBroker contextBroker = new FacesContextBroker();
    MessageBroker msgBroker = contextBroker.extractMessageBroker();
    String errMsg = "javax.naming.directory.InvalidAttributeValueException";
    if(msgBroker != null){
      errMsg = msgBroker.getMessage("javax.naming.directory.InvalidAttributeValueException").getSummary();
    }
    throw new LdapException(errMsg);
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

      }
      if (key.length() > 0) {
       
        // set the message broker
        FacesContextBroker fcb = new FacesContextBroker(request,response);
        tocContext.setMessageBroker(fcb.extractMessageBroker());
       
        RequestContext requestCtx = fcb.extractRequestContext();
        // determine the XML file path
        String relativePath = "";
        TocCollection tocs = requestCtx.getCatalogConfiguration().getConfiguredTocs();
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

  private void appendLiveDataSection(UIComponent sectionsComponent) {
    FacesContextBroker broker = new FacesContextBroker();
    String contextPath = broker.extractHttpServletRequest().getContextPath();
    String imgOpen = contextPath + "/catalog/images/section_open.gif";
    String imgClosed = contextPath + "/catalog/images/section_closed.gif";
    String caption = broker.extractMessageBroker().retrieveMessage("catalog.search.viewMetadataDetails.liveData");

    String sScript =
      "<script>" +
      "function onCreatePlaceholder(node) {" +
      "node.innerHTML = \"<span class=\\\"section\\\">" +
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

     
      // ensure a message broker if required
      if (context.getOperation().getUIResources() != null) {
        if ((request != null) && (response != null)) {
          FacesContextBroker fcb = new FacesContextBroker(request,response);
          context.setMessageBroker(fcb.extractMessageBroker());
        }
      }
     
      // handle the operation
      handler.handle(context);
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

  HttpClientRequest httpClient = HttpClientRequest.newRequest();
  httpClient.setCredentialProvider(info.newCredentialProvider());
  ProcessingContext processingContext = new ProcessingContext(requestContext, publisher, httpClient, null, false);

  FacesContextBroker contextBroker = new FacesContextBroker();
  MessageBroker msgBroker = contextBroker.extractMessageBroker();
  processingContext.setMessageBroker(msgBroker);

  return processingContext;
}
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

      }
      String json = Val.chkStr(request.getParameter("errorsAsJson"));
      if (json.length()>0) {
        json = Val.escapeXmlForBrowser(json);
        FacesContextBroker fcb = new FacesContextBroker(request, response);
        MessageBroker msgBroker = fcb.extractMessageBroker();
       
        ArrayList<String> validationMessages = new ArrayList<String>();
        e.getValidationErrors().buildMessages(msgBroker, validationMessages, true);
       
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

    // TODO check for lang parameter
    if (msgBroker != null) {
      return msgBroker;
    } else {
      FacesContextBroker fcb = new FacesContextBroker(request,response);
      return fcb.extractMessageBroker();
    }
  }
 
  /**
   * Interrogates a schema based upon a posted XML document.
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

   
    // handle a request for an editor definition
    try {
      GxeContext gxeContext = new GxeContext();
      FacesContextBroker fcb = new FacesContextBroker(request,response);
      gxeContext.setMessageBroker(fcb.extractMessageBroker());
     
      GxeDefinition definition = null;
      String key = Val.chkStr(request.getParameter("key"));
      String loc = Val.chkStr(request.getParameter("loc"));
      if (key.length() > 0) {
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

  Publisher publisher = null;
  HttpClientRequest httpClient = HttpClientRequest.newRequest();
  ProcessingContext processingContext = new ProcessingContext(requestContext, publisher, httpClient, null, false);

  FacesContextBroker contextBroker = new FacesContextBroker();
  MessageBroker msgBroker = contextBroker.extractMessageBroker();
  processingContext.setMessageBroker(msgBroker);

  return processingContext;
}
View Full Code Here

Examples of com.esri.gpt.framework.jsf.FacesContextBroker.extractMessageBroker()

 
  String msg = Val.chkStr(propMsg);
  // checking if string could be a property match
  if(msg.matches("(\\p{Alnum}+[.])+\\p{Alnum}+")){
    FacesContextBroker fcsBroker = new FacesContextBroker();
    MessageBroker msgBroker = fcsBroker.extractMessageBroker();
    String tmp = msgBroker.retrieveMessage(msg, args);
    if(tmp.length() > 0) {
      msg = tmp;
    }
  } 
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.