Package org.apache.wicket.markup.html

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


  {
    super(id, model);

    this.max = max;

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

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


    add(form);

    form.add(new TextField("name"));

    // The Event behavior
    WebComponent eventComponent = new WebComponent(EVENT_COMPONENT);
    add(eventComponent);
    eventComponent.add(new AjaxFormSubmitBehavior(form, "onclick")
    {
      private static final long serialVersionUID = 1L;

      protected void onSubmit(AjaxRequestTarget target)
      {
View Full Code Here

  public void testIteratorOrder()
  {
    MarkupContainer container = new WebMarkupContainer("component");
    for (int i = 0; i < 10; i++)
    {
      container.add(new WebComponent(Integer.toString(i)));
    }
    int i = 0;
    Iterator iter = container.iterator();
    while (iter.hasNext())
    {
View Full Code Here

  {
    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

      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

  /**
   * Adds components.
   */
  private final void initComps()
  {
    WebComponent meta = new WebComponent("meta");
    PageParameters parameters = new PageParameters();
    parameters.setNamedParameter("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

      final WicketTag wTag = (WicketTag)tag;

      // If <wicket:fragment ...>
      if (wTag.isFragementTag())
      {
        return new WebComponent(wTag.getId()).setVisible(false);
      }
    }

    // We were not able to handle the tag
    return null;
View Full Code Here

  /**
   * Construct.
   */
  public TestPage_1()
  {
    add(new WebComponent("comp")
    {
      private static final long serialVersionUID = 1L;

      @Override
      protected void onComponentTag(ComponentTag tag)
View Full Code Here

  {
    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(MockPageWithLinkAndComponent.LINK_ID)
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  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

TOP

Related Classes of org.apache.wicket.markup.html.WebComponent

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.