Package com.esri.gpt.framework.jsf

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


* @return the string
*/
protected String readRow(IFeedRecord record) {
  StringBuffer row = new StringBuffer();
  MessageBroker mBrok = this.getMessageBroker();
  String contentType = mBrok.retrieveMessage(
      "catalog.search.filterContentTypes." +
      record.getContentType());
  String resourceUrl = record.getResourceUrl();
  String webSite = record.getResourceLinks().findUrlByTag(ResourceLink.TAG_WEBSITE);
  if(!record.getContentType().toLowerCase().equals("livedata")) {
View Full Code Here


      ProtocolFactory pf = protocolFactories.get(key);
      if (pf instanceof AgpProtocolFactory && !AGSProcessorConfig.isAvailable()) {
        continue;
      }
      String resourceKey = protocolFactories.getResourceKey(key);
      SelectItem item = new SelectItem(key.toLowerCase(), msgBroker.retrieveMessage(resourceKey));
      protocols.add(item);
    }
    return protocols;
  }
View Full Code Here

  return Val.chkBool(getStringAttribute("verbose"), false);
}

private String getErrorMessage() {
  MessageBroker msg = new FacesContextBroker().extractMessageBroker();
  return Val.chkStr(getStringAttribute("errorMessage"), msg.retrieveMessage("catalog.search.liveData.errorMessage"));
}

private String getBasemapLabel() {
  MessageBroker msg = new FacesContextBroker().extractMessageBroker();
  return Val.chkStr(getStringAttribute("basemapLabel"), msg.retrieveMessage("catalog.search.liveData.basemapLabel"));
View Full Code Here

  return Val.chkStr(getStringAttribute("errorMessage"), msg.retrieveMessage("catalog.search.liveData.errorMessage"));
}

private String getBasemapLabel() {
  MessageBroker msg = new FacesContextBroker().extractMessageBroker();
  return Val.chkStr(getStringAttribute("basemapLabel"), msg.retrieveMessage("catalog.search.liveData.basemapLabel"));
}

private String getTooltips() {
  MessageBroker msg = new FacesContextBroker().extractMessageBroker();
  return Val.chkStr(getStringAttribute("tooltips"), msg.retrieveMessage("catalog.search.liveData.tooltips"));
View Full Code Here

  return Val.chkStr(getStringAttribute("basemapLabel"), msg.retrieveMessage("catalog.search.liveData.basemapLabel"));
}

private String getTooltips() {
  MessageBroker msg = new FacesContextBroker().extractMessageBroker();
  return Val.chkStr(getStringAttribute("tooltips"), msg.retrieveMessage("catalog.search.liveData.tooltips"));
}

private String getOnCreatePlaceholder() {
  MessageBroker msg = new FacesContextBroker().extractMessageBroker();
  return Val.chkStr(getStringAttribute("onCreatePlaceholder"), "");
View Full Code Here

              String key = schema.getKey();
              String label = null;
              if (schema.getLabel() != null) {
                String resKey = schema.getLabel().getResourceKey();
                if ((resKey != null) && (resKey.length() > 0)) {
                  label = msgBroker.retrieveMessage(resKey);
                }
              }
              if ((label == null) || (label.length() == 0)) {
                label = key;
              }
View Full Code Here

      StringBuilder sb = new StringBuilder();
      sb.append("{\"i18n\": {");
      int n = 0;
      if ((aKeys != null) && (aKeys.length > 0)) {
        for (String sKey: aKeys) {
          String sValue = msgBroker.retrieveMessage(sKey);
          n++;
          if (n > 1) sb.append(",");
          sb.append("\r\n\t");
          sb.append("\"").append(Val.escapeStrForJson(sKey)).append("\": ");
          sb.append("\"").append(Val.escapeStrForJson(sValue)).append("\"");
View Full Code Here

  protected String lookupI18N(GxeContext context,
                              String i18nKey,
                              XmlNode xmlNode,
                              String originalValue) {
    MessageBroker msgBroker = context.getMessageBroker();
    String rVal = Val.chkStr(msgBroker.retrieveMessage(i18nKey));
    if (rVal.length() > 0) {
      if (rVal.startsWith("??")) {
        return null;
      } else {
        //return rVal.toUpperCase();
View Full Code Here

      String sKey = schema.getKey();
      String sLabel = schema.getKey();
      if (schema.getLabel() != null) {
        String sResKey = schema.getLabel().getResourceKey();
        if (sResKey.length() > 0) {
          sLabel = msgBroker.retrieveMessage(sResKey);
        }
      }
      list.add(new SelectItem(sKey,sLabel));
    }
  }
View Full Code Here

            params1.put("id", params.get(key1));
          } else if (key1.toLowerCase().equals(("labelresourcekey"))) {
            MessageBroker messageBroker = new MessageBroker();
            messageBroker.setBundleBaseName("gpt.resources.gpt");
            params1.put("name",
                messageBroker.retrieveMessage(params.get(key1)));
          }
        }
        if(allowExt || key.toLowerCase().equals("local"))
          _searchRepos.put(key, params1);
        break;
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.