Mateus Viccari
Mateus Viccari

Reputation: 7709

How to update "nothing" in ajax events?

I have an ajax event triggered via some events in Primefaces JSF components.
I want this event to only process the values of the specific field that contains this event, but not to update anything, only process. Something like this:

<p:ajax event="itemSelect" process="@this" update="@none"/>

Is something like this possible to do?

Upvotes: 0

Views: 6503

Answers (1)

LaurentG
LaurentG

Reputation: 11757

Yes, @none is a valid keyword to say that nothing will be updated.

There is standard keywords which can be used in JSF2 in the render attribute:

If a literal is specified the identifiers must be space delimited. Any of the keywords "@this", "@form", "@all", "@none" may be specified in the identifier list.

PrimeFaces uses the update attribute for the same purpose with the almost the sames values.

Upvotes: 5

Related Questions