Tag reference sheet

Tag library reference for the following tag libraries:

United Front 2 JSP Tag Library

United Front 2 JSP Tag Library

This is version 2.0.

  • canPost 指定したコミュニティに指定したユーザが投稿可能かどうか判別するタグです。
  • canRead 指定した資源に指定したユーザが参照可能かどうか判別するタグです。
  • canWrite 指定した資源に指定したユーザが書き込み可能かどうか判別するタグです。
  • forEachMail スレッド化した状態のメールを、更新日が最近の順でループ処理します。
  • formatDate 指定した日時が現在日時から1日以内なら時間を、年度内である場合は月日を、それ以外なら年月日を表示します。
  • hasUnreadMail メールスレッド内に未読メールがあるかどうか判定します。
  • identity 2つの Identifiable オブジェクトが同一である場合に本文を評価します。
  • messageBody メッセージの本文を出力するタグライブラリです。ロケールに応じて適切な本文を選択します。
  • messageSubject メッセージの件名を出力するタグライブラリです。ロケールに応じて適切な件名を選択します。
  • mobile モバイル端末からのアクセス時のみ内容を評価するタグです。
  • multiLine 複数行テキスト出力用のタグライブラリです。予約文字をエスケープし、改行文字の前に BR タグを挿入します。
  • notIdentity 2つの Identifiable オブジェクトが同一でない場合に本文を評価します。
  • paging ページングを表示するタグです。
  • pc PC 端末からのアクセス時のみ内容を評価するタグです。
  • script SCRIPT タグを表示するタグです。
  • user ユーザ名とのプロフィールへのリンクを生成するタグライブラリです。
  • userExists 配列またはコレクションの中に検索対象のユーザが含まれているかどうかで条件分岐を行うタグです。含まれていれば本文を評価し、含まれていなければ評価しません。
  • userNotExists 配列またはコレクションの中に検索対象のユーザが含まれているかどうかで条件分岐を行うタグです。含まれていなければ本文を評価し、含まれていれば評価しません。

Required attributes are marked with a *

<uf2:canPost>

指定したコミュニティに指定したユーザが投稿可能かどうか判別するタグです。

Can contain: JSP

Attributes

Name Description Type
community* コミュニティ org.unitedfront2.domain.communication.Community
user ユーザ org.unitedfront2.domain.User
userId ユーザ ID String

<uf2:canRead>

指定した資源に指定したユーザが参照可能かどうか判別するタグです。

Can contain: JSP

Attributes

Name Description Type
resource* 資源 org.unitedfront2.domain.accesscontrol.Resource
user ユーザ org.unitedfront2.domain.User
userId ユーザ ID String

<uf2:canWrite>

指定した資源に指定したユーザが書き込み可能かどうか判別するタグです。

Can contain: JSP

Attributes

Name Description Type
resource* 資源 org.unitedfront2.domain.accesscontrol.Resource
user ユーザ org.unitedfront2.domain.User
userId ユーザ ID String

<uf2:forEachMail>

スレッド化した状態のメールを、更新日が最近の順でループ処理します。

Can contain: JSP

Attributes

Name Description Type
mail* メール org.unitedfront2.domain.communication.Mail
var Name of the exported scoped variable for the current item of the iteration. This scoped variable has nested visibility. Its type depends on the object of the underlying collection. String
varStatus Name of the exported scoped variable for the status of the iteration. Object exported is of type javax.servlet.jsp.jstl.core.LoopTagStatus. This scoped variable has nested visibility. String

<uf2:formatDate>

指定した日時が現在日時から1日以内なら時間を、年度内である場合は月日を、それ以外なら年月日を表示します。

Can contain: empty

Attributes

Name Description Type
date* 表示対象の日付 java.util.Date
detail 詳細な表示にする場合は true 、しない場合は false boolean

<uf2:hasUnreadMail>

メールスレッド内に未読メールがあるかどうか判定します。

Can contain: JSP

Attributes

Name Description Type
mail* メール org.unitedfront2.domain.communication.Mail
user* メールを閲覧しているユーザ org.unitedfront2.domain.SimpleUser

<uf2:identity>

2つの Identifiable オブジェクトが同一である場合に本文を評価します。

Can contain: JSP

Attributes

Name Description Type
o1* オブジェクト1 org.unitedfront2.domain.Identifiable
o2* オブジェクト2 org.unitedfront2.domain.Identifiable

<uf2:messageBody>

メッセージの本文を出力するタグライブラリです。ロケールに応じて適切な本文を選択します。

Can contain: empty

Attributes

Name Description Type
message* メッセージ org.unitedfront2.domain.communication.Message

<uf2:messageSubject>

メッセージの件名を出力するタグライブラリです。ロケールに応じて適切な件名を選択します。

Can contain: empty

Attributes

Name Description Type
message* メッセージ org.unitedfront2.domain.communication.Message

<uf2:mobile>

モバイル端末からのアクセス時のみ内容を評価するタグです。

Can contain: JSP

This tag has no attributes.

<uf2:multiLine>

複数行テキスト出力用のタグライブラリです。予約文字をエスケープし、改行文字の前に BR タグを挿入します。

Can contain: empty

Attributes

Name Description Type
value* 複数行テキスト String

<uf2:notIdentity>

2つの Identifiable オブジェクトが同一でない場合に本文を評価します。

Can contain: JSP

Attributes

Name Description Type
o1* オブジェクト1 org.unitedfront2.domain.Identifiable
o2* オブジェクト2 org.unitedfront2.domain.Identifiable

<uf2:paging>

ページングを表示するタグです。

Can contain: empty

Attributes

Name Description Type
count 総件数 String
displayCount ページの表示件数。デフォルトは20。 int
flow Web Flow の状態を維持するなら true 、しないなら false boolean
pageParamName ページの変数名。デフォルトは 'page' 。 String
url* URL String

<uf2:pc>

PC 端末からのアクセス時のみ内容を評価するタグです。

Can contain: JSP

This tag has no attributes.

<uf2:script>

SCRIPT タグを表示するタグです。

Can contain: JSP

This tag has no attributes.

<uf2:user>

ユーザ名とのプロフィールへのリンクを生成するタグライブラリです。

Can contain: empty

Attributes

Name Description Type
link リンクを強制的に付けるなら true 、強制的にリンクしないなら false boolean
user* ユーザ org.unitedfront2.domain.User

<uf2:userExists>

配列またはコレクションの中に検索対象のユーザが含まれているかどうかで条件分岐を行うタグです。含まれていれば本文を評価し、含まれていなければ評価しません。

Can contain: JSP

Attributes

Name Description Type
user* 検索対象のユーザ org.unitedfront2.domain.User
users* ユーザの配列またはコレクション java.util.Collection

<uf2:userNotExists>

配列またはコレクションの中に検索対象のユーザが含まれているかどうかで条件分岐を行うタグです。含まれていなければ本文を評価し、含まれていれば評価しません。

Can contain: JSP

Attributes

Name Description Type
user* 検索対象のユーザ org.unitedfront2.domain.User
users* ユーザの配列またはコレクション java.util.Collection