Error messages in ADF Faces are displayed in a DHTML popup dialog.
To change this behavior so messages are displayed within the page, you add the af:messages tag to your
ADF Faces page and set its inline attribute to true.
ADF Faces page and set its inline attribute to true.
After dragging the af:messages tag as a child to the af:document element, make sure you move it to
become the first child. Otherwise the message doesn't show on top of the page but somewhere below.
become the first child. Otherwise the message doesn't show on top of the page but somewhere below.
Set the Inline property to true to change the display behavior.
With the af:messages tag, the message display as part of the page, as shown in the image above.
To write messages in JavaServer Faces, you use code similar the lines shown below
To write messages in JavaServer Faces, you use code similar the lines shown below
If the message you display is in response to an error caught during one of the early JSF request phases,
you should consider adding …
fctx.renderResponse();
… after setting the message to return to the page without updating the model.
For more information see the tag documentation for the af:messages tag
http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_messages.html
you should consider adding …
fctx.renderResponse();
… after setting the message to return to the page without updating the model.
For more information see the tag documentation for the af:messages tag
http://download.oracle.com/docs/cd/E17904_01/apirefs.1111/e12419/tagdoc/af_messages.html