This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



May 11, 2011, 10:08 PM
57 Posts

Re: how to trigger onError from a server side event?

  • Category: Server Side JavaScript
  • Platform: All
  • Release: 8.5.2
  • Role:
  • Tags:
  • Replies: 6
I did not know that onError you mentioned was associated with xhrpost/xhrget,
was thinking that validation+error management should be handled together at either server side or client side. to perform validation and error management at different sides is new stuff for me as well........always believe that code at client side runs at render response phase, and facesmessage is requestScope, will vanish after invoke application phrase,
 
just to put some final effort here eventhough I am aware that I am not at that level to answer this question
 
How to trigger an onError handler on the client side in response to a condition on the server-side
 
 instead of triggering an onError........
to synchronize client/server side script as in http://nodejs.org/, use Remote Services from extension library...then client side script will catch real object from server side, call back function not exists only in onError but also in that editor that we normally use....
May 12, 2011, 10:27 PM
47 Posts
Re: how to trigger onError from a server side event?
 Just to answer my own question, now that I have found it, you can trigger the onError() client script for a partial refresh if the status of the response is an error code like 500:
 
 facesContext.getExternalContext().getResponse().setStatus(500);
 
Rich 

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal