Examples of WebComponent


Examples of org.apache.wicket.markup.html.WebComponent

        IObjectChecker checker = new SessionChecker();
        return new CheckingObjectOutputStream(out, checker);
      }
    };

    WebComponent component = new ComponentWithAReferenceToTheSession("id");
    byte[] serialized = serializer.serialize(component);
    assertNull("The produced byte[] must be null if there was an error", serialized);
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

        IObjectChecker checker = new DifferentPageChecker();
        return new CheckingObjectOutputStream(out, checker);
      }
    };

    WebComponent component = new ComponentThatKeepsAReferenceToAnotherPage(MockPageWithLink.LINK_ID);
    MockPageWithLink rootPage = new MockPageWithLink();
    rootPage.add(component);
    byte[] serialized = serializer.serialize(rootPage);
    assertNull("The produced byte[] must be null if there was an error", serialized);
  }
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

  {
    Duration dur = Duration.seconds(20);
    final AjaxSelfUpdatingTimerBehavior timer = new AjaxSelfUpdatingTimerBehavior(dur);
    final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent();

    page.add(new WebComponent(MockPageWithLinkAndComponent.COMPONENT_ID)
        .setOutputMarkupId(true));


    page.add(new AjaxLink<Void>(MockPageWithLinkAndComponent.LINK_ID)
    {
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

  {
    Duration dur = Duration.seconds(20);
    final MyAjaxSelfUpdatingTimerBehavior timer = new MyAjaxSelfUpdatingTimerBehavior(dur);
    final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent();

    page.add(new WebComponent(MockPageWithLinkAndComponent.COMPONENT_ID).setOutputMarkupId(true));


    page.add(new AjaxLink<Void>(MockPageWithLinkAndComponent.LINK_ID)
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

  private <C extends Component> void executeHeaderTest(final Class<C> componentClass,
    String expectedFile) throws IOException
  {
    final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent();

    page.add(new WebComponent(MockPageWithLinkAndComponent.COMPONENT_ID).setOutputMarkupId(true));

    page.add(new AjaxLink<Void>(MockPageWithLinkAndComponent.LINK_ID)
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

        @Override
        public void onClick(AjaxRequestTarget target)
        {
        }
      });
      add(new WebComponent(COMPONENT_ID)
      {
        private static final long serialVersionUID = 1L;

        @Override
        public void onEvent(IEvent<?> event)
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

      String id = WICKET_MESSAGE_CONTAINER_ID + container.getPage().getAutoIndex();
      tag.setId(id);

      if (tag.isOpenClose())
      {
        wc = new WebComponent(id);
      }
      else
      {
        wc = new TransparentWebMarkupContainer(id);
      }
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

    } else if (wicketId.startsWith("fileLink_")) {
      // link to file in content directory
      return new ResourceLink<Object> (wicketId, getRelativeRef(elt.getAttribute("href")));
     
    } else if (wicketId.startsWith("sectionIcon_")) {   
      WebComponent icon = ISIApplication.get().makeIcon(wicketId, elt.getAttribute("class"));
      icon.add(new AttributeModifier("class", true, new Model<String>("sectionIcon")));
      return icon;
 
    } else if (wicketId.startsWith("thumbRating_")) {
      ContentLoc loc = new ContentLoc(getModel().getObject());
      String thumbId = elt.getAttribute("id");
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

    WebMarkupContainer link = linkProvider.createLink( ID_LINK );
    if ( !ID_LINK.equals( link.getId() ) ) {
      throw new IllegalStateException( "Link must have the ID set to " + ID_LINK );
    }
    WebComponent label = linkProvider.createLabel( ID_LABEL );
    if ( !ID_LABEL.equals( label.getId() ) ) {
      throw new IllegalStateException( "Label must have the ID set to " + ID_LABEL );
    }

    link.add( label );
    item.add( link );
View Full Code Here

Examples of org.apache.wicket.markup.html.WebComponent

    super(id, (IModel<Collection<FileUpload>>)model);

    this.max = max;
    this.useMultipleAttr = useMultipleAttr;

    upload = new WebComponent("upload");
    upload.setOutputMarkupId(true);
    add(upload);

    container = new WebMarkupContainer("container");
    container.setOutputMarkupId(true);
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.