Examples of CompoundPropertyModel


Examples of org.apache.wicket.model.CompoundPropertyModel

    private SchemaRestClient schemaRestClient;

    public NotificationModalPage(final PageReference pageRef, final ModalWindow window,
            final NotificationTO notificationTO, final boolean createFlag) {

        Form form = new Form("form", new CompoundPropertyModel(notificationTO));
        form.setModel(new CompoundPropertyModel(notificationTO));

        final AjaxTextFieldPanel sender = new AjaxTextFieldPanel("sender", getString("sender"),
                new PropertyModel<String>(notificationTO, "sender"));
        sender.addRequiredLabel();
        sender.addValidator(EmailAddressValidator.getInstance());
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

        fragment.add(new Label("new", userTO.getId() == 0
                ? new ResourceModel("new")
                : new Model("")));

        final Form form = new Form("UserForm");
        form.setModel(new CompoundPropertyModel(userTO));

        //--------------------------------
        // User details
        //--------------------------------
        form.add(new UserDetailsPanel("details", userTO, form, resetPassword, mode == Mode.TEMPLATE));
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

        this.add(new Label("name", StringUtils.isBlank(resourceTO.getName())
                ? ""
                : resourceTO.getName()));

        final Form form = new Form("form");
        form.setModel(new CompoundPropertyModel(resourceTO));

        //--------------------------------
        // Resource details panel
        //--------------------------------
        form.add(new ResourceDetailsPanel("details", resourceTO,
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

   * Simulates the reported problem at the ticket: an behavior at the position 0 on the component
   * data has its position incremented after its ULR get encoded.
   */
  public void testUrlReferingSomeBehavior()
  {
    TestPage page = new TestPage(new CompoundPropertyModel(this));
    tester.startPage(page);

    tester.executeUrl(page.mainCallbackBehavior.statefullUrl);

    tester.assertLabel("label", LABEL_VALUE);
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

   * If the index used to encode the behavior URL is no longer valid, an possible problem is this
   * URL invoking the wrong component behavior
   */
  public void testUrlDontCallOtherBehavior()
  {
    TestPage page = new TestPage(new CompoundPropertyModel(this));
    tester.startPage(page);

    tester.executeUrl(page.brotherCallbackBehavior.statefullUrl);

    tester.assertLabel("label", LABEL_VALUE);
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

        super(id);

        final Form form = new Form("roleForm");

        final TreeActionLinkPanel actionLink = new TreeActionLinkPanel("actionLink", roleTO.getId(),
                new CompoundPropertyModel(roleTO), window, pageRef);

        this.add(actionLink);
        this.add(new Label("displayName", roleTO.getDisplayName()));

        form.setModel(new CompoundPropertyModel(roleTO));
        form.setOutputMarkupId(true);

        final RolePanel rolePanel = new RolePanel("rolePanel", form, roleTO, RoleModalPage.Mode.ADMIN);
        rolePanel.setEnabled(false);
        form.add(rolePanel);
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

     * @param createFlag true for CREATE and false for UPDATE operation
     */
    public ConfigurationModalPage(final PageReference pageRef, final ModalWindow window,
            final ConfigurationTO configurationTO, final boolean createFlag) {

        Form form = new Form("form", new CompoundPropertyModel(configurationTO));

        final AjaxTextFieldPanel key = new AjaxTextFieldPanel("key", "key", new PropertyModel(configurationTO, "key"));
        form.add(key);
        key.setEnabled(createFlag);
        key.addRequiredLabel();
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

            schema = new VirtualSchemaTO();
        }

        final Form schemaForm = new Form("form");

        schemaForm.setModel(new CompoundPropertyModel(schema));

        final AjaxTextFieldPanel name = new AjaxTextFieldPanel("name", getString("name"), new PropertyModel<String>(
                schema, "name"));
        name.addRequiredLabel();
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

    private SchemaRestClient schemaRestClient;

    public NotificationModalPage(final PageReference pageRef, final ModalWindow window,
            final NotificationTO notificationTO, final boolean createFlag) {

        Form form = new Form("form", new CompoundPropertyModel(notificationTO));
        form.setModel(new CompoundPropertyModel(notificationTO));

        final AjaxTextFieldPanel sender = new AjaxTextFieldPanel("sender", getString("sender"),
                new PropertyModel<String>(notificationTO, "sender"));
        sender.addRequiredLabel();
        sender.addValidator(EmailAddressValidator.getInstance());
View Full Code Here

Examples of org.apache.wicket.model.CompoundPropertyModel

        final Form form = new Form("MembershipForm");

        final UserTO userTO = ((UserModalPage) pageRef.getPage()).getUserTO();

        form.setModel(new CompoundPropertyModel(membershipTO));

        submit = new AjaxButton("submit", new ResourceModel("submit")) {

            private static final long serialVersionUID = -958724007591692537L;
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.