The surface of the contextMenu menu depending on the selected item?

I have p:dataTable , which I use in my application, and there is a related p:contextMenu .

I am wondering how you can change the context menu options based on the selected row?

For example, I have a status bar that is SENT or WAITING. If SENT, I want the context menu to have one set of parameters, and if WAITING, I want the context menu to talk about other parameters.

How is this done with primary faces? It looks like basic functions.

0
source share

All Articles