本文整理匯總了Java中org.apache.wicket.markup.html.form.Form.setOutputMarkupId方法的典型用法代碼示例。如果您正苦於以下問題:Java Form.setOutputMarkupId方法的具體用法?Java Form.setOutputMarkupId怎麽用?Java Form.setOutputMarkupId使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類org.apache.wicket.markup.html.form.Form
的用法示例。
在下文中一共展示了Form.setOutputMarkupId方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: addOrReplaceSearchPanel
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void addOrReplaceSearchPanel(WebMarkupContainer headerPanel) {
final Form searchForm = new Form(ID_SEARCH_FORM);
searchForm.add(new VisibleEnableBehaviour() {
public boolean isVisible() {
return !isCatalogOidEmpty()
&& !AssignmentViewType.USER_TYPE.equals( getRoleCatalogStorage().getViewType());
}
});
searchForm.setOutputMarkupId(true);
SearchPanel search = new SearchPanel(ID_SEARCH, (IModel) searchModel, false) {
private static final long serialVersionUID = 1L;
@Override
public void searchPerformed(ObjectQuery query, AjaxRequestTarget target) {
AssignmentCatalogPanel.this.searchPerformed(query, target);
}
};
searchForm.add(search);
headerPanel.addOrReplace(searchForm);
}
示例2: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
protected void initLayout() {
final Form searchForm = new Form(ID_SEARCH_FORM);
add(searchForm);
searchForm.setOutputMarkupId(true);
SearchPanel search = new SearchPanel(ID_SEARCH, getModel()) {
@Override
public void searchPerformed(ObjectQuery query, AjaxRequestTarget target) {
SearchFormPanel.this.searchPerformed(query, target);
}
};
searchForm.add(search);
}
示例3: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout() {
final Form searchForm = new Form(ID_SEARCH_FORM);
add(searchForm);
searchForm.setOutputMarkupId(true);
final IModel<Boolean> model = (IModel<Boolean>) getDefaultModel();
CheckBox showNotDecidedOnlyBox = new CheckBox(ID_SHOW_NOT_DECIDED_ONLY, model);
showNotDecidedOnlyBox.add(createFilterAjaxBehaviour());
searchForm.add(showNotDecidedOnlyBox);
}
示例4: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout(TableId tableId, ModelServiceLocator serviceLocator) {
Form form = new Form(ID_FORM);
form.setOutputMarkupId(true);
add(form);
initSearch(form);
initMemberTable(tableId, form);
initCustomLayout(form, serviceLocator);
}
示例5: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout(WebMarkupContainer content){
Form form = new Form(ID_MAIN_FORM);
form.setOutputMarkupId(true);
content.add(form);
TextFormGroup name = new TextFormGroup(ID_LABEL,
new PropertyModel<String>(model, RichHyperlinkType.F_LABEL.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.label"), ID_LABEL_SIZE, ID_INPUT_SIZE, true);
form.add(name);
TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION,
new PropertyModel<String>(model, RichHyperlinkType.F_DESCRIPTION.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.description"), ID_LABEL_SIZE, ID_INPUT_SIZE);
description.setVisible(!isMenuItem);
form.add(description);
TextFormGroup targetUrl = new TextFormGroup(ID_TARGET_URL,
new PropertyModel<String>(model, RichHyperlinkType.F_TARGET_URL.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.targetUrl"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
form.add(targetUrl);
TextFormGroup color = new TextFormGroup(ID_COLOR,
new PropertyModel<String>(model, RichHyperlinkType.F_COLOR.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.color"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
color.setVisible(!isMenuItem);
form.add(color);
MultiValueTextFormGroup authorizations = new MultiValueTextFormGroup(ID_AUTHORIZATION,
new PropertyModel<List<String>>(model, RichHyperlinkType.F_AUTHORIZATION.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.authorization"), ID_LABEL_SIZE, ID_MULTIPLE_INPUT_SIZE, false);
authorizations.setVisible(!isMenuItem);
form.add(authorizations);
TextFormGroup icon = new TextFormGroup(ID_ICON,
new PropertyModel<String>(model, RichHyperlinkType.F_ICON.getLocalPart() + "." + IconType.F_CSS_CLASS.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.icon"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
form.add(icon);
initButtons(form);
}
示例6: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout(){
Form form = new Form(ID_MAIN_FORM);
form.setOutputMarkupId(true);
add(form);
TextFormGroup name = new TextFormGroup(ID_LABEL,
new PropertyModel<String>(model, RichHyperlinkType.F_LABEL.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.label"), ID_LABEL_SIZE, ID_INPUT_SIZE, true);
form.add(name);
TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION,
new PropertyModel<String>(model, RichHyperlinkType.F_DESCRIPTION.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.description"), ID_LABEL_SIZE, ID_INPUT_SIZE);
description.setVisible(!isMenuItem);
form.add(description);
TextFormGroup targetUrl = new TextFormGroup(ID_TARGET_URL,
new PropertyModel<String>(model, RichHyperlinkType.F_TARGET_URL.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.targetUrl"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
form.add(targetUrl);
TextFormGroup color = new TextFormGroup(ID_COLOR,
new PropertyModel<String>(model, RichHyperlinkType.F_COLOR.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.color"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
color.setVisible(!isMenuItem);
form.add(color);
MultiValueTextFormGroup authorizations = new MultiValueTextFormGroup(ID_AUTHORIZATION,
new PropertyModel<List<String>>(model, RichHyperlinkType.F_AUTHORIZATION.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.authorization"), ID_LABEL_SIZE, ID_MULTIPLE_INPUT_SIZE, false);
authorizations.setVisible(!isMenuItem);
form.add(authorizations);
TextFormGroup icon = new TextFormGroup(ID_ICON,
new PropertyModel<String>(model, RichHyperlinkType.F_ICON.getLocalPart() + "." + IconType.F_CSS_CLASS.getLocalPart()),
createStringResource("RichHyperlinkConfigDialog.icon"), ID_LABEL_SIZE, ID_INPUT_SIZE, false);
form.add(icon);
initButtons(form);
}
示例7: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout() {
Form mainForm = new Form(ID_MAIN_FORM);
mainForm.setOutputMarkupId(true);
add(mainForm);
// FeedbackPanel feedback = new FeedbackPanel(ID_FEEDBACK);
// feedback.setOutputMarkupId(true);
// mainForm.add(feedback);
initParametersPanel(mainForm);
addOrReplaceTable(mainForm);
}
示例8: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
public void initLayout(WebMarkupContainer content) {
Form form = new Form(ID_MAIN_FORM);
form.setOutputMarkupId(true);
content.add(form);
ListView repeater = new ListView<PropertyLimitationsTypeDto>(ID_REPEATER, model){
@Override
protected void populateItem(final ListItem<PropertyLimitationsTypeDto> item){
WebMarkupContainer linkContainer = new WebMarkupContainer(ID_LIMITATIONS_LINK);
linkContainer.setOutputMarkupId(true);
linkContainer.add(new AttributeModifier("href", createCollapseItemId(item, true)));
item.add(linkContainer);
Label linkLabel = new Label(ID_LIMITATIONS_LABEL, createLimitationsLabelModel(item));
linkContainer.add(linkLabel);
AjaxLink delete = new AjaxLink(ID_LIMITATION_DELETE) {
@Override
public void onClick(AjaxRequestTarget target) {
deleteLimitationPerformed(target, item);
}
};
delete.add(WebComponentUtil.visibleIfFalse(readOnlyModel));
linkContainer.add(delete);
WebMarkupContainer limitationBody = new WebMarkupContainer(ID_BODY);
limitationBody.setOutputMarkupId(true);
limitationBody.setMarkupId(createCollapseItemId(item, false).getObject());
if (changeState != ChangeState.SKIP) {
limitationBody.add(new AttributeModifier("class", new AbstractReadOnlyModel<String>() {
@Override
public String getObject() {
if (changeState == ChangeState.FIRST && item.getIndex() == 0) {
return "panel-collapse collapse in";
} else if (changeState == ChangeState.LAST && item.getIndex() == (getModelObject().size()-1)) {
return "panel-collapse collapse in";
} else {
return "panel-collapse collapse";
}
}
}));
}
limitationBody.add(WebComponentUtil.enabledIfFalse(readOnlyModel));
item.add(limitationBody);
initLimitationBody(limitationBody, item);
}
};
repeater.setOutputMarkupId(true);
form.add(repeater);
initButtons(form);
}
示例9: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout() {
Form form = new Form(ID_MAIN_FORM);
form.setOutputMarkupId(true);
add(form);
TextAreaFormGroup description = new TextAreaFormGroup(ID_DESCRIPTION,
new PropertyModel<String>(model,
MultiplicityPolicyConstraintType.F_DESCRIPTION.getLocalPart()),
createStringResource("multiplicityContainer.label.description"), ID_LABEL_SIZE,
ID_INPUT_SIZE);
form.add(description);
DropDownFormGroup enforcement = new DropDownFormGroup<>(ID_ENFORCEMENT,
new PropertyModel<PolicyConstraintEnforcementType>(model,
MultiplicityPolicyConstraintType.F_ENFORCEMENT.getLocalPart()),
WebComponentUtil.createReadonlyModelFromEnum(PolicyConstraintEnforcementType.class),
new EnumChoiceRenderer<PolicyConstraintEnforcementType>(),
createStringResource("multiplicityContainer.label.enforcement"), ID_LABEL_SIZE, ID_INPUT_SIZE,
false);
form.add(enforcement);
WebMarkupContainer multiplicityContainer = new WebMarkupContainer(ID_MULTIPLICITY_CONTAINER);
multiplicityContainer.setOutputMarkupId(true);
form.add(multiplicityContainer);
TextField multiplicity = new TextField<>(ID_MULTIPLICITY, new PropertyModel<String>(model,
MultiplicityPolicyConstraintType.F_MULTIPLICITY.getLocalPart()));
multiplicity.add(prepareMultiplicityValidator());
multiplicity.add(new VisibleEnableBehaviour() {
@Override
public boolean isEnabled() {
return !unbounded;
}
});
multiplicityContainer.add(multiplicity);
CheckBox multiplicityUnbounded = new CheckBox(ID_MULTIPLICITY_UNBOUND,
new PropertyModel<Boolean>(this, MULTIPLICITY_UNBOUNDED));
multiplicityUnbounded.add(new OnChangeAjaxBehavior() {
@Override
protected void onUpdate(AjaxRequestTarget target) {
model.getObject().setMultiplicity(MULTIPLICITY_UNBOUNDED);
target.add(getMultiplicityContainer());
}
});
multiplicityContainer.add(multiplicityUnbounded);
initButtons(form);
}
示例10: initLayout
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
private void initLayout() {
Form<?> form = new Form(ID_PWDRESETFORM);
form.setOutputMarkupId(true);
form.add(new VisibleEnableBehaviour() {
private static final long serialVersionUID = 1L;
@Override
public boolean isVisible() {
return !submited;
}
});
initStaticLayout(form);
initDynamicLayout(form);
initButtons(form);
}
示例11: AllFacetValuesPanel
import org.apache.wicket.markup.html.form.Form; //導入方法依賴的package包/類
/**
*
* @param id component id
* @param model model for the facet field to show values for
* @param filterModel model that holds a string to filter in (can be null)
*/
public AllFacetValuesPanel(String id, IModel<FacetField> model, IModel<FieldValuesFilter> filterModel) {
super(id, model);
if (filterModel != null) {
this.filterModel = filterModel;
} else {
this.filterModel = new Model<FieldValuesFilter>(new NameAndCountFieldValuesFilter());
}
// create a provider that shows all values and is sorted by name by default
valuesProvider = new FacetFieldValuesProvider(model, Integer.MAX_VALUE, FieldValueOrderSelector.NAME_SORT, fieldValueConverterProvider) {
@Override
protected IModel<FieldValuesFilter> getFilterModel() {
// filters the values
return AllFacetValuesPanel.this.filterModel;
}
};
// create a container for the values to allow for AJAX updates
valuesContainer = new WebMarkupContainer("facetValuesContainer");
valuesContainer.setOutputMarkupId(true);
add(valuesContainer);
// create the view of the actual values
final DataView<FacetField.Count> valuesView = createValuesView("facetValue");
valuesContainer.add(new AjaxPagingNavigator("navigator", valuesView) {
@Override
protected void onConfigure() {
super.onConfigure();
setVisible(valuesView.getPageCount() > 1);
}
});
valuesContainer.add(valuesView);
// create the form for selection sort option and entering filter string
final Form optionsForm = createOptionsForm("options");
optionsForm.setOutputMarkupId(true);
add(optionsForm);
}