Hi,
I'm looking for an example of cross-field validation; preferably using
annotations.
I have the following on my action:
@Validations(
expressions={
@ExpressionValidator(expression="data.key eq
'd'",message="DNE")
}
)
public String subForm() throws Exception {
And the following on my page:
<s:textfield name="data.key" required="true" value="%{data.key}"
labelposition="left" label="Key"></s:textfield>
But no validation triggers.
Has anyone had any success using the @ExpressionValidator annotation? I am
assuming that it is the correct choice for cross-field validation.
Kind regards,
Martin
Capgemini is a trading name used by the Capgemini Group of companies which
includes Capgemini UK plc, a company registered in England and Wales (number
943935) whose registered office is at No. 1 Forge End, Woking, Surrey, GU21
6DB.
This message contains information that may be privileged or confidential and is
the property of the Capgemini Group. It is intended only for the person to whom
it is addressed. If you are not the intended recipient, you are not authorized
to read, print, retain, copy, disseminate, distribute, or use this message or
any part thereof. If you receive this message in error, please notify the
sender immediately and delete all copies of this message.