Examples of WebComponent


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

  {
    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

  /**
   * Adds components.
   */
  private void initComps()
  {
    WebComponent meta = new WebComponent("meta");

    final IModel<String> urlModel = new LoadableDetachableModel<String>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected String load()
      {
        CharSequence url = urlFor(BrowserInfoPage.class, null);
        return url.toString();
      }
    };

    meta.add(AttributeModifier.replace("content", new AbstractReadOnlyModel<String>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public String getObject()
View Full Code Here

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

      int autoIndex = container.getPage().getAutoIndex();
      String id = WICKET_MESSAGE_CONTAINER_ID + autoIndex;

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

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

  /**
   * Adds components.
   */
  private void initComps()
  {
    WebComponent meta = new WebComponent("meta");

    final IModel<String> urlModel = new LoadableDetachableModel<String>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected String load()
      {
        CharSequence url = urlFor(BrowserInfoPage.class, null);
        return url.toString();
      }
    };

    meta.add(AttributeModifier.replace("content", new AbstractReadOnlyModel<String>()
    {
      private static final long serialVersionUID = 1L;

      @Override
      public String getObject()
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

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

  /**
   * Adds components.
   */
  private final void initComps()
  {
    WebComponent meta = new WebComponent("meta");
    PageParameters parameters = new PageParameters();
    parameters.set("cto", continueTo);

    CharSequence url = urlFor(new BookmarkablePageRequestHandler(new PageProvider(
      BrowserInfoPage.class, parameters)));

    meta.add(new AttributeModifier("content", true, new Model<String>("0; url=" + url)));
    add(meta);
    WebMarkupContainer link = new WebMarkupContainer("link");
    link.add(new AttributeModifier("href", true, new Model<Serializable>((Serializable)url)));
    add(link);
    add(new BrowserInfoForm("postback")
View Full Code Here

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

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

    this.max = max;

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

    container = new WebMarkupContainer("container");
    container.setOutputMarkupId(true);
View Full Code Here

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

      }
    };

    IModel<String> model = new NotDetachedModel();
    model.getObject();
    WebComponent component = new WebComponent("id", model);
    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

   */
  @Test
  public void notSerializable()
  {
    JavaSerializer serializer = new JavaSerializer("JavaSerializerTest");
    WebComponent component = new NotSerializableComponent("id");
    byte[] serialized = serializer.serialize(component);
    assertNull("The produced byte[] must be null if there was an error", serialized);
  }
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.