Package com.esri.gpt.framework.jsf

Examples of com.esri.gpt.framework.jsf.FacesContextBroker


                                         MessageBroker msgBroker) {
    // TODO check for lang parameter
    if (msgBroker != null) {
      return msgBroker;
    } else {
      FacesContextBroker fcb = new FacesContextBroker(request,response);
      return fcb.extractMessageBroker();
    }
  }
View Full Code Here


    String sResponse = "";
   
    // 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

private ProcessingContext newProcessingContext(RequestContext requestContext) {
  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

public void execute(HttpServletRequest request, HttpServletResponse response,
    RequestContext context) throws Exception {
 
  LOG.finer("Handling rest query string=" + request.getQueryString());

  MessageBroker msgBroker = new FacesContextBroker(request, response)
      .extractMessageBroker();

  // parse the query
  RestQuery query = null;
  PrintWriter printWriter = null;
View Full Code Here

  protected void execute(HttpServletRequest request,
          HttpServletResponse response,
          RequestContext context)
          throws Exception {
    getLogger().finer("Handling rest query string=" + request.getQueryString());
    MessageBroker msgBroker = new FacesContextBroker(request, response).extractMessageBroker();

    // extra params
    Map<String, String> extraMap = new HashMap<String, String>();
    extraMap.put(PARAM_KEY_SHOW_THUMBNAIL,
            request.getParameter(PARAM_KEY_SHOW_THUMBNAIL));
View Full Code Here

                                      Object[] args) {
 
  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

@Override
public RequestContext getRequestContext() {
  if(super.getRequestContext() != null) {
    return super.getRequestContext();
  }
  FacesContextBroker broker = new FacesContextBroker();
  RequestContext requestContext = broker.extractRequestContext();
  return requestContext;
}
View Full Code Here

  try {
    // start view preparation phase
    RequestContext context = onPrepareViewStarted();
    HttpServletRequest request =
      new FacesContextBroker().extractHttpServletRequest();

    // get donwload config
    DownloadConfiguration cfg =
      com.esri.gpt.framework.context.RequestContext.extract(request).
      getApplicationConfiguration().getDownloadDataConfiguration();
View Full Code Here

* Gets all select items.
* @param itemInfos array of item infos
* @return array of select items
*/
private ArrayList<SelectItem> getAllSelectItems(ArrayList<ItemInfo> itemInfos) {
  MessageBroker mb = new FacesContextBroker().extractMessageBroker();
  ArrayList<SelectItem> selectItems = new ArrayList<SelectItem>();
  for (ItemInfo ii : itemInfos) {
    selectItems.add(
      new SelectItem(ii.getKey(), mb.retrieveMessage(ii.getResourceKey())));
  }
View Full Code Here

  int nPage;
  String sMsg;
  String sRecordsPerPageMsg;
  HtmlCommandLink cmdLink;
  HtmlOutputText outText;
  FacesContextBroker ctxBroker = new FacesContextBroker();
  FacesContext facesContext = ctxBroker.getFacesContext();
  MessageBroker msgBroker = ctxBroker.extractMessageBroker();
  String sKeyPfx = getResourceKeyPrefix();

  // check the cursor
  cursor.checkCurrentPage();
  int nStartPage = cursor.getStartPage();
View Full Code Here

TOP

Related Classes of com.esri.gpt.framework.jsf.FacesContextBroker

Copyright © 2018 www.massapicom. 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.