Package org.apache.wicket.markup.html

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


      final Component wc;
      String id = WICKET_RELATIVE_PATH_PREFIX_CONTAINER_ID +
          container.getPage().getAutoIndex();
      if (tag.isOpenClose())
      {
        wc = new WebComponent(id);
      }
      else
      {
        // we do not want to mess with the hierarchy, so the container has to be
        // transparent as it may have wicket components inside. for example a raw anchor 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

    if (WICKET_MESSAGE_CONTAINER_ID.equals(tag.getId()))
    {
      Component wc = null;
      if (tag.isOpenClose())
      {
        wc = new WebComponent(WICKET_MESSAGE_CONTAINER_ID +
          container.getPage().getAutoIndex());
      }
      else
      {
        wc = new WebMarkupContainer(WICKET_MESSAGE_CONTAINER_ID +
View Full Code Here

  private void executeHeaderTest(final Class componentClass, String expectedFile)
      throws IOException
  {
    final MockPageWithLinkAndComponent page = new MockPageWithLinkAndComponent();

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


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

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

      protected void onComponentTag(ComponentTag tag)
      {
View Full Code Here

  /**
   * Adds components.
   */
  private final void initComps()
  {
    WebComponent meta = new WebComponent("meta");
    PageParameters parameters = new PageParameters();
    parameters.put("cto", continueTo);
    CharSequence url = urlFor(new BookmarkablePageRequestTarget(BrowserInfoPage.class,
        parameters));
    meta.add(new AttributeModifier("content", true, new Model("0; url=" + url)));
    add(meta);
    WebMarkupContainer link = new WebMarkupContainer("link");
    link.add(new AttributeModifier("href", true, new Model((Serializable)url)));
    add(link);
    add(new BrowserInfoForm("postback")
View Full Code Here

   *
   * @throws Exception
   */
  public void testCreateAllowedComponent() throws Exception
  {
    new WebComponent("component");
  }
View Full Code Here

            return false;
          }
        });
    try
    {
      new WebComponent("test");
      // bad: authorization should have failed
      fail("authorization check failed to throw an exception");
    }
    catch (AuthorizationException e)
    {
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

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.