Package wicket.markup.html

Examples of wicket.markup.html.WebPage


      ModelContext entryModelContext = new ModelContext(modelContext);
      entryModelContext.setEntities(entry);

      ViewContext entryViewContext = new ViewContext(viewContext);
      WebPage entryConceptPage = null;
      String displayType = entry.getConceptConfig().getDisplayType();
      if (displayType == null) {
        displayType = "table";
      }
      if (displayType.equals("table")) {
        entryConceptPage = app.getViewMeta().getPage(
            "EntityDisplayTablePage", entryModelContext,
            entryViewContext);
      } else if (displayType.equals("list")) {
        entryConceptPage = app.getViewMeta().getPage(
            "EntityDisplayListPage", entryModelContext,
            entryViewContext);
      } else if (displayType.equals("slide")) {
        entryConceptPage = app.getViewMeta().getPage(
            "EntityDisplaySlidePage", entryModelContext,
            entryViewContext);
      }
      Link entryConceptLink = new PageLink("entry", entryConceptPage);
      item.add(entryConceptLink);

      ModelContext keywordSelectionModelContext = new ModelContext(
          modelContext);
      keywordSelectionModelContext.setEntities(entry);
      PropertyConfig propertyConfig = entryConceptConfig
          .getPropertiesConfig().getFirstMaxTextSizePropertyConfig();
      keywordSelectionModelContext.setPropertyConfig(propertyConfig);

      ViewContext keywordSelectionViewContext = new ViewContext(
          viewContext);
      keywordSelectionViewContext.getMoreArgs().add("keywords", "");
      keywordSelectionViewContext.getMoreArgs().add("andKeywords",
          Boolean.TRUE);

      WebPage keywordSelectionPage = app.getViewMeta().getPage(
          "EntityPropertyKeywordSelectPage",
          keywordSelectionModelContext, keywordSelectionViewContext);
      Link keywordSelectionLink = new PageLink("entryKeywordSelection",
          keywordSelectionPage);
      item.add(keywordSelectionLink);
View Full Code Here


      dmLiteEntryPageModelContext.setDomainModel(app.getDomainModel());

      ViewContext dmLiteEntryPageViewContext = new ViewContext();
      dmLiteEntryPageViewContext.setApp(app);

      WebPage dmLiteEntryPage = new DmLiteEntryPage(
          dmLiteEntryPageModelContext, dmLiteEntryPageViewContext);
      Link dmLiteEntryLink = new PageLink("dmLiteEntry", dmLiteEntryPage);
      add(dmLiteEntryLink);

      ModelContext countryLanguageModelContext = new ModelContext();
View Full Code Here

          firstEntityModelContext.setEntity(firstEntity);

          ViewContext firstEntityViewContext = new ViewContext(
              viewContext);

          WebPage firstWebPage = app.getViewMeta().getPage(
              "EntityDisplaySlidePage", firstEntityModelContext,
              firstEntityViewContext);
          setResponsePage(firstWebPage);
        }
      };
      add(firstLink);

      Link nextLink = new Link("next") {
        static final long serialVersionUID = 200582L;

        public void onClick() {
          IEntity nextEntity = findNextEntity(entities, entity);

          ModelContext nextEntityModelContext = new ModelContext(
              modelContext);
          nextEntityModelContext.setEntity(nextEntity);

          ViewContext nextEntityViewContext = new ViewContext(
              viewContext);

          WebPage nextWebPage = app.getViewMeta().getPage(
              "EntityDisplaySlidePage", nextEntityModelContext,
              nextEntityViewContext);
          setResponsePage(nextWebPage);
        }
      };
      add(nextLink);

      Link priorLink = new Link("prior") {
        static final long serialVersionUID = 200583L;

        public void onClick() {
          IEntity priorEntity = findPriorEntity(entities, entity);

          ModelContext priorEntityModelContext = new ModelContext(
              modelContext);
          priorEntityModelContext.setEntity(priorEntity);

          ViewContext priorEntityViewContext = new ViewContext(
              viewContext);

          WebPage priorWebPage = app.getViewMeta().getPage(
              "EntityDisplaySlidePage", priorEntityModelContext,
              priorEntityViewContext);
          setResponsePage(priorWebPage);
        }
      };
      add(priorLink);

      Link lastLink = new Link("last") {
        static final long serialVersionUID = 200584L;

        public void onClick() {
          IEntity lastEntity = (IEntity) entities.last();

          ModelContext lastEntityModelContext = new ModelContext(
              modelContext);
          lastEntityModelContext.setEntity(lastEntity);

          ViewContext lastEntityViewContext = new ViewContext(
              viewContext);

          WebPage lastWebPage = app.getViewMeta().getPage(
              "EntityDisplaySlidePage", lastEntityModelContext,
              lastEntityViewContext);
          setResponsePage(lastWebPage);
        }
      };
View Full Code Here

      ViewContext applicantViewContext = new ViewContext();
      applicantViewContext.setApp(app);
      applicantViewContext.setUpdate(true);
      applicantViewContext.setContextPage(contextPage);
     
      WebPage applicantPage = new ApplicantAddFormPage(
          applicantModelContext, applicantViewContext);
      Link applicantLink = new PageLink("applicant", applicantPage);
      add(applicantLink);

      applicantConfirmationField = new TextField(
View Full Code Here

            .longValue());
        PageParameters pageParameters = new PageParameters();
        if (applicant != null) {
          pageParameters.put("oid", applicant.getOid()
              .getUniqueNumber());
          WebPage confirmationPage;
          try {
            confirmationPage = new ApplicantConfirmPage(
                pageParameters);
            setResponsePage(confirmationPage);
          } catch (StringValueConversionException e) {
View Full Code Here

      ModelContext entryContext = new ModelContext(modelContext);
      entryContext.setEntities(entry);
      ViewContext entityUpdateTablePageContext = new ViewContext(
          viewContext);
      WebPage entryConceptPage = app.getViewMeta().getPage(
          "EntityUpdateTablePage", entryContext,
          entityUpdateTablePageContext);
      Link entryConceptLink = new PageLink("entryUpdateTable",
          entryConceptPage);
      item.add(entryConceptLink);
View Full Code Here

   *            view context
   * @return web page
   */
  public WebPage getPage(final String classSimpleName,
      final ModelContext modelContext, final ViewContext viewContext) {
    WebPage result = null;
    try {
      String actionType;
      if (viewContext.isUpdate()) {
        actionType = "update";
      } else {
View Full Code Here

      dmLiteEntryPageModelContext.setDomainModel(app.getDomainModel());

      ViewContext dmLiteEntryPageViewContext = new ViewContext();
      dmLiteEntryPageViewContext.setApp(app);

      WebPage dmLiteEntryPage = new DmLiteEntryPage(
          dmLiteEntryPageModelContext, dmLiteEntryPageViewContext);
      Link dmLiteEntryLink = new PageLink("dmLiteEntry", dmLiteEntryPage);
      add(dmLiteEntryLink);

      ModelConfig modelConfig = app.getDomainModel().getModelConfig();
View Full Code Here

TOP

Related Classes of wicket.markup.html.WebPage

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.