<COMMAND:MessagesAbsent>

Description

In BBj 17.0 and higher, this tag can be used in a BBJSPBBJSP Page for checking if there are any no command messages after command was executed.

Attributes

Attribute Name

Description

Required

Expression

Data Type

key

The key to check

false

false

String

withKeys

A comma separated list of keys to check

false

false

String

withoutKeys

A comma separated list of keys to ignore

false

false

String

Remarks

None.

Example

<!--
Display Message alongside form-field.
-->
<input type='text' name='forname' id='forname' value='${data["Forname"]}' placeholder='First Name' />
<cmd:messagesPresent key='forname'>
<ul>
<cmd:messages id='msg' key='forname'>
<li>${msg}
</cmd:messages>
</ul>
</cmd:messagesPresent>
<cmd:messagesAbsent key='forname'>
<c:ifnotempty data='${data["Forname"]}' >
<img src='tick.ico'>
</c:ifnotempty>
</cmd:messagesAbsent>
<br/>

See Also

BBJSP

Command Tag Library