What is the relationship between the Primefaces ajax and the events

4

In the face of certain problems during my development the following doubts arose for example.

When I use the ajax tag in Primefaces , it has the event property where we pass events, so I had some questioning.

Once I had to figure out how to click on checkbox select all, I used the event click and the function would return me an event via this function's parameter.

Now working with datatable with property of editing the data in itself, I used events of type rowEditInit and rowEditCancel , because the created table contains a button to edit the data and another to delete, and logico I thought, if the person is editing, it would be nice to block the delete button, of course this goes from thinking to thinking and this is not me debating.

And then I tried to use the parameter pass in this function to enable and disable the button but could not find the event, then the doubt came to me, these events are Jquery , are Primefaces ?

Where are they documented? I saw in the manual the rowEdit , rowEditInit and rowEditCancel but it does not have any parameters to work on.

I have this doubt and also a way of letting other forum colleagues know, as I think this can help.

    
asked by anonymous 06.08.2014 / 12:15

1 answer

4

Your question is very pertinent, because primefaces is a component framework that when rendered by JSF results in html, js, and jquery in the client browser. So in practice the events can be from the standard html component, from JQuery or even added by primefaces itself.

You can use any of these events together with the ajax tag, however it is always a good practice to use only those that are listed in the component documentation.

For events rowEdit , rowEditInit , rowEditCancel , they are Ajax Behavior Events provided by primefaces, the best location to find the list of Client events, parameters, and methods Side API is on the official user guide of primefaces, at this address there are all versions: link

The events cited are given as a listner parameter to the class: org.primefaces.event.RowEditEvent

    
11.08.2014 / 16:41