How about an enable on p:remoteCommand

UI Components for JSF
Post Reply
Soupdragon
Posts: 16
Joined: 22 Jul 2011, 10:50

15 Nov 2011, 15:46

I find myself using p:remoteCommand as a means for one panel to trigger changes in another, e.g. picking a row on one panel triggers a save and switch on another. This generally results in a second transaction, but I think it allows for a more controlled interaction between panels.

What I could do with is to switch these p:remoteCommand items on and off, according to the state of the panel on the receiving end, thus saving an unecessary transaction. It would be pretty easy to implement, just generate everything except the content of the javascript function when the enable evaluates to false.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 21 guests