Skip to content Skip to sidebar Skip to footer

Reloading A Certain Jquery Code On Jsf's Form Error

I have a jQuery code that makes a panel slide for the user to input data in I have messages for errors that will be displayed in the panel in case of error occurance, the thing is

Solution 1:

If there ajax involved add this code to your js code

$(window).load(function() {

    jsf.ajax.addOnEvent(function (data) {
        if (data.status === "success") {
            //your code to show the panel with errors goes here
        }
    });

});

Post a Comment for "Reloading A Certain Jquery Code On Jsf's Form Error"