How-to suppress error popup for inline messages __jspx頁面彈出消息提示框

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.
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.
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
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 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章