Java Code Examples for org.apache.wicket.Component.setOutputMarkupId()

The following are Jave code examples for showing how to use setOutputMarkupId() of the org.apache.wicket.Component class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: gitplex-mit   File: InputAssistBehavior.java   Source Code and License Vote up 5 votes
@Override
protected void onBind() {
	super.onBind();
	
	Component inputField = getComponent();
	inputField.setOutputMarkupId(true);
}
 
Example 2
Project: gitplex-mit   File: ReflectionPropertyEditor.java   Source Code and License Vote up 5 votes
private Component newBeanEditor(Serializable propertyValue) {
	Component beanEditor;
	if (propertyValue != null) {
		beanEditor = BeanContext.editBean(BEAN_EDITOR_ID, propertyValue);
	} else {
		beanEditor = new WebMarkupContainer(BEAN_EDITOR_ID).setVisible(false);
	}
	beanEditor.setOutputMarkupId(true);
	beanEditor.setOutputMarkupPlaceholderTag(true);
	return beanEditor;
}
 
Example 3
Project: gitplex-mit   File: PolymorphicListPropertyEditor.java   Source Code and License Vote up 5 votes
private Component newElementEditor(Serializable element) {
	Component elementEditor;
	if (element != null) {
		elementEditor = BeanContext.editBean("elementEditor", element);
	} else {
		elementEditor = new WebMarkupContainer("elementEditor").setVisible(false);
	}
	elementEditor.setOutputMarkupId(true);
	elementEditor.setOutputMarkupPlaceholderTag(true);
	return elementEditor;
}
 
Example 4
Project: gitplex-mit   File: CollapseBehavior.java   Source Code and License Vote up 4 votes
public CollapseBehavior(Component target) {
	this.target = target;
	target.add(AttributeAppender.append("class", "collapse"));
	target.setOutputMarkupId(true);
}
 
Example 5
Project: gitplex-mit   File: CollapseBehavior.java   Source Code and License Vote up 4 votes
@Override
public void bind(Component component) {
	super.bind(component);
	component.setOutputMarkupId(true);
}
 
Example 6
Project: gitplex-mit   File: DragBehavior.java   Source Code and License Vote up 4 votes
@Override
public void bind(Component component) {
	super.bind(component);
	component.setOutputMarkupId(true);
}
 
Example 7
Project: gitplex-mit   File: AutoHeightBehavior.java   Source Code and License Vote up 4 votes
@Override
public void bind(Component component) {
	super.bind(component);
	component.setOutputMarkupId(true);
}
 
Example 8
Project: gitplex-mit   File: ComponentTarget.java   Source Code and License Vote up 4 votes
public ComponentTarget(Component component, int index) {
	this.component = component;
	this.index = index;
	
	component.setOutputMarkupId(true);
}