Examples of InternetResource


Examples of org.ajax4jsf.resource.InternetResource

   * @throws FacesException
   */
  public void writeLog(FacesContext context, PrintWriter out) throws FacesException {
    String logname = context.getExternalContext().getInitParameter(LOGFILE_PARAM);
    if (null != logname) {
      InternetResource logResource = InternetResourceBuilder.getInstance().createResource(this,logname);
      out.print("<h2 onclick=\"toggle('log')\" class=\"a4j_debug\">");
      writeToggleMark(out, "log");
      out
          .println("Faces log: </h2><div id='log' style='display: none;'  class='log a4j_debug'>");
      out.print("<iframe name='log' class='log' src='"+logResource.getUri(context,null)+"'><a href='src='"+logResource.getUri(context,null)+"'>Faces log file </a> </iframe>");
      out.println("</div>");
    }
  }
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.