public class DynamicFormField<T>
extends org.apache.wicket.markup.html.form.FormComponent<T>
<input> with any type or no type defined.
 The definitions will dynamically assign the tag
 Map<String, String> attribs = new HashMap<String, String>(); 
attribs.put("type", "text");
c = new DynamicFormField<String>(name, model, "input", attribs);
	
        FIXME: When Model is set from Null data, and one tries to check the box. It remains unchecked. Same with TEXT AREA.| Constructor and Description | 
|---|
| DynamicFormField(String id,
                org.apache.wicket.model.IModel<T> model,
                String tagType) | 
| DynamicFormField(String id,
                org.apache.wicket.model.IModel<T> model,
                String tagType,
                Map<String,String> tagAttributes) | 
| DynamicFormField(String id,
                String tagType) | 
| Modifier and Type | Method and Description | 
|---|---|
| org.apache.wicket.util.convert.IConverter | getConverter(Class<?> type)Ensure the data conversions are not handled by Wicket
  Example Double types will introduce commas etc; in our case not desirable as we control custom Model conversions via TransformerandTwoWayTransformers already | 
| Map<String,String> | getTagAttributes()Any attributes on the tag | 
| String | getTagType()The name of the HTML tag | 
| boolean | isTagBody()If the Component is an open tag like TextArea that has a body; the { FormComponent.getValue()will automatically be set in the body then | 
| protected void | onComponentTag(org.apache.wicket.markup.ComponentTag tag) | 
| protected void | onComponentTagBody(org.apache.wicket.markup.MarkupStream markupStream,
                  org.apache.wicket.markup.ComponentTag openTag) | 
| void | setTagAttributes(Map<String,String> tagAttributes)Any attributes on the tag | 
| void | setTagBody(boolean tagBody)If the Component is an open tag like TextArea that has a body; the { FormComponent.getValue()will automatically be set in the body then | 
| void | setTagType(String tagType)The name of the HTML tag | 
add, add, checkRequired, clearInput, convertInput, convertValue, error, getConvertedInput, getForm, getInput, getInputAsArray, getInputName, getModel, getModelObject, getModelValue, getRawInput, getType, getValidatorKeyPrefix, getValidators, getValue, hasRawInput, inputAsInt, inputAsInt, inputAsIntArray, inputChanged, internalOnModelChanged, invalid, isInputNullable, isMultiPart, isPersistent, isRequired, isValid, newValidatable, onDetach, onDisabled, onInvalid, onValid, processChildren, processInput, setConvertedInput, setLabel, setModel, setModelObject, setModelValue, setModelValue, setPersistent, setRequired, setType, shouldTrimInput, supportsPersistence, trim, updateModel, valid, validate, validateRequired, validateValidators, visitComponentsPostOrder, visitFormComponentsPostOrdergetLabel, setLabelInternalgetMarkupType, getWebPage, getWebRequestadd, addOrReplace, autoAdd, autoAdd, contains, findMarkupStream, get, get, getAssociatedMarkupStream, getMarkupStream, hasAssociatedMarkup, internalAdd, isTransparentResolver, iterator, iterator, newMarkupResourceStream, onRender, remove, remove, removeAll, renderAll, renderAssociatedMarkup, renderComponentTagBody, renderNext, replace, setDefaultModel, setMarkupStream, size, swap, toString, toString, visitChildren, visitChildrenadd, addStateChange, afterRender, beforeRender, callOnBeforeRenderIfNotVisible, checkComponentTag, checkComponentTagAttribute, checkHierarchyChange, configure, continueToOriginalDestination, debug, detach, detachBehaviors, detachModel, detachModels, determineVisibility, error, exceptionMessage, fatal, findPage, findParent, findParentWithAssociatedMarkup, getApplication, getBehaviors, getBehaviors, getBehaviorsRawList, getClassRelativePath, getComponentBorder, getConverter, getDefaultModel, getDefaultModelObject, getDefaultModelObjectAsString, getDefaultModelObjectAsString, getEscapeModelStrings, getFeedbackMessage, getFlag, getFlag, getId, getInnermostModel, getInnermostModel, getLocale, getLocalizer, getMarkupAttributes, getMarkupId, getMarkupId, getMarkupIdImpl, getMetaData, getModelComparator, getOutputMarkupId, getOutputMarkupPlaceholderTag, getPage, getPageRelativePath, getParent, getPath, getRenderBodyOnly, getRequest, getRequestCycle, getResponse, getSession, getSizeInBytes, getStatelessHint, getString, getString, getString, getStyle, getVariation, hasBeenRendered, hasErrorMessage, hasFeedbackMessage, info, initModel, internalAttach, internalDetach, internalOnAttach, internalOnDetach, isActionAuthorized, isAncestorOf, isAttached, isBehaviorAccepted, isEnableAllowed, isEnabled, isEnabledInHierarchy, isIgnoreAttributeModifier, isRenderAllowed, isStateless, isVersioned, isVisibilityAllowed, isVisible, isVisibleInHierarchy, locateMarkupStream, markAttached, markRendering, modelChanged, modelChanging, onAfterRender, onAttach, onBeforeRender, onBeginRequest, onConfigure, onEndRequest, onInitialize, onModelChanged, onModelChanging, onRemove, prepareForRender, prepareForRender, redirectToInterceptPage, remove, remove, render, render, renderComponent, renderComponent, renderComponentTag, rendered, renderHead, renderPlaceholderTag, replaceComponentTagBody, replaceWith, sameInnermostModel, sameInnermostModel, setAuto, setComponentBorder, setDefaultModelObject, setEnabled, setEscapeModelStrings, setFlag, setFlag, setIgnoreAttributeModifier, setMarkupId, setMarkupIdImpl, setMetaData, setOutputMarkupId, setOutputMarkupPlaceholderTag, setRedirect, setRenderBodyOnly, setResponsePage, setResponsePage, setResponsePage, setVersioned, setVisibilityAllowed, setVisible, urlFor, urlFor, urlFor, urlFor, urlFor, urlFor, visitParents, warn, wrappublic DynamicFormField(String id, org.apache.wicket.model.IModel<T> model, String tagType)
protected void onComponentTag(org.apache.wicket.markup.ComponentTag tag)
onComponentTag in class org.apache.wicket.markup.html.form.FormComponent<T>protected final void onComponentTagBody(org.apache.wicket.markup.MarkupStream markupStream,
                                        org.apache.wicket.markup.ComponentTag openTag)
onComponentTagBody in class org.apache.wicket.MarkupContainerpublic String getTagType()
public void setTagType(String tagType)
public void setTagAttributes(Map<String,String> tagAttributes)
public boolean isTagBody()
FormComponent.getValue() will automatically be set in the body thenpublic void setTagBody(boolean tagBody)
FormComponent.getValue() will automatically be set in the body thenpublic org.apache.wicket.util.convert.IConverter getConverter(Class<?> type)
Transformer and TwoWayTransformers alreadygetConverter in interface org.apache.wicket.IConverterLocatorgetConverter in class org.apache.wicket.Componenthttps://cwiki.apache.org/WICKET/using-custom-converters.htmlCopyright © 2018. All rights reserved.