public abstract class AbstractDataBoundFormElementTag extends AbstractFormTag implements EditorAwareTag
共通の path
および id
プロパティを提供します。バインドされた値の BindStatus
にアクセスするため、および interacting
に対して TagWriter
を使用するためのユーティリティメソッドをサブクラスに提供します。
修飾子と型 | フィールドと説明 |
---|---|
protected static StringSE | NESTED_PATH_VARIABLE_NAME このタグのスコープ内で公開されているパス変数の名前: "nestedPath"。 |
logger, REQUEST_CONTEXT_PAGE_ATTRIBUTE
pageContextEE
EVAL_BODY_AGAINEE
EVAL_BODY_INCLUDEEE, EVAL_PAGEEE, SKIP_BODYEE, SKIP_PAGEEE
コンストラクターと説明 |
---|
AbstractDataBoundFormElementTag() |
修飾子と型 | メソッドと説明 |
---|---|
protected StringSE | autogenerateId() このタグの ' id ' 属性値を自動生成します。 |
protected StringSE | convertToDisplayString(ObjectSE value) BindStatus が値のクラスに登録した可能性がある PropertyEditor によって変換された、指定された値の表示文字列を取得します。 |
void | doFinally() BindStatus インスタンスを破棄します。 |
protected BindStatus | getBindStatus() このタグの BindStatus を取得します。 |
protected ObjectSE | getBoundValue() バインドされた値を取得します。 |
PropertyEditorSE | getEditor() EditorAwareTag の PropertyEditor SE を公開します。 |
StringSE | getId() ' id ' 属性の値を取得します。 |
protected StringSE | getName() HTML ' name ' 属性の値を取得します。 |
protected StringSE | getNestedPath() NestedPathTag によって公開された可能性のあるネストされたパスの値を取得します。 |
protected StringSE | getPath() form object の resolved プロパティパスを取得します。 |
protected PropertyEditorSE | getPropertyEditor() このタグにバインドされた値に使用されている PropertyEditor SE がある場合は、それを取得します。 |
protected StringSE | getPropertyPath() ネストされたパスを含み、フォーム属性の名前が前に付いていない、このタグのプロパティパスを作成します。 |
protected StringSE | processFieldValue(StringSE name, StringSE value, StringSE type) 設定されているか、同じ値を返す場合は、 RequestDataValueProcessor インスタンスを介して指定されたフォームフィールドを処理します。 |
protected StringSE | resolveId() このタグの ' id ' 属性値を決定し、何も指定されていない場合は自動生成します。 |
void | setId(StringSE id) ' id ' 属性の値を設定します。 |
void | setPath(StringSE path) form object からプロパティパスを設定します。 |
protected void | writeDefaultAttributes(TagWriter tagWriter) 指定された TagWriter に属性のデフォルトセットを書き込みます。 |
createTagWriter, doStartTagInternal, evaluate, getDisplayString, getDisplayString, isDefaultHtmlEscape, writeOptionalAttribute, writeTagContent
htmlEscape, isHtmlEscape, isResponseEncodedHtmlEscape, setHtmlEscape
doCatch, doStartTag, getRequestContext
doAfterBodyEE, doEndTagEE, findAncestorWithClassEE, getParentEE, getValueEE, getValuesEE, releaseEE, removeValueEE, setPageContextEE, setParentEE, setValueEE
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
protected static final StringSE NESTED_PATH_VARIABLE_NAME
NestedPathTag.NESTED_PATH_VARIABLE_NAME
と同じ値。public void setPath(StringSE path)
form object
からプロパティパスを設定します。ランタイム式の場合があります。protected final StringSE getPath() throws JspExceptionEE
form object
の resolved
プロパティパスを取得します。public void setId(@Nullable StringSE id)
id
' 属性の値を設定します。 ランタイム式の場合があります。デフォルトは getName()
の値です。一部のタグではデフォルト値が有効でない場合があることに注意してください。
TagSupportEE
の setIdEE
@Nullable public StringSE getId()
id
' 属性の値を取得します。TagSupportEE
の getIdEE
protected void writeDefaultAttributes(TagWriter tagWriter) throws JspExceptionEE
TagWriter
にデフォルトの属性セットを書き込みます。さらに抽象サブクラスは、このメソッドをオーバーライドしてデフォルトの属性を追加する必要がありますが、super
メソッドを呼び出すことを忘れないでください。具象サブクラスは、デフォルトの属性をレンダリングしたいときに、このメソッドを呼び出す必要があります。
tagWriter
- 属性が書き込まれる TagWriter
JspExceptionEE
@Nullable protected StringSE resolveId() throws JspExceptionEE
id
' 属性値を決定し、何も指定されていない場合は自動生成します。JspExceptionEE
getId()
, autogenerateId()
@Nullable protected StringSE autogenerateId() throws JspExceptionEE
id
' 属性値を自動生成します。 デフォルトの実装は単に getName()
に委譲し、無効な文字("[" や "]" など)を削除します。
@Nullable protected StringSE getName() throws JspExceptionEE
name
' 属性の値を取得します。 デフォルトの実装では、getPropertyPath()
に委譲するだけで、プロパティパスを名前として使用します。データバインディングに対するサーバー側の期待とリンクしているため、ほとんどの場合、これは望ましいことです。ただし、一部のサブクラスは、バインドパスを変更せずに 'name
' 属性の値を変更することを望む場合があります。
name
' 属性の値 JspExceptionEE
protected BindStatus getBindStatus() throws JspExceptionEE
BindStatus
を取得します。@Nullable protected StringSE getNestedPath()
NestedPathTag
によって公開された可能性のあるネストされたパスの値を取得します。protected StringSE getPropertyPath() throws JspExceptionEE
JspExceptionEE
getNestedPath()
, getPath()
@Nullable protected final ObjectSE getBoundValue() throws JspExceptionEE
JspExceptionEE
getBindStatus()
@Nullable protected PropertyEditorSE getPropertyEditor() throws JspExceptionEE
PropertyEditor
SE がある場合は、それを取得します。@Nullable public final PropertyEditorSE getEditor() throws JspExceptionEE
EditorAwareTag
の getEditor
null
JspExceptionEE
- エディターの解決に失敗した場合 protected StringSE convertToDisplayString(@Nullable ObjectSE value) throws JspExceptionEE
protected final StringSE processFieldValue(@Nullable StringSE name, StringSE value, StringSE type)
RequestDataValueProcessor
インスタンスを介して指定されたフォームフィールドを処理します。public void doFinally()
BindStatus
インスタンスを破棄します。TryCatchFinallyEE
の doFinallyEE
RequestContextAwareTag
の doFinally