Package org.apache.wicket.behavior

Examples of org.apache.wicket.behavior.StringHeaderContributor$StringContributor


    javaScriptId = getMarkupId();

    String js = "\n<script type=\"text/javascript\">"
        + getJavaScriptComponentInitializationScript()
        + "\n</script>\n";
    add(new StringHeaderContributor(js));
  }
View Full Code Here


    if (enableMonthYearSelection())
    {
      response.renderCSSReference(new ResourceReference(YuiLib.class,
          "calendar/assets/wicket-calendar.css"));
      String idSelector = "#" + getEscapedComponentMarkupId() + "DpJs";
      new StringHeaderContributor("<style>" + idSelector + ".yui-calendar .calnavleft, "
          + idSelector + ".yui-calendar .calnavright {display: none;}</style>")
          .renderHead(response);
    }

    // variables for the initialization script
View Full Code Here

    add(JavascriptPackageResource.getHeaderContribution("http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"));
    StringBuilder jsonLink = new StringBuilder("<link href=\"");
    jsonLink.append(UserApplication.get().getServletContext().getContextPath());
    jsonLink = jsonLink.append("/simal-rest/allPeople/json\" rel=\"exhibit/data");
    jsonLink.append(" rel=\"exhibit/data\" />");
    add(new StringHeaderContributor(jsonLink.toString()));
  }
View Full Code Here

      RESTCommand cmd = RESTCommand.createGetPerson(person.getSimalID(),
          RESTCommand.TYPE_SIMAL, RESTCommand.FORMAT_XML);
      add(new ExternalLink("rdfLink", cmd.getURL()));
      String rdfLink = "<link href=\"" + cmd.getURL()
          + "\" rel=\"meta\" title=\"RDF\" type=\"application/rdf+xml\" />";
      add(new StringHeaderContributor(rdfLink));
    } catch (SimalAPIException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get a RESTful URI for the person RDF/XML document",
          PersonDetailPage.class, e);
      setResponsePage(new ErrorReportPage(error));
View Full Code Here

      config.append("}\n\n");
      config.append("google.load('feeds', '1');");
      config.append("google.setOnLoadCallback(LoadDynamicFeedControl);");
      config.append("</script>");

      add(new StringHeaderContributor(config.toString()));
    } catch (SimalRepositoryException e) {
      logger.warn("Unable to get Google API Key. Aborting addition of AJAX Feed widget.", e);
    }
  }
View Full Code Here

      RESTCommand cmd = RESTCommand.createGetProject(project.getSimalID(),
          RESTCommand.TYPE_SIMAL, RESTCommand.FORMAT_XML);
      add(new ExternalLink("doapLink", cmd.getURL()));
      String rdfLink = "<link href=\"" + cmd.getURL()
          + "\" rel=\"meta\" title=\"DOAP\" type=\"application/rdf+xml\" />";
      add(new StringHeaderContributor(rdfLink));
     
      cmd = RESTCommand.createGetProject(project.getSimalID(),
      RESTCommand.TYPE_SIMAL, RESTCommand.FORMAT_JSON);
      add(new ExternalLink("jsonLink", cmd.getURL()));
      String jsonLink = "<link href=\"" + cmd.getURL()
          + "\" rel=\"meta\" title=\"JSON\" type=\"application/json\" />";
      add(new StringHeaderContributor(rdfLink));
    } catch (SimalRepositoryException e) {
      UserReportableException error = new UserReportableException(
          "Unable to get new person ID from the repository",
          ExhibitProjectBrowserPage.class, e);
      setResponsePage(new ErrorReportPage(error));
View Full Code Here

    add(JavascriptPackageResource.getHeaderContribution("http://static.simile.mit.edu/exhibit/api-2.0/exhibit-api.js"));
    StringBuilder jsonLink = new StringBuilder("<link href=\"");
    jsonLink.append(UserApplication.get().getServletContext().getContextPath());
    jsonLink = jsonLink.append("/simal-rest/allProjects/json\" rel=\"exhibit/data");
    jsonLink.append(" rel=\"exhibit/data\" />");
    add(new StringHeaderContributor(jsonLink.toString()));
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.behavior.StringHeaderContributor$StringContributor

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.