struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dimitri Valdin" <dimitri.val...@db.com>
Subject Displaying Error Messages
Date Wed, 02 Jan 2002 20:03:26 GMT


I would like to propose a small extension for <html:errors> tag:

In case you don't want to display specific error message, but just "mark" some field
as a "bad one", you can display some icon or just exclamation sign close to the field.
It can be achieved by introducing of "format" attribute:

  <td align="left">
    <html:text property="username" size="16" maxlength="16"/>
    <html:errors property="username" format="short"/>
  </td>
  </tr><tr>
  <td align="left">
    <html:text property="password" size="16" maxlength="16"/>
    <html:errors property="password" format="short"/>
  </td>

format can be customized in message resource:

errors.format.short=<font size='4' color='#B22222'><b>!</b></font>

Dmitri Valdin

(See attached file: changes.zip)



--

Diese E-Mail enthält vertrauliche und/oder rechtlich geschützte Informationen. Wenn Sie
nicht der richtige Adressat sind oder diese E-Mail irrtümlich erhalten haben, informieren
Sie bitte sofort den Absender und vernichten Sie diese Mail. Das unerlaubte Kopieren sowie
die unbefugte Weitergabe dieser Mail ist nicht gestattet.

This e-mail may contain confidential and/or privileged information. If you are not the intended
recipient (or have received this e-mail in error) please notify the sender immediately and
destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material
in this e-mail is strictly forbidden.

Mime
View raw message