Tags:
create new tag
, view all tags
-- JoaoQuintas - 23 Aug 2010

Error Messages

An Error Message is a XVW component that's used to alert the user when something is wrong or not coherent.

ALERT

Screen_shot_2010-08-23_at_2.18.55_PM.png


POPUP_MESSAGE

Screen_shot_2010-08-23_at_2.21.13_PM.png


MESSAGE

Screen_shot_2010-08-23_at_2.26.47_PM.png


XML Definition

Not applicable BUT the tag below needs to be present in the viewer or the messages won't be shown (not needed for edit viewer).

<xvw:errorMessages/>

Java Bean Definition

An Error Message is declared as following:


XUIRequestContext.getCurrentContext().addMessage(STRING_CLIENT_ID,

                new XUIMessage(INT_MESSAGE_TYPE, INT_MESSAGE_SEVERITY, 

      STRING_MESSAGE_TITLE, STRING_MESSAGE_BODY));

Note:

STRING_CLIENT_ID = Any identifier for the XUI Message
INT_MESSAGE_TYPE = XUIMessage.TYPE_ALERT or XUIMessage.TYPE_MESSAGE or XUIMessage.TYPE_POPUP_MESSAGE
INT_MESSAGE_SEVERITY = XUIMessage.SEVERITY_INFO or XUIMessage.SEVERITY_CRITICAL or XUIMessage.SEVERITY_ERROR or XUIMessage.SEVERITY_WARNING
STRING_MESSAGE_TITLE = The message title
STRING_MESSAGE_BODY = The message body

Component from which the Error Messages Extends

  • None

Components that Extend Error Messages

  • None

Error Messages Properties

Property Description Requirement Default Value Type Example
lastRequestWasChanged -COMPLETE optional -false EL/Boolean  

Possible Child Components:

  • None (VERIFICAR)
Topic attachments
I Attachment Action Size Date Who Comment
PNGpng Screen_shot_2010-08-23_at_2.18.55_PM.png manage 13.3 K 2010-08-23 - 14:19 JoaoQuintas Error Message Info
PNGpng Screen_shot_2010-08-23_at_2.21.13_PM.png manage 9.5 K 2010-08-23 - 14:23 JoaoQuintas Error Message Message Alert
PNGpng Screen_shot_2010-08-23_at_2.23.53_PM.png manage 8.0 K 2010-08-23 - 14:24 JoaoQuintas  
PNGpng Screen_shot_2010-08-23_at_2.26.47_PM.png manage 7.9 K 2010-08-23 - 14:27 JoaoQuintas  
Edit | Attach | Print version | History: r7 < r6 < r5 < r4 < r3 | Backlinks | Raw View | Raw edit | More topic actions...
Topic revision: r5 - 2011-03-31 - PedroRio
 

No permission to view TWiki.WebTopBar

This site is powered by the TWiki collaboration platform Powered by Perl

No permission to view TWiki.WebBottomBar