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

Examples of org.apache.wicket.markup.html.panel.ComponentFeedbackPanel


        cancelButton.setVisible(true);
        requestRepaintPanel(target);
    }

    private void addFeedbackGui(MarkupContainer markupContainer) {
        feedback = new ComponentFeedbackPanel(ID_FEEDBACK, this);
        feedback.setOutputMarkupPlaceholderTag(true);
        markupContainer.addOrReplace(feedback);
        feedback.setEscapeModelStrings(false);

        final ObjectAdapter adapter = getEntityModel().getObject();
View Full Code Here


    protected abstract FormComponentLabel addComponentForRegular();

    protected abstract Component addComponentForCompact();

    protected void addFeedbackTo(MarkupContainer markupContainer, Component component) {
        markupContainer.addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, component));
    }
View Full Code Here

                }

            };
            final Image image = new Image(ID_SCALAR_VALUE, imageResource);
            addOrReplace(image);
            addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, image));
        } else {
            permanentlyHide(ID_SCALAR_VALUE, ID_FEEDBACK);
        }
    }
View Full Code Here

    private void buildGui() {
        final WebMarkupContainer markupContainer = new WebMarkupContainer(ID_COLLECTION);
        collectionContents = getComponentFactoryRegistry().addOrReplaceComponent(markupContainer, ComponentType.COLLECTION_CONTENTS, getModel());

        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, collectionContents));
        addOrReplace(markupContainer);
    }
View Full Code Here

        final String name = getModel().getName();
        markupContainer.addOrReplace(new Label(ID_COLLECTION_NAME, Model.of(name)));
        final Component collectionContents = getComponentFactoryRegistry().addOrReplaceComponent(markupContainer, ComponentType.COLLECTION_CONTENTS, getModel());

        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, collectionContents));
        addOrReplace(markupContainer);
    }
View Full Code Here

        final Label scalarName = new Label(ID_SCALAR_NAME, getFormat().getLabelCaption(entityLink));
        labelIfRegular.add(scalarName);

        addOrReplace(labelIfRegular);

        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, entityLink));

        addStandardSemantics();
        addSemantics();

        return labelIfRegular;
View Full Code Here

                }

            };
            final Image image = new Image(ID_SCALAR_VALUE, imageResource);
            addOrReplace(image);
            addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, image));
        } else {
            permanentlyHide(ID_SCALAR_VALUE, ID_FEEDBACK);
        }
    }
View Full Code Here

        addSemantics();

        final FormComponentLabel labelIfRegular = createFormComponentLabel();
        addOrReplace(labelIfRegular);

        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, textField));
        return labelIfRegular;
    }
View Full Code Here

                feedback.error("cannot locate object:" + getEntityModel().getObjectAdapterMemento().toString());
            }
        }

        private FeedbackPanel addOrReplaceFeedback() {
            feedback = new ComponentFeedbackPanel(ID_FEEDBACK, this);
            feedback.setOutputMarkupPlaceholderTag(true);
            addOrReplace(feedback);
            return feedback;
        }
View Full Code Here

        final Label scalarName = new Label(ID_SCALAR_NAME, getFormat().getLabelCaption(checkBox));
        labelIfRegular.add(scalarName);

        addOrReplace(labelIfRegular);
        addOrReplace(new ComponentFeedbackPanel(ID_FEEDBACK, checkBox));

        return labelIfRegular;
    }
View Full Code Here

TOP

Related Classes of org.apache.wicket.markup.html.panel.ComponentFeedbackPanel

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.