Package wicket.markup.html.link

Examples of wicket.markup.html.link.PageLink


      } 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);
      if (!app.isConceptDisplayAllowed(getAppSession(),
          entryConceptConfig)) {
        entryConceptLink.setVisible(false);
        keywordSelectionLink.setVisible(false);
      } else if (propertyConfig == null) {
        keywordSelectionLink.setVisible(false);
      }
    } catch (Exception e) {
      log.error("Error in EntryDisplayTableListView: "
          + entry.getConceptConfig().getEntitiesCode() + " = "
          + e.getMessage());
View Full Code Here


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

      EntityDisplayTablePage commentsPage = new EntityDisplayTablePage(
          commentsModelContext, commentsViewContext);
      Link commentsLink = new PageLink("commentsLink", commentsPage);
      add(commentsLink);

      ModelContext questionsModelContext = new ModelContext();
      questionsModelContext.setDomainModel(app.getDomainModel());
      Questions questions = (Questions) app.getEntry("Questions");
      questionsModelContext.setEntities(questions);

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

      EntityDisplayTablePage questionsPage = new EntityDisplayTablePage(
          questionsModelContext, questionsViewContext);
      Link questionsLink = new PageLink("questionsLink", questionsPage);
      add(questionsLink);

      ModelContext presentationsModelContext = new ModelContext();
      presentationsModelContext.setDomainModel(app.getDomainModel());
      Presentations presentations = (Presentations) app
          .getEntry("Presentations");
      Presentations orderedPresentations = presentations
          .getPresentationsOrderedByTitle();
      presentationsModelContext.setEntities(orderedPresentations);

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

      EntityDisplayTablePage orderedPresentationsPage = new EntityDisplayTablePage(
          presentationsModelContext, presentationsViewContext);
      Link orderedPresentationsLink = new PageLink("presentationsLink",
          orderedPresentationsPage);
      add(orderedPresentationsLink);

      Link loginLink = new PageLink("login", LoginPage.class);
      add(loginLink);
      Link logoutLink = new Link("logout") {
        static final long serialVersionUID = 300331L;

        public void onClick() {
          getAppSession().invalidate();
          setResponsePage(HomePage.class);
        }
      };
      add(logoutLink);
      if (getAppSession().isMemberLoggedIn()) {
        loginLink.setVisible(false);
      } else {
        logoutLink.setVisible(false);
      }
      if (!app.getModelConfig().isLogin()) {
        loginLink.setVisible(false);
      }

      ModelContext dmLiteEntryPageModelContext = new ModelContext();
      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();
      countryLanguageModelContext.setDomainModel(app.getDomainModel());
      CountryLanguages countryLanguages = (CountryLanguages) app
View Full Code Here

      final Applicant applicant) {
    super(wicketId);
    Label messageForApplicant = null;
    if (applicant != null) {
      try {
        Link loginLink = new PageLink("login", LoginPage.class);
        add(loginLink);

        String confirmMessage = getLocalizer().getString("message.confirm", this);
        messageForApplicant = new Label("messageForApplicant",
            confirmMessage);
View Full Code Here

      }

      final ViewContext entityDisplayPageViewContext = new ViewContext(
          viewContext);
      entityDisplayPageViewContext.setUpdate(false);
      Link displayLink = new PageLink("display", new IPageLink() {
        static final long serialVersionUID = 200531L;

        public Page getPage() {
          return app.getViewMeta().getPage("EntityDisplayPage",
              entityModelContext, entityDisplayPageViewContext);
View Full Code Here

  }

  public static PageLink link(final String id,
      final PrincipalContentContainer.ContentType principalContent)
  {
    final PageLink link = new PageLink(id, new IPageLink()
    {
      private static final long serialVersionUID = -5317100125057792793L;

      public Page getPage()
      {
View Full Code Here

  }

  public static PageLink link(final String id,
      final Class<? extends BasePanel> panelClass, final Map parameters)
  {
    final PageLink link = new PageLink(id, new IPageLink()
    {

      /**
       *
       */
 
View Full Code Here

       * Si une inscription existe déjà pour cette course on ne peut pas
       * sélectionner de catégorie
       */
      if (this.inscriptions.getInscription(course, this.personne) != null)
      {
        final PageLink link  = HomePage.link("categories",
            CategoriesSelectionListViewPanel.class, map);

        link.setEnabled(false);
       
        item.add(link);
       
      }
      else
View Full Code Here

          neighborModelContext.setEntities(neighborEntities);

          final ViewContext neighborViewContext = new ViewContext(
              viewContext);

          neighborLink = new PageLink("neighbor", new IPageLink() {
            static final long serialVersionUID = 200471L;

            WebPage neighborPage;

            public Page getPage() {
View Full Code Here

        modelContext);

    ViewContext entryDisplayTablePageViewContext = new ViewContext(
        viewContext);

    add(new PageLink("displayEntry", new EntryDisplayTablePage(
        entryDisplayTablePageModelContext,
        entryDisplayTablePageViewContext)));

    ModelContext entryUpdateTablePageModelContext = new ModelContext(
        modelContext);

    ViewContext entryUpdateTablePageViewContext = new ViewContext(
        viewContext);
    entryUpdateTablePageViewContext.setUpdate(true);

    add(new PageLink("updateEntry", new EntryUpdateTablePage(
        entryUpdateTablePageModelContext,
        entryUpdateTablePageViewContext)));
  }
View Full Code Here

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

      applicantConfirmationField = new TextField(
          "applicantConfirmationField", new Model(applicantOidString));
      add(applicantConfirmationField);
View Full Code Here

TOP

Related Classes of wicket.markup.html.link.PageLink

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.