Package org.apache.wicket.markup.html.panel

Examples of org.apache.wicket.markup.html.panel.Panel$PanelMarkupHelper


                    editProfileModalWin.show(target);
                }
            };
            selfRegLink.add(new Label("linkTitle", getString("selfRegistration")));

            Panel panel = new LinkPanel("selfRegistration", new ResourceModel("selfRegistration"));
            panel.add(selfRegLink);
            selfRegFrag.add(panel);
        } else {
            selfRegFrag = new Fragment("selfRegistration", "selfRegNotAllowed", this);
        }
        add(selfRegFrag);
View Full Code Here


                final AttributeTO prop = item.getModelObject();

                Label label = new Label("key", prop.getSchema());
                item.add(label);

                Panel field;
                if (prop.getValues().isEmpty()) {
                    field = new AjaxTextFieldPanel("value",
                            prop.getSchema(), new Model<String>());
                } else if (prop.getValues().size() == 1) {
                    field = new AjaxTextFieldPanel("value",
View Full Code Here

            final UserTO userTO) {

        super(id);

        // shortcut to retrieve fragments inside inner classes
        final Panel panel = this;

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

                    editProfileModalWin.show(target);
                }
            };
            selfRegLink.add(new Label("linkTitle", getString("selfRegistration")));

            Panel panel = new LinkPanel("selfRegistration", new ResourceModel("selfRegistration"));
            panel.add(selfRegLink);
            selfRegFrag.add(panel);
        } else {
            selfRegFrag = new Fragment("selfRegistration", "selfRegNotAllowed", this);
        }
        add(selfRegFrag);
View Full Code Here

                }

                BeanWrapper wrapper = PropertyAccessorFactory
                        .forBeanPropertyAccess(ReportletConfModalPage.this.reportletConf);

                Panel panel;

                if (NodeCond.class.equals(field.getType())) {
                    panel = new UserSearchPanel("value", (NodeCond) wrapper.getPropertyValue(fieldName),
                            false, pageRef);
                    // This is needed in order to manually update this.reportletConf with search panel selections
                    panel.setDefaultModel(new Model(fieldName));
                } else if (List.class.equals(field.getType())) {
                    if (wrapper.getPropertyValue(fieldName) == null) {
                        wrapper.setPropertyValue(fieldName, new ArrayList());
                    }
View Full Code Here

                    editProfileModalWin.show(target);
                }
            };
            editProfileLink.add(new Label("linkTitle", getString("editProfile")));

            Panel panel = new LinkPanel("editProfile", new ResourceModel("editProfile"));
            panel.add(editProfileLink);
            editProfileFrag.add(panel);
        }
        add(editProfileFrag);
    }
View Full Code Here

    form1.add(new MyTextField("text7", "input-3"));

    Form form2 = new TestForm("form2");
    add(form2);

    Panel panel1 = new Panel("panel1");
    form2.add(panel1);
    panel1.add(new MyTextField("text3", "input-3"));
    panel1.add(new MyTextField("text4", "input-4"));

    Panel panel2 = new TestPanel("panel2");
    form2.add(panel2);
    panel2.add(new MyTextField("text5", "input-5"));
    panel2.add(new MyTextField("text6", "input-6"));
    panel2.add(new MyTextField("text8", "input-8"));
    panel2.add(new MyTextField("text9", "input-9"));
    panel2.add(new MyTextField("text10", "input-10"));
    panel2.add(new MyTextField("text11", "input-11"));
    panel2.add(new MyTextField("text12", "input-12"));

    Form form3 = new TestForm("form3")
    {
      private static final long serialVersionUID = 1L;
View Full Code Here

  public void idGeneratedWhenPanelNotAddedToPage()
  {
    WicketTester tester = new WicketTester();

    // In wicket 1.4 the following sequence would not cause an exception
    Panel panel = new EmptyPanel("bla");

    // however in 1.5 the following statement generated a WicketRuntimeException
    // that the markup type could not be determined
    String markupId = panel.getMarkupId();

    // instead 1.4 would just generate the missing markup identifier
    Assert.assertEquals("bla1", markupId);
  }
View Full Code Here

    init(wmodel);
  }
 
  @Override
  protected Component newButtonBar(String id) {
    final Panel bBar = (Panel)super.newButtonBar(id);
    AjaxButton finish = new AjaxButton("finish", new ResourceModel("org.apache.wicket.extensions.wizard.finish")) {
      private static final long serialVersionUID = 1L;

      public boolean isEnabled() {
        IWizardStep activeStep = getWizardModel().getActiveStep();
        return ((activeStep != null) && getWizardModel().isLastStep(activeStep));
      }
     
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
        installStep.startInstallation(target);
        target.add(bBar.setEnabled(false));
      }
    };
    return bBar.replace(finish).setOutputMarkupId(true);
  }
View Full Code Here

    init(wmodel);
  }
 
  @Override
  protected Component newButtonBar(String id) {
    final Panel bBar = (Panel)super.newButtonBar(id);
    AjaxButton finish = new AjaxButton("finish", new ResourceModel("org.apache.wicket.extensions.wizard.finish")) {
      private static final long serialVersionUID = 1L;

      public boolean isEnabled() {
        IWizardStep activeStep = getWizardModel().getActiveStep();
        return ((activeStep != null) && getWizardModel().isLastStep(activeStep));
      }
     
      @Override
      protected void onSubmit(AjaxRequestTarget target, Form<?> form) {
        installStep.startInstallation(target);
        target.add(bBar.setEnabled(false));
      }
    };
    return bBar.replace(finish).setOutputMarkupId(true);
  }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.panel.Panel$PanelMarkupHelper

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.